Documentation ¶
Index ¶
- Constants
- func AddCertNotAfterTimeFlags(flagSet *flag.FlagSet, year *int)
- func AddContainerEngineConfigFlags(flagSet *flag.FlagSet, options *ContainerEngine)
- func AddControlPlaneEndpointFlags(flagSet *flag.FlagSet, options *Kubeadm)
- func AddExecCommandFlags(flagSet *flag.FlagSet, cmd *string)
- func AddImageMetaFlags(flagSet *flag.FlagSet, imageRepository *string)
- func AddJumpServerFlags(flagSet *flag.FlagSet, userInfo *map[string]string)
- func AddKubeClusterNodesConfigFlags(flagSet *flag.FlagSet, options *ClusterNodes)
- func AddKubeadmConfigFlags(flagSet *flag.FlagSet, options *Kubeadm)
- func AddKubernetesFlags(flagSet *flag.FlagSet, options *Kubernetes)
- func AddNetworkPluginFlags(flagSet *flag.FlagSet, networkType *string)
- func AddOfflinePackageFlags(flagSet *flag.FlagSet, pkg *string)
- func AddOnlineFlags(flagSet *flag.FlagSet, options *bool)
- func AddPublicUserInfoConfigFlags(flagSet *flag.FlagSet, options *PublicHostInfo)
- func AddResetFlags(flagSet *flag.FlagSet, options *Reset)
- type ClusterNodes
- type ContainerEngine
- type JumpServerHostInfo
- type Kubeadm
- type Kubei
- type Kubernetes
- type Networking
- type PublicHostInfo
- type Reset
Constants ¶
View Source
const ( Key = "key" ShortKey = "k" Port = "port" Password = "password" ShortPassword = "p" User = "user" KubernetesVersion = "kubernetes-version" ContainerEngineVersion = "container-engine-version" ControlPlaneEndpoint = "control-plane-endpoint" ImageRepository = "image-repository" Masters = "masters" ShortMasters = "m" Workers = "nodes" ShortNodes = "n" PodNetworkCidr = "pod-network-cidr" ServiceCidr = "service-cidr" JumpServer = "jump-server" RemoveContainerEngine = "remove-container-engine" RemoveKubernetesComponent = "remove-kubernetes-component" OfflineFile = "offline-file" ShortOfflineFile = "f" CertNotAfterTime = "cert-time" NetworkPlugin = "network-plugin" Online = "install-online" Command = "command" )
Variables ¶
This section is empty.
Functions ¶
func AddContainerEngineConfigFlags ¶
func AddContainerEngineConfigFlags(flagSet *flag.FlagSet, options *ContainerEngine)
func AddExecCommandFlags ¶ added in v0.7.0
func AddImageMetaFlags ¶
func AddJumpServerFlags ¶
func AddKubeClusterNodesConfigFlags ¶
func AddKubeClusterNodesConfigFlags(flagSet *flag.FlagSet, options *ClusterNodes)
func AddKubeadmConfigFlags ¶
func AddKubernetesFlags ¶ added in v0.6.1
func AddKubernetesFlags(flagSet *flag.FlagSet, options *Kubernetes)
func AddNetworkPluginFlags ¶
func AddOfflinePackageFlags ¶
func AddOnlineFlags ¶ added in v0.7.0
func AddPublicUserInfoConfigFlags ¶
func AddPublicUserInfoConfigFlags(flagSet *flag.FlagSet, options *PublicHostInfo)
func AddResetFlags ¶
Types ¶
type ClusterNodes ¶
type ClusterNodes struct { PublicHostInfo PublicHostInfo Masters []string Workers []string }
func (*ClusterNodes) ApplyTo ¶
func (c *ClusterNodes) ApplyTo(data *rundata.ClusterNodes)
type ContainerEngine ¶
type ContainerEngine struct {
Version string
}
func (*ContainerEngine) ApplyTo ¶
func (c *ContainerEngine) ApplyTo(data *rundata.ContainerEngine)
type JumpServerHostInfo ¶
type JumpServerHostInfo struct { PublicHostInfo Host string }
type Kubeadm ¶
type Kubeadm struct { //Version string ControlPlaneEndpoint string ImageRepository string Networking Networking }
func NewKubeadm ¶
func NewKubeadm() *Kubeadm
type Kubei ¶
type Kubei struct { Reset Reset ClusterNodes ClusterNodes ContainerEngine ContainerEngine Kubernetes Kubernetes JumpServer map[string]string OfflineFile string Online bool CertNotAfterTime int NetworkType string }
type Kubernetes ¶
type Kubernetes struct {
Version string
}
func (*Kubernetes) ApplyTo ¶
func (k *Kubernetes) ApplyTo(data *rundata.Kubernetes)
type Networking ¶
func (*Networking) ApplyTo ¶
func (c *Networking) ApplyTo(data *rundata.Kubeadm)
type PublicHostInfo ¶
Click to show internal directories.
Click to hide internal directories.