Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commands ¶
type Commands struct {
*clientcmd.ServiceCommand `no-flag:"true"`
Set Set `command:"set" description:"Configure the connection to an environment" alias:"add"`
Info Info `command:"info" description:"Show environment information"`
Services Services `command:"services" description:"Show current services available from the environment"`
List List `command:"list" description:"List all locally-configured environments"`
Rename Rename `command:"rename" description:"Set a new name for the environment"`
SetOption SetOption `command:"set-option" description:"Set a local client option in the environment"`
UpdateClient UpdateClient `command:"update-client" description:"Download the latest client from the environment"`
Unset Unset `command:"unset" description:"Remove all configuration for an environment" alias:"remove"`
}
type GetClient ¶
type GetClient func() (svchttpclient.Client, error)
type GetDownloadClient ¶
type GetDownloadClient func(string, bool) (downloadhttpclient.Client, error)
type Info ¶
type Info struct {
*clientcmd.ServiceCommand `no-flag:"true"`
GetClient GetClient
}
type List ¶
type List struct {
*clientcmd.ServiceCommand `no-flag:"true"`
}
type Rename ¶
type Rename struct {
*clientcmd.ServiceCommand `no-flag:"true"`
GetClient GetClient
Args RenameArgs `positional-args:"true"`
}
type RenameArgs ¶
type RenameArgs struct {
Name string `positional-arg-name:"NEW-NAME" description:"New environment name"`
}
type Services ¶
type Services struct {
*clientcmd.ServiceCommand `no-flag:"true"`
GetClient GetClient
}
type Set ¶
type Set struct {
*clientcmd.ServiceCommand `no-flag:"true"`
GetClient GetClient
Args SetArgs `positional-args:"true"`
CACertificatePath string `long:"ca-cert" description:"Environment CA certificate path"`
SkipVerify bool `long:"skip-verify" description:"Skip verification of environment availability"`
FS boshsys.FileSystem
}
type SetArgs ¶
type SetArgs struct {
URL string `positional-arg-name:"URL" description:"Environment URL"`
}
type SetOption ¶
type SetOption struct {
*clientcmd.ServiceCommand `no-flag:"true"`
Args SetOptionArgs `positional-args:"true"`
CACertificatePath string `long:"ca-cert" description:"Environment CA certificate path"`
}
type SetOptionArgs ¶
type Unset ¶
type Unset struct {
*clientcmd.ServiceCommand `no-flag:"true"`
}
type UpdateClient ¶
type UpdateClient struct {
*clientcmd.ServiceCommand `no-flag:"true"`
clientcmd.InteractiveAuthCommand
FS boshsys.FileSystem
SsocaExec string
CmdRunner boshsys.CmdRunner
GetClient GetClient
GetDownloadClient GetDownloadClient
}
func (UpdateClient) Execute ¶
func (c UpdateClient) Execute(_ []string) error
Click to show internal directories.
Click to hide internal directories.