features

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, feature Feature) error

func Reset

func Reset()

Types

type ContainerRuntime

type ContainerRuntime interface {
	RegisterBlockingPostStartCmd([]string)
	Inspect(string) (string, error)
}

type Feature

type Feature interface {
	Configure() error
	Initialize() (OptionSet, error)
	Enabled() bool
	HandleError(error)
	ExitOnError() bool
}

type OptionSet

type OptionSet struct {
	Mounts             []engine.VolumeMount
	Envs               []engine.EnvVar
	PortMap            map[string]int
	PostStartExecHooks [](func(ContainerRuntime) error)
}

func Initialize

func Initialize() (OptionSet, error)

func NewOptionSet

func NewOptionSet() OptionSet

func (*OptionSet) AddEnv

func (o *OptionSet) AddEnv(env ...engine.EnvVar)

func (*OptionSet) AddEnvKey

func (o *OptionSet) AddEnvKey(key string)

func (*OptionSet) AddEnvKeyVal

func (o *OptionSet) AddEnvKeyVal(key string, val string)

func (*OptionSet) AddVolumeMount

func (o *OptionSet) AddVolumeMount(mount ...engine.VolumeMount)

func (*OptionSet) RegisterPortMap

func (o *OptionSet) RegisterPortMap(ports map[string]int)

func (*OptionSet) RegisterPostStartExecHook

func (o *OptionSet) RegisterPostStartExecHook(hooks ...func(ContainerRuntime) error)

Jump to

Keyboard shortcuts

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