kubeadm

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNode

func AddNode(in *pb.AddNodeRequest, stream pb.Kubeadm_AddNodeServer) error

func DestroyMaster added in v0.6.0

func DestroyMaster(in *pb.Empty, stream pb.Kubeadm_DestroyMasterServer) error

func FetchKubeconfig

func FetchKubeconfig() (bool, string)

func GetStatus added in v0.8.2

func GetStatus(in *pb.Empty, stream pb.Kubeadm_GetStatusServer, kubicdVersion string) error

func InitMaster

func InitMaster(in *pb.InitRequest, stream pb.Kubeadm_InitMasterServer) error

func ListNodes added in v0.6.0

func ListNodes() (bool, string, []string)

func Read_Cfg added in v0.9.0

func Read_Cfg(file string, key string) string

read data /var/lib/kubic-control

func RebootNode

func RebootNode(nodeName string) (bool, string)

func RemoveNode

func RemoveNode(in *pb.RemoveNodeRequest, stream pb.Kubeadm_RemoveNodeServer) error

func RemoveNodeOutput added in v0.8.1

func RemoveNodeOutput(success bool, message string)

func ResetMaster

func ResetMaster() (bool, string)

func ResetNode added in v0.8.0

func ResetNode(nodeName string, send OutputStream) (bool, string)

func UpgradeKubernetes

func UpgradeKubernetes(in *pb.UpgradeRequest, stream pb.Kubeadm_UpgradeKubernetesServer) error

Types

type OutputStream added in v0.8.1

type OutputStream func(bool, string)

output_stream types takes bool and string, returns nothing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL