flags

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 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 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 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