Documentation ¶
Index ¶
- type KubernetesNode
- func (kn *KubernetesNode) Check() bool
- func (kn *KubernetesNode) ClearAddition() error
- func (kn *KubernetesNode) GenerateOrSkip() error
- func (kn *KubernetesNode) ReadAddition(key string) (string, error)
- func (kn *KubernetesNode) ReadAllAddition() (map[string]string, error)
- func (kn *KubernetesNode) TLSBootStrap() error
- func (kn *KubernetesNode) WriteAddition(new_data map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesNode ¶
type KubernetesNode struct { RootCertDir string CertDir string KubeletDir string KubeproxyDir string KubeProxyKubeConfig string BootStrapKubeConfig string KubeletConfig string LeaderIp string LeaderPort uint16 BootStrapToken string LeaderNodeToken string CurrentNodeToken string RawToken string ValidateApiserverCAFile string AdditionFile string RegisterClient *leaderruntime.NetWorkRegisterClient ClusterDNS string // contains filtered or unexported fields }
func NewKubernetesNode ¶
func NewKubernetesNode(rootCertPath string, leaderToken string, registerClient *leaderruntime.NetWorkRegisterClient) *KubernetesNode
func (*KubernetesNode) Check ¶
func (kn *KubernetesNode) Check() bool
func (*KubernetesNode) ClearAddition ¶
func (kn *KubernetesNode) ClearAddition() error
func (*KubernetesNode) GenerateOrSkip ¶
func (kn *KubernetesNode) GenerateOrSkip() error
func (*KubernetesNode) ReadAddition ¶
func (kn *KubernetesNode) ReadAddition(key string) (string, error)
func (*KubernetesNode) ReadAllAddition ¶
func (kn *KubernetesNode) ReadAllAddition() (map[string]string, error)
func (*KubernetesNode) TLSBootStrap ¶
func (kn *KubernetesNode) TLSBootStrap() error
func (*KubernetesNode) WriteAddition ¶
func (kn *KubernetesNode) WriteAddition(new_data map[string]string) error
Click to show internal directories.
Click to hide internal directories.