Documentation
¶
Index ¶
- func Execute()
- func NewDockerClient() (*client.Client, error)
- func WrapCommandWithResources(fn func(cmd *cobra.Command, args []string), resourceCfg ResourceConfig) func(cmd *cobra.Command, args []string)
- type AppCtx
- type BuildResponse
- type ContextKey
- type Network
- type ResourceConfig
- type ResourceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDockerClient ¶
Types ¶
type AppCtx ¶
type AppCtx struct {
Docker struct {
Networks map[string]*network.EndpointSettings
Client *client.Client
}
Vault struct {
Prefix string
Client *onepassword.Client
ID string
}
Context context.Context
Spinner *spinner.Spinner
}
func (*AppCtx) InitializeDocker ¶
func (*AppCtx) InitializeOnePass ¶
type BuildResponse ¶
type ResourceConfig ¶
type ResourceConfig struct {
Resources []ResourceType
Networks []Network
}
type ResourceType ¶
type ResourceType int
const ( ResourceDocker ResourceType = iota ResourceOnePassword )
Click to show internal directories.
Click to hide internal directories.