clicommon

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 ExecPurgeContainer(ctx context.Context, c *deployment.Container, h *host.HostInfo, dc *docker.Client) error

func ExecStartContainer

func ExecStartContainer(ctx context.Context, c *deployment.Container, h *host.HostInfo, dc *docker.Client) error

func ExecStopContainer

func ExecStopContainer(ctx context.Context, c *deployment.Container, h *host.HostInfo, dc *docker.Client) error

Types

type GlobalCmdOptions

type GlobalCmdOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL