ssh

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

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