cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2017 License: MIT Imports: 21 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.2.0

type Agent struct {
	clientcmd.ServiceCommand

	Foreground bool   `long:"foreground" description:"Stay in foreground"`
	Socket     string `long:"socket" description:"Socket path (ensure the directory has restricted permissions)"`

	GetClient GetClient
	CmdRunner boshsys.CmdRunner
	FS        boshsys.FileSystem
}

func (Agent) Execute added in v0.2.0

func (c Agent) Execute(args []string) error

type Exec

type Exec struct {
	clientcmd.ServiceCommand

	GetClient GetClient
	CmdRunner boshsys.CmdRunner
	FS        boshsys.FileSystem

	Opts []string `long:"opts" description:"Options to pass through to SSH"`

	Args ExecArgs `positional-args:"true" optional:"true"`
}

func (Exec) Execute

func (c Exec) Execute(args []string) error

type ExecArgs

type ExecArgs struct {
	Host string `positional-arg-name:"HOST"`
}

type GetClient

type GetClient func(string) (*svchttpclient.Client, error)

type SignPublicKey

type SignPublicKey struct {
	clientcmd.ServiceCommand

	GetClient GetClient
	FS        boshsys.FileSystem

	Args SignPublicKeyArgs `positional-args:"true" required:"true"`
}

func (SignPublicKey) Execute

func (c SignPublicKey) Execute(args []string) error

type SignPublicKeyArgs

type SignPublicKeyArgs struct {
	Path string `positional-arg-name:"PATH"`
}

Jump to

Keyboard shortcuts

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