Documentation ¶
Index ¶
- Constants
- type KubernetesUploadSecretsErrorBehavior
- type Runner
- type Target
- func (t *Target) Apply(data interface{}, states ...string) error
- func (t *Target) DownloadFileContents(sourcePath string) (string, error)
- func (t *Target) GetDeployment(nodename string, role *deployments.Role) *deployments.Target
- func (t *Target) GetFlags() *flag.FlagSet
- func (t *Target) IsServiceEnabled(serviceName string) (bool, error)
- func (t Target) String() string
- func (t *Target) UploadFileContents(targetPath, contents string) error
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 Target ¶
type Target struct {
// contains filtered or unexported fields
}
func (*Target) DownloadFileContents ¶
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) IsServiceEnabled ¶ added in v0.9.0
IsServiceEnabled returns if a service is enabled
func (*Target) UploadFileContents ¶
UploadFileContents creates a file with the content sent into a target system's specific path.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.