Documentation ¶
Index ¶
- type ClientArgs
- func (a *ClientArgs) BuildClient() (bus_api.ControllerBusServiceClient, error)
- func (a *ClientArgs) BuildCommands() []cli.Command
- func (a *ClientArgs) BuildControllerBusCommand() cli.Command
- func (a *ClientArgs) BuildFlags() []cli.Flag
- func (a *ClientArgs) GetContext() context.Context
- func (a *ClientArgs) RunBusInfo(_ *cli.Context) error
- func (a *ClientArgs) RunExecController(_ *cli.Context) error
- func (a *ClientArgs) SetClient(client bus_api.ControllerBusServiceClient)
- func (a *ClientArgs) SetContext(c context.Context)
- type DaemonArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientArgs ¶
type ClientArgs struct { // Interactive indicates we will pretty-print outputs. Interactive bool // DialAddr is the address to dial. DialAddr string // ExecConfigSetPath is the path to the exec controller request to execute. ExecConfigSetPath string // contains filtered or unexported fields }
ClientArgs contains the client arguments and functions.
func (*ClientArgs) BuildClient ¶
func (a *ClientArgs) BuildClient() (bus_api.ControllerBusServiceClient, error)
BuildClient builds the client or returns it if it has been set.
func (*ClientArgs) BuildCommands ¶
func (a *ClientArgs) BuildCommands() []cli.Command
BuildCommands attaches the commands.
func (*ClientArgs) BuildControllerBusCommand ¶
func (a *ClientArgs) BuildControllerBusCommand() cli.Command
BuildControllerBusCommand returns the controller-bus sub-command set.
func (*ClientArgs) BuildFlags ¶
func (a *ClientArgs) BuildFlags() []cli.Flag
BuildFlags attaches the flags to a flag set.
func (*ClientArgs) GetContext ¶
func (a *ClientArgs) GetContext() context.Context
GetContext returns the context.
func (*ClientArgs) RunBusInfo ¶
func (a *ClientArgs) RunBusInfo(_ *cli.Context) error
RunBusInfo runs the bus information command.
func (*ClientArgs) RunExecController ¶
func (a *ClientArgs) RunExecController(_ *cli.Context) error
RunExecController runs the execute configset command.
func (*ClientArgs) SetClient ¶
func (a *ClientArgs) SetClient(client bus_api.ControllerBusServiceClient)
SetClient sets the client instance.
func (*ClientArgs) SetContext ¶
func (a *ClientArgs) SetContext(c context.Context)
SetContext sets the context.
type DaemonArgs ¶
DaemonArgs contains common flags for controller-bus daemons.
func (*DaemonArgs) BuildFlags ¶
func (a *DaemonArgs) BuildFlags() []cli.Flag
BuildFlags attaches the flags to a flag set.
Click to show internal directories.
Click to hide internal directories.