Documentation
¶
Index ¶
- type ClientArgs
- func (a *ClientArgs) BuildClient() (api.ForgeDaemonClient, error)
- func (a *ClientArgs) BuildCommands() []*cli.Command
- func (a *ClientArgs) BuildFlags() []cli.Flag
- func (a *ClientArgs) BuildForgeCommand() *cli.Command
- func (a *ClientArgs) GetContext() context.Context
- func (a *ClientArgs) GetLogger() *logrus.Entry
- func (a *ClientArgs) SetClient(client api.ForgeDaemonClient)
- func (a *ClientArgs) SetContext(c context.Context)
- func (a *ClientArgs) SetLogger(le *logrus.Entry)
- type DaemonArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientArgs ¶
type ClientArgs struct {
// CbusConf is the controller-bus configuration.
CbusConf cbus_cli.ClientArgs
// BifrostConf is the bifrost configuration.
BifrostConf bifrost_cli.ClientArgs
// HydraConf is the hydra configuration.
HydraConf hydra_cli.ClientArgs
// DialAddr is the address to dial.
DialAddr string
// contains filtered or unexported fields
}
ClientArgs contains the client arguments and functions.
func (*ClientArgs) BuildClient ¶
func (a *ClientArgs) BuildClient() (api.ForgeDaemonClient, 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) BuildFlags ¶
func (a *ClientArgs) BuildFlags() []cli.Flag
BuildFlags attaches the flags to a flag set.
func (*ClientArgs) BuildForgeCommand ¶
func (a *ClientArgs) BuildForgeCommand() *cli.Command
BuildForgeCommand returns the forge sub-command set.
func (*ClientArgs) GetContext ¶
func (a *ClientArgs) GetContext() context.Context
GetContext returns the context.
func (*ClientArgs) GetLogger ¶
func (a *ClientArgs) GetLogger() *logrus.Entry
GetLogger returns the log entry
func (*ClientArgs) SetClient ¶
func (a *ClientArgs) SetClient(client api.ForgeDaemonClient)
SetClient sets the client instance.
func (*ClientArgs) SetContext ¶
func (a *ClientArgs) SetContext(c context.Context)
SetContext sets the context.
func (*ClientArgs) SetLogger ¶
func (a *ClientArgs) SetLogger(le *logrus.Entry)
SetLogger sets the root log entry.
type DaemonArgs ¶
type DaemonArgs struct{}
DaemonArgs contains common flags for forge daemons.
func (*DaemonArgs) ApplyToConfigSet ¶
func (a *DaemonArgs) ApplyToConfigSet(confSet configset.ConfigSet, overwrite bool) error
ApplyToConfigSet applies the configured values to the configset.
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.