ssh

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KubeletCertAndKeyDir defines
	KubeletCertAndKeyDir = "/var/lib/kubelet/pki"

	// KubeletCACertAndKeyBaseName defines kubelet's CA certificate and key base name
	KubeletCACertAndKeyBaseName = "kubelet-ca"
	// KubeletCACertName defines kubelet's CA certificate name
	KubeletCACertName = "kubelet-ca.crt"
	// KubeletCAKeyName defines kubelet's CA key name
	KubeletCAKeyName = "kubelet-ca.key"

	// KubeletServerCertAndKeyBaseName defines kubelet server certificate and key base name
	KubeletServerCertAndKeyBaseName = "kubelet"
	// KubeletServerCertName defines kubelet server certificate name
	KubeletServerCertName = "kubelet.crt"
	// KubeletServerKeyName defines kubelet server key name
	KubeletServerKeyName = "kubelet.key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesUploadSecretsErrorBehavior

type KubernetesUploadSecretsErrorBehavior uint
const (
	KubernetesUploadSecretsFailOnError     KubernetesUploadSecretsErrorBehavior = iota
	KubernetesUploadSecretsContinueOnError KubernetesUploadSecretsErrorBehavior = iota
)

type Runner

type Runner func(t *Target, data interface{}) error

type Target

type Target struct {
	// contains filtered or unexported fields
}

func (*Target) Apply

func (t *Target) Apply(data interface{}, states ...string) error

func (*Target) DownloadFileContents

func (t *Target) DownloadFileContents(sourcePath string) (string, error)

DownloadFileContents gets the content of a file in a target system

func (*Target) GetDeployment

func (t *Target) GetDeployment(nodename string, role *deployments.Role) *deployments.Target

func (*Target) GetFlags

func (t *Target) GetFlags() *flag.FlagSet

GetFlags adds init flags bound to the config to the specified flagset

func (*Target) IsServiceEnabled added in v0.9.0

func (t *Target) IsServiceEnabled(serviceName string) (bool, error)

IsServiceEnabled returns if a service is enabled

func (Target) String

func (t Target) String() string

func (*Target) UploadFileContents

func (t *Target) UploadFileContents(targetPath, contents string) error

UploadFileContents creates a file with the content sent into a target system's specific path.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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