Documentation
¶
Index ¶
- func BindImageFormatArgs(args *ImageFormatArgs, flags *pflag.FlagSet, prefix string)
- func BindKubeConnectionArgs(args *KubeConnectionArgs, flags *pflag.FlagSet, prefix string)
- func BindListenArg(args *ListenArg, flags *pflag.FlagSet, prefix string)
- func BindNetworkArgs(args *NetworkArgs, flags *pflag.FlagSet, prefix string)
- type ImageFormatArgs
- type KubeConnectionArgs
- type ListenArg
- type NetworkArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindImageFormatArgs ¶
func BindImageFormatArgs(args *ImageFormatArgs, flags *pflag.FlagSet, prefix string)
BindImageFormatArgs binds values to the given arguments by using flags
func BindKubeConnectionArgs ¶
func BindKubeConnectionArgs(args *KubeConnectionArgs, flags *pflag.FlagSet, prefix string)
BindKubeConnectionArgs binds values to the given arguments by using flags
func BindListenArg ¶
BindListenArg binds values to the given arguments by using flags
func BindNetworkArgs ¶
func BindNetworkArgs(args *NetworkArgs, flags *pflag.FlagSet, prefix string)
BindNetworkArgs binds values to the given arguments by using flags
Types ¶
type ImageFormatArgs ¶
type ImageFormatArgs struct {
// ImageTemplate is used in expanding parameterized Docker image references
// from configuration or a file
ImageTemplate variable.ImageTemplate
}
ImageFormatArgs is a struct that the command stores flag values into.
func NewDefaultImageFormatArgs ¶
func NewDefaultImageFormatArgs() *ImageFormatArgs
NewDefaultImageFormatArgs returns the default image template
type KubeConnectionArgs ¶
type KubeConnectionArgs struct {
KubernetesAddr flagtypes.Addr
// ClientConfig is used when connecting to Kubernetes from the master, or
// when connecting to the master from a detached node. If StartKube is true,
// this value is not used.
ClientConfig clientcmd.ClientConfig
// ClientConfigLoadingRules is the ruleset used to load the client config.
// Only the CommandLinePath is expected to be used.
ClientConfigLoadingRules clientcmd.ClientConfigLoadingRules
}
func NewDefaultKubeConnectionArgs ¶
func NewDefaultKubeConnectionArgs() *KubeConnectionArgs
NewDefaultKubeConnectionArgs returns a new set of default connection arguments for Kubernetes
func (KubeConnectionArgs) GetExternalKubernetesClientConfig ¶
func (args KubeConnectionArgs) GetExternalKubernetesClientConfig() (*restclient.Config, bool, error)
func (KubeConnectionArgs) GetKubernetesAddress ¶
func (KubeConnectionArgs) Validate ¶
func (args KubeConnectionArgs) Validate() error
type ListenArg ¶
type ListenArg struct {
// ListenAddr is the address to listen for connections on (scheme://host:port).
ListenAddr flagtypes.Addr
}
ListenArg is a struct that the command stores flag values into.
type NetworkArgs ¶
type NetworkArgs struct {
// NetworkPluginName is the name of the networking plugin to be used for networking.
NetworkPluginName string
// ClusterNetworkCIDR is the CIDR string representing the network that all containers
// should belong to.
ClusterNetworkCIDR string
// HostSubnetLength is the length of subnet each host is given from the network-cidr.
HostSubnetLength uint32
// ServiceNetworkCIDR is the CIDR string representing the network that service IP
// addresses will be allocated from
ServiceNetworkCIDR string
}
NetworkArgs is a struct that the command stores flag values into.
func NewDefaultMasterNetworkArgs ¶
func NewDefaultMasterNetworkArgs() *NetworkArgs
NewDefaultMasterNetworkArgs returns a new set of network arguments
Source Files
¶
- image_args.go
- kube_connection_args.go
- listen_arg.go
- network_args.go