cli

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	clientcmd.ServiceCommand
	clientcmd.InteractiveAuthCommand

	Foreground bool   `long:"foreground" description:"Stay in foreground"`
	Socket     string `long:"socket" description:"Socket path (ensure the directory has restricted permissions)"`
	// contains filtered or unexported fields
}

func (Agent) Execute

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

type Commands

type Commands struct {
	Agent         Agent         `command:"agent" description:"Start an SSH agent"`
	Exec          Exec          `command:"exec" description:"Connect to a remote SSH server"`
	SignPublicKey SignPublicKey `command:"sign-public-key" description:"Create a certificate for a specific public key"`
	// contains filtered or unexported fields
}

func CreateCommands

func CreateCommands(runtime client.Runtime, sf svc.ServiceFactory, fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner) *Commands

type Exec

type Exec struct {
	clientcmd.ServiceCommand
	clientcmd.InteractiveAuthCommand

	Exec      string   `long:"exec" description:"Path to the ssh binary"`
	ExtraOpts []string `long:"opt" description:"Additional option to pass to ssh"` // @todo
	Args      ExecArgs `positional-args:"true" optional:"true"`
	// contains filtered or unexported fields
}

func (Exec) Execute

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

type ExecArgs

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

type SignPublicKey

type SignPublicKey struct {
	clientcmd.ServiceCommand
	clientcmd.InteractiveAuthCommand

	Args SignPublicKeyArgs `positional-args:"true" required:"true"`
	// contains filtered or unexported fields
}

func (SignPublicKey) Execute

func (c SignPublicKey) Execute(_ []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