k3sup: github.com/alexellis/k3sup/pkg/operator Index | Files

package ssh

import "github.com/alexellis/k3sup/pkg/operator"

Index

Package Files

operator.go ssh.go

type CommandOperator Uses

type CommandOperator interface {
    Execute(command string) (CommandRes, error)
}

type CommandRes Uses

type CommandRes struct {
    StdOut []byte
    StdErr []byte
}

type ExecOperator Uses

type ExecOperator struct {
}

func (ExecOperator) Execute Uses

func (ex ExecOperator) Execute(command string) (CommandRes, error)

type SSHOperator Uses

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

func NewSSHOperator Uses

func NewSSHOperator(address string, config *ssh.ClientConfig) (*SSHOperator, error)

func (SSHOperator) Close Uses

func (s SSHOperator) Close() error

func (SSHOperator) Execute Uses

func (s SSHOperator) Execute(command string) (CommandRes, error)

Package ssh imports 6 packages (graph) and is imported by 1 packages. Updated 2020-03-06. Refresh now. Tools for package owners.