Documentation
¶
Index ¶
- func WithAppContext(ctx context.Context, app *AppContext) context.Context
- type AppContext
- func (a *AppContext) AssumeYes() bool
- func (a *AppContext) Client() (*client.Client, error)
- func (a *AppContext) Config() *clitypes.Config
- func (a *AppContext) EnvID() string
- func (a *AppContext) IsJSON() bool
- func (a *AppContext) NoColor() bool
- func (a *AppContext) OutputMode() OutputMode
- func (a *AppContext) RequestTimeout() time.Duration
- func (a *AppContext) UnauthClient() (*client.Client, error)
- type Options
- type OutputMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAppContext ¶
func WithAppContext(ctx context.Context, app *AppContext) context.Context
Types ¶
type AppContext ¶
type AppContext struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts Options) (*AppContext, error)
func (*AppContext) AssumeYes ¶
func (a *AppContext) AssumeYes() bool
func (*AppContext) Config ¶
func (a *AppContext) Config() *clitypes.Config
func (*AppContext) EnvID ¶
func (a *AppContext) EnvID() string
func (*AppContext) IsJSON ¶
func (a *AppContext) IsJSON() bool
func (*AppContext) NoColor ¶
func (a *AppContext) NoColor() bool
func (*AppContext) OutputMode ¶
func (a *AppContext) OutputMode() OutputMode
func (*AppContext) RequestTimeout ¶
func (a *AppContext) RequestTimeout() time.Duration
func (*AppContext) UnauthClient ¶
func (a *AppContext) UnauthClient() (*client.Client, error)
type OutputMode ¶
type OutputMode string
const ( OutputModeText OutputMode = "text" OutputModeJSON OutputMode = "json" )
Click to show internal directories.
Click to hide internal directories.