cri

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package cri provides CRI related controllers.

Index

Constants

View Source
const (
	VolumeImageCacheISO  = "IMAGECACHE-ISO"
	VolumeImageCacheDISK = constants.ImageCachePartitionLabel

	MinImageCacheSize = 500 * 1024 * 1024      // 500MB
	MaxImageCacheSize = 1 * 1024 * 1024 * 1024 // 1GB

	RegistrydServiceID = services.RegistryID
)

Volume configuration constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageCacheConfigController added in v1.9.0

type ImageCacheConfigController struct {
	V1Alpha1ServiceManager ServiceManager
	VolumeMounter          func(label string, opts ...mountv2.NewPointOption) error

	DisableCacheCopy bool // used for testing
	// contains filtered or unexported fields
}

ImageCacheConfigController manages configures Image Cache.

func (*ImageCacheConfigController) Inputs added in v1.9.0

func (ctrl *ImageCacheConfigController) Inputs() []controller.Input

Inputs implements controller.StatsController interface.

func (*ImageCacheConfigController) Name added in v1.9.0

func (ctrl *ImageCacheConfigController) Name() string

Name implements controller.StatsController interface.

func (*ImageCacheConfigController) Outputs added in v1.9.0

func (ctrl *ImageCacheConfigController) Outputs() []controller.Output

Outputs implements controller.StatsController interface.

func (*ImageCacheConfigController) Run added in v1.9.0

Run implements controller.StatsController interface.

type RegistriesConfigController added in v1.9.0

type RegistriesConfigController = transform.Controller[*config.MachineConfig, *cri.RegistriesConfig]

RegistriesConfigController watches v1alpha1.Config, updates registry.RegistriesConfig.

func NewRegistriesConfigController added in v1.9.0

func NewRegistriesConfigController() *RegistriesConfigController

NewRegistriesConfigController creates new config controller.

type RuncMemFDBindController added in v1.8.0

type RuncMemFDBindController struct {
	V1Alpha1Mode runtimetalos.Mode
}

RuncMemFDBindController created a locked memfd bind for the runc binary, so that it can be used instead of copying the actual runc binary everytime.

func (*RuncMemFDBindController) Inputs added in v1.8.0

func (ctrl *RuncMemFDBindController) Inputs() []controller.Input

Inputs implements controller.Controller interface.

func (*RuncMemFDBindController) Name added in v1.8.0

func (ctrl *RuncMemFDBindController) Name() string

Name implements controller.Controller interface.

func (*RuncMemFDBindController) Outputs added in v1.8.0

func (ctrl *RuncMemFDBindController) Outputs() []controller.Output

Outputs implements controller.Controller interface.

func (*RuncMemFDBindController) Run added in v1.8.0

Run implements controller.Controller interface.

type SeccompProfileController

type SeccompProfileController struct{}

SeccompProfileController manages SeccompProfiles.

func (*SeccompProfileController) Inputs

func (ctrl *SeccompProfileController) Inputs() []controller.Input

Inputs implements controller.StatsController interface.

func (*SeccompProfileController) Name

func (ctrl *SeccompProfileController) Name() string

Name implements controller.StatsController interface.

func (*SeccompProfileController) Outputs

func (ctrl *SeccompProfileController) Outputs() []controller.Output

Outputs implements controller.StatsController interface.

func (*SeccompProfileController) Run

Run implements controller.StatsController interface.

type SeccompProfileFileController

type SeccompProfileFileController struct {
	V1Alpha1Mode             runtimetalos.Mode
	SeccompProfilesDirectory string
}

SeccompProfileFileController manages the Seccomp Profiles on the host.

func (*SeccompProfileFileController) Inputs

Inputs implements controller.StatsController interface.

func (*SeccompProfileFileController) Name

func (ctrl *SeccompProfileFileController) Name() string

Name implements controller.StatsController interface.

func (*SeccompProfileFileController) Outputs

Outputs implements controller.StatsController interface.

func (*SeccompProfileFileController) Run

Run implements controller.StatsController interface.

type ServiceManager added in v1.9.0

type ServiceManager interface {
	IsRunning(id string) (system.Service, bool, error)
	Load(services ...system.Service) []string
	Start(serviceIDs ...string) error
}

ServiceManager is the interface to the v1alpha1 services subsystems.

Jump to

Keyboard shortcuts

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