hosts

package
v0.0.5-dev Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToCleanEtcdDir       = "/var/lib/etcd"
	ToCleanSSLDir        = "/etc/kubernetes/ssl"
	ToCleanCNIConf       = "/etc/cni"
	ToCleanCNIBin        = "/opt/cni"
	ToCleanCalicoRun     = "/var/run/calico"
	CleanerContainerName = "kube-cleaner"
	CleanerImage         = "alpine:latest"
)
View Source
const (
	DockerAPIVersion = "1.24"
)

Variables

This section is empty.

Functions

func DeleteNode

func DeleteNode(toDeleteHost *Host, kubeClient *kubernetes.Clientset) error

func IsHostListChanged

func IsHostListChanged(currentHosts, configHosts []Host) bool

func ParsePrivateKey

func ParsePrivateKey(keyPath string) (ssh.Signer, error)

func ParsePrivateKeyWithPassPhrase

func ParsePrivateKeyWithPassPhrase(keyPath string, passphrase []byte) (ssh.Signer, error)

Types

type Host

type Host struct {
	v1.RKEConfigHost
	DClient *client.Client
}

func GetToDeleteHosts

func GetToDeleteHosts(currentHosts, configHosts []Host) []Host

func (*Host) CleanUp

func (h *Host) CleanUp() error

func (*Host) TunnelUp

func (h *Host) TunnelUp(signer ssh.Signer) error

Jump to

Keyboard shortcuts

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