flags

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAuthFlagsToCommand

func AddAuthFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

AddAuthFlagsToCommand will add various auth method flags to the command.

func AddContainerDFlagsToCommand

func AddContainerDFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

AddContainerDFlagsToCommand will add the containerd specific flags to the supplied cobra command.

func AddDebugFlagsToCommand

func AddDebugFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

func AddGRPCServerFlagsToCommand

func AddGRPCServerFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

AddGRPCServerFlagsToCommand will add gRPC server flags to the supplied command.

func AddGWServerFlagsToCommand

func AddGWServerFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

AddGWServerFlagsToCommand will add gRPC HTTP gateway flags to the supplied command.

func AddGuestAgentAPIFlagsToCommand added in v0.13.0

func AddGuestAgentAPIFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

AddGuestAgentAPIFlagsToCommand will add the flags gating the guest-agent-backed gRPC services (exec, ssh proxy) to the supplied command. Both are off by default: exec runs arbitrary commands inside a guest, and ssh proxying tunnels a client to the guest's sshd, so operators must opt in explicitly on top of a microvm's own AllowGuestAgent spec flag.

func AddHiddenFlagsToCommand

func AddHiddenFlagsToCommand(cmd *cobra.Command, cfg *config.Config) error

AddHiddenFlagsToCommand will add hidden flags to the supplied command.

func AddMicrovmProviderFlagsToCommand

func AddMicrovmProviderFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

AddMicrovmProviderFlagsToCommand will add the microvm provider flags to the supplied command.

func AddNetworkFlagsToCommand

func AddNetworkFlagsToCommand(cmd *cobra.Command, cfg *config.Config) error

AddNetworkFlagsToCommand will add various network flags to the command.

func AddTLSFlagsToCommand

func AddTLSFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

AddTLSFlagsToCommand will add TLS-related flags to the given command.

func AddVirtioFSFlagsToCommand added in v0.8.0

func AddVirtioFSFlagsToCommand(cmd *cobra.Command, cfg *config.Config)

func CLIFlags

func CLIFlags(options ...WithFlagsFunc) []cli.Flag

func ParseFlags

func ParseFlags(cfg *config.Config) cli.BeforeFunc

Types

type WithFlagsFunc

type WithFlagsFunc func() []cli.Flag

func WithContainerDFlags

func WithContainerDFlags() WithFlagsFunc

func WithGlobalConfigFlags

func WithGlobalConfigFlags() WithFlagsFunc

func WithHTTPEndpointFlags

func WithHTTPEndpointFlags() WithFlagsFunc

Jump to

Keyboard shortcuts

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