flags

package
v0.22.11 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RuntimeFlagName = "container-runtime"
View Source
const TestContainerOrchestratorSocketFlagName = "test-container-orchestrator-socket"

Variables

This section is empty.

Functions

func EnsureRuntimeFlag

func EnsureRuntimeFlag(flags *pflag.FlagSet)

func EnsureTestContainerOrchestratorSocketFlag

func EnsureTestContainerOrchestratorSocketFlag(flags *pflag.FlagSet)

func GetRuntimeFlag

func GetRuntimeFlag() string

func TryGetRemoteContainerOrchestrator

func TryGetRemoteContainerOrchestrator(lifetimeCtx context.Context, log logr.Logger) containers.RemoteContainerOrchestrator

Types

type RuntimeFlagValue

type RuntimeFlagValue string
const (
	UnknownRuntime RuntimeFlagValue = ""
	DockerRuntime  RuntimeFlagValue = "docker"
	PodmanRuntime  RuntimeFlagValue = "podman"
)

func GetRuntimeFlagValue

func GetRuntimeFlagValue() RuntimeFlagValue

func (*RuntimeFlagValue) Set

func (rf *RuntimeFlagValue) Set(flagValue string) error

func (*RuntimeFlagValue) String

func (rf *RuntimeFlagValue) String() string

func (*RuntimeFlagValue) Type

func (*RuntimeFlagValue) Type() string

type TestContainerOrchestratorSocketFlagValue

type TestContainerOrchestratorSocketFlagValue struct {
	SocketFilePath string
}

func (*TestContainerOrchestratorSocketFlagValue) Set

func (*TestContainerOrchestratorSocketFlagValue) String

func (*TestContainerOrchestratorSocketFlagValue) Type

Jump to

Keyboard shortcuts

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