Help us shape the future of Go! Take the 2026 Go Developer Survey

container

package
v1.233.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerFlags

func ContainerFlags() *flags.FlagRegistry

ContainerFlags returns the registry of flags shared by container subcommands. Runtime selection is via the global `container.runtime.provider` config and the ATMOS_CONTAINER_RUNTIME environment variable, both honored by the runtime detector, so no per-command runtime flag is needed.

func RegisterContainerCompletions

func RegisterContainerCompletions(cmd *cobra.Command)

RegisterContainerCompletions registers completion functions for the container command. Every subcommand takes a component argument.

func WithContainerFlags

func WithContainerFlags() flags.Option

WithContainerFlags returns a flags.Option that adds the container flags.

Types

type ContainerCommandProvider

type ContainerCommandProvider struct{}

ContainerCommandProvider implements the CommandProvider interface.

func (*ContainerCommandProvider) GetAliases

GetAliases returns command aliases.

func (*ContainerCommandProvider) GetCommand

func (c *ContainerCommandProvider) GetCommand() *cobra.Command

GetCommand returns the container command.

func (*ContainerCommandProvider) GetCompatibilityFlags

func (c *ContainerCommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag

GetCompatibilityFlags returns compatibility flags for this command.

func (*ContainerCommandProvider) GetFlagsBuilder

func (c *ContainerCommandProvider) GetFlagsBuilder() flags.Builder

GetFlagsBuilder returns the flags builder for this command.

func (*ContainerCommandProvider) GetGroup

func (c *ContainerCommandProvider) GetGroup() string

GetGroup returns the command group for help organization.

func (*ContainerCommandProvider) GetName

func (c *ContainerCommandProvider) GetName() string

GetName returns the command name.

func (*ContainerCommandProvider) GetPositionalArgsBuilder

func (c *ContainerCommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder

GetPositionalArgsBuilder returns the positional args builder for this command.

func (*ContainerCommandProvider) IsExperimental

func (c *ContainerCommandProvider) IsExperimental() bool

IsExperimental returns whether this command is experimental.

Jump to

Keyboard shortcuts

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