client

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent added in v0.8.0

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

func (Agent) Add added in v0.8.0

func (a Agent) Add(key sshagent.AddedKey) error

func (Agent) List added in v0.8.0

func (a Agent) List() ([]*sshagent.Key, error)

func (Agent) Listen added in v0.8.0

func (a Agent) Listen(socket net.Listener) error

func (Agent) Lock added in v0.8.0

func (a Agent) Lock(passphrase []byte) error

func (Agent) Remove added in v0.8.0

func (a Agent) Remove(key ssh.PublicKey) error

func (Agent) RemoveAll added in v0.8.0

func (a Agent) RemoveAll() error

func (Agent) Sign added in v0.8.0

func (a Agent) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)

func (Agent) Signers added in v0.8.0

func (a Agent) Signers() ([]ssh.Signer, error)

func (Agent) Unlock added in v0.8.0

func (a Agent) Unlock(passphrase []byte) error

type ExecuteOptions added in v0.8.0

type ExecuteOptions struct {
	Exec      string
	ExtraArgs []string

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer

	Host string

	SkipAuthRetry bool
}

type Service

type Service struct {
	svc.ServiceType
	// contains filtered or unexported fields
}

func NewService

func NewService(name string, runtime client.Runtime, fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner) *Service

func (Service) Execute added in v0.8.0

func (s Service) Execute(opts ExecuteOptions) (int, error)

func (Service) GetClient

func (s Service) GetClient(skipAuthRetry bool) (svchttpclient.Client, error)

func (Service) Name added in v0.17.0

func (s Service) Name() string

func (Service) NewAgent added in v0.8.0

func (s Service) NewAgent(parent sshagent.Agent) Agent

func (Service) SignPublicKey added in v0.8.0

type ServiceFactory added in v0.8.0

type ServiceFactory struct {
	svc.ServiceType
	// contains filtered or unexported fields
}

func NewServiceFactory added in v0.8.0

func NewServiceFactory(runtime client.Runtime, fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner) ServiceFactory

func (ServiceFactory) New added in v0.8.0

func (sf ServiceFactory) New(name string) *Service

type SignPublicKeyOptions added in v0.8.0

type SignPublicKeyOptions struct {
	SkipAuthRetry bool
	PublicKey     []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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