Documentation ¶
Index ¶
Constants ¶
View Source
const AuthTokenRequiredMsg = `Required flag "auth-token" not set`
AuthTokenRequiredMsg is the message returned by the CLI when the auth-token flag is not set.
Variables ¶
This section is empty.
Functions ¶
func NewCLIContext ¶
NewCLIContext returns a simple CLI context to run tests against it.
func NewCommonMockClientError ¶
NewCommonMockClientError returns a mock client that handles a single request that fails.
func NewCommonMockClientSuccess ¶
NewCommonMockClientSuccess returns a mock client that handles a single request that succeeds.
func NewFlagSet ¶
NewFlagSet returns the base flag set to be added to the CLI contexts for tests running.
Types ¶
type App ¶
type App struct {
api.HTTPClient
}
App stitches together all the parts to make a fully formed application.
func Instance ¶
func Instance(httpClient api.HTTPClient) *App
Instance instantiates a new Application from a config, if it's already been instantiated, an error is returned.
Click to show internal directories.
Click to hide internal directories.