Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionFunc ¶
type ConnectionFunc func(cfg *connection.Config) (connection.Connection, error)
type Factory ¶
type Factory struct { // Type which defines the streams for the CLI IOStreams *iostreams.IOStreams // Creates a connection to the API Connection ConnectionFunc // Returns a logger to create leveled logs in the application Logger func() (logging.Logger, error) // Localizer provides text to the commands Localizer localize.Localizer // CfgHandler provides the fields required for managing config CfgHandler *config.CfgHandler }
Factory is an abstract type which provides access to the root configuration and connections for the CLI
Click to show internal directories.
Click to hide internal directories.