Documentation
¶
Index ¶
- Constants
- func AddHomelabFlags(ctx context.Context, cmd *cobra.Command, opts *GlobalCmdOptions)
- func AutoCompleteContainers(ctx context.Context, args []string, cmd string, opts *GlobalCmdOptions) ([]string, cobra.ShellCompDirective)
- func AutoCompleteGroups(ctx context.Context, args []string, cmd string, opts *GlobalCmdOptions) ([]string, cobra.ShellCompDirective)
- func BuildDeployment(ctx context.Context, cmd string, opts *GlobalCmdOptions) (*deployment.Deployment, error)
- func ExecContainerGroupCmd(ctx context.Context, cmd, action, group, container string, ...) error
- func ExecPurgeContainer(ctx context.Context, c *deployment.Container, h *host.HostInfo, ...) error
- func ExecStartContainer(ctx context.Context, c *deployment.Container, h *host.HostInfo, ...) error
- func ExecStopContainer(ctx context.Context, c *deployment.Container, h *host.HostInfo, ...) error
- type GlobalCmdOptions
Constants ¶
View Source
const ( ConfigCmdGroupID = "config" ContainersCmdGroupID = "containers" )
View Source
const (
AllGroups = "all"
)
Variables ¶
This section is empty.
Functions ¶
func AddHomelabFlags ¶
func AddHomelabFlags(ctx context.Context, cmd *cobra.Command, opts *GlobalCmdOptions)
func AutoCompleteContainers ¶
func AutoCompleteContainers(ctx context.Context, args []string, cmd string, opts *GlobalCmdOptions) ([]string, cobra.ShellCompDirective)
func AutoCompleteGroups ¶
func AutoCompleteGroups(ctx context.Context, args []string, cmd string, opts *GlobalCmdOptions) ([]string, cobra.ShellCompDirective)
func BuildDeployment ¶
func BuildDeployment(ctx context.Context, cmd string, opts *GlobalCmdOptions) (*deployment.Deployment, error)
func ExecContainerGroupCmd ¶
func ExecContainerGroupCmd(ctx context.Context, cmd, action, group, container string, dep *deployment.Deployment, fn func(context.Context, *deployment.Container, *host.HostInfo, *docker.Client) error) error
func ExecPurgeContainer ¶
func ExecStartContainer ¶
Types ¶
type GlobalCmdOptions ¶
type GlobalCmdOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.