cri

package
v1.10.0-alpha.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cri contains resources related to the Container Runtime Interface (CRI).

Index

Constants

View Source
const ImageCacheConfigID = "image-cache"

ImageCacheConfigID is the ID of the ImageCacheConfig resource.

View Source
const ImageCacheConfigType = resource.Type("ImageCacheConfigs.cri.talos.dev")

ImageCacheConfigType is type of ImageCacheConfig resource.

View Source
const NamespaceName resource.Namespace = "cri"

NamespaceName contains resources related to stats.

View Source
const RegistriesConfigID resource.ID = "registries"

RegistriesConfigID is the singleton resource ID.

View Source
const RegistriesConfigType = resource.Type("RegistryConfigs.cri.talos.dev")

RegistriesConfigType is type of RegistriesConfig resource.

View Source
const SeccompProfileType = resource.Type("SeccompProfiles.cri.talos.dev")

SeccompProfileType is type of SeccompProfile resource.

Variables

This section is empty.

Functions

func ImageCacheCopyStatusStrings added in v1.9.0

func ImageCacheCopyStatusStrings() []string

ImageCacheCopyStatusStrings returns a slice of all String values of the enum

func ImageCacheStatusStrings added in v1.9.0

func ImageCacheStatusStrings() []string

ImageCacheStatusStrings returns a slice of all String values of the enum

func RegistryBuilder added in v1.9.0

func RegistryBuilder(st state.State) func(ctx context.Context) (config.Registries, error)

RegistryBuilder implements image.RegistriesBuilder.

func WaitForImageCache added in v1.9.0

func WaitForImageCache(ctx context.Context, st state.State) error

WaitForImageCache waits for the image cache config to be either disabled or ready.

func WaitForImageCacheCopy added in v1.9.0

func WaitForImageCacheCopy(ctx context.Context, st state.State) error

WaitForImageCacheCopy waits for the image cache copy to be done (or skipped).

Types

type ImageCacheConfig added in v1.9.0

ImageCacheConfig represents ImageCacheConfig typed resource.

func NewImageCacheConfig added in v1.9.0

func NewImageCacheConfig() *ImageCacheConfig

NewImageCacheConfig creates new ImageCacheConfig object.

type ImageCacheConfigExtension added in v1.9.0

type ImageCacheConfigExtension struct{}

ImageCacheConfigExtension is an auxiliary type for ImageCacheConfig resource.

func (ImageCacheConfigExtension) ResourceDefinition added in v1.9.0

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

type ImageCacheConfigSpec added in v1.9.0

type ImageCacheConfigSpec struct {
	Status     ImageCacheStatus     `yaml:"status" protobuf:"1"`
	CopyStatus ImageCacheCopyStatus `yaml:"copyStatus" protobuf:"3"`
	Roots      []string             `yaml:"roots" protobuf:"2"`
}

ImageCacheConfigSpec represents the ImageCacheConfig.

func (ImageCacheConfigSpec) DeepCopy added in v1.9.0

DeepCopy generates a deep copy of ImageCacheConfigSpec.

type ImageCacheCopyStatus added in v1.9.0

type ImageCacheCopyStatus int

ImageCacheCopyStatus describes image cache copy status type.

const (
	ImageCacheCopyStatusUnknown ImageCacheCopyStatus = iota // unknown
	ImageCacheCopyStatusSkipped                             // skipped
	ImageCacheCopyStatusPending                             // copying
	ImageCacheCopyStatusReady                               // ready
)

ImageCacheCopyStatus values.

func ImageCacheCopyStatusString added in v1.9.0

func ImageCacheCopyStatusString(s string) (ImageCacheCopyStatus, error)

ImageCacheCopyStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ImageCacheCopyStatusValues added in v1.9.0

func ImageCacheCopyStatusValues() []ImageCacheCopyStatus

ImageCacheCopyStatusValues returns all values of the enum

func (ImageCacheCopyStatus) IsAImageCacheCopyStatus added in v1.9.0

func (i ImageCacheCopyStatus) IsAImageCacheCopyStatus() bool

IsAImageCacheCopyStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (ImageCacheCopyStatus) MarshalText added in v1.9.0

func (i ImageCacheCopyStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ImageCacheCopyStatus

func (ImageCacheCopyStatus) String added in v1.9.0

func (i ImageCacheCopyStatus) String() string

func (*ImageCacheCopyStatus) UnmarshalText added in v1.9.0

func (i *ImageCacheCopyStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ImageCacheCopyStatus

type ImageCacheStatus added in v1.9.0

type ImageCacheStatus int

ImageCacheStatus describes image cache status type.

const (
	ImageCacheStatusUnknown   ImageCacheStatus = iota // unknown
	ImageCacheStatusDisabled                          // disabled
	ImageCacheStatusPreparing                         // preparing
	ImageCacheStatusReady                             // ready
)

ImageCacheStatus values.

func ImageCacheStatusString added in v1.9.0

func ImageCacheStatusString(s string) (ImageCacheStatus, error)

ImageCacheStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ImageCacheStatusValues added in v1.9.0

func ImageCacheStatusValues() []ImageCacheStatus

ImageCacheStatusValues returns all values of the enum

func (ImageCacheStatus) IsAImageCacheStatus added in v1.9.0

func (i ImageCacheStatus) IsAImageCacheStatus() bool

IsAImageCacheStatus returns "true" if the value is listed in the enum definition. "false" otherwise

func (ImageCacheStatus) MarshalText added in v1.9.0

func (i ImageCacheStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ImageCacheStatus

func (ImageCacheStatus) String added in v1.9.0

func (i ImageCacheStatus) String() string

func (*ImageCacheStatus) UnmarshalText added in v1.9.0

func (i *ImageCacheStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ImageCacheStatus

type RegistriesConfig added in v1.9.0

RegistriesConfig resource holds info about container registries.

func NewRegistriesConfig added in v1.9.0

func NewRegistriesConfig() *RegistriesConfig

NewRegistriesConfig initializes a RegistriesConfig resource.

type RegistriesConfigExtension added in v1.9.0

type RegistriesConfigExtension struct{}

RegistriesConfigExtension provides auxiliary methods for RegistriesConfig.

func (RegistriesConfigExtension) ResourceDefinition added in v1.9.0

ResourceDefinition implements typed.Extension interface.

type RegistriesConfigSpec added in v1.9.0

type RegistriesConfigSpec struct {
	RegistryMirrors map[string]*RegistryMirrorConfig `yaml:"mirrors,omitempty" protobuf:"1"`
	RegistryConfig  map[string]*RegistryConfig       `yaml:"config,omitempty" protobuf:"2"`
}

RegistriesConfigSpec describes status of rendered secrets.

func (RegistriesConfigSpec) Config added in v1.9.0

Config implements the Registries interface.

func (RegistriesConfigSpec) DeepCopy added in v1.9.0

DeepCopy generates a deep copy of RegistriesConfigSpec.

func (RegistriesConfigSpec) Mirrors added in v1.9.0

Mirrors implements the Registries interface.

type RegistryAuthConfig added in v1.9.0

type RegistryAuthConfig struct {
	RegistryUsername      string `yaml:"username,omitempty" protobuf:"1"`
	RegistryPassword      string `yaml:"password,omitempty" protobuf:"2"`
	RegistryAuth          string `yaml:"auth,omitempty" protobuf:"3"`
	RegistryIdentityToken string `yaml:"identityToken,omitempty" protobuf:"4"`
}

RegistryAuthConfig specifies authentication configuration for a registry.

type RegistryConfig added in v1.9.0

type RegistryConfig struct {
	RegistryTLS  *RegistryTLSConfig  `yaml:"tls,omitempty" protobuf:"1"`
	RegistryAuth *RegistryAuthConfig `yaml:"auth,omitempty" protobuf:"2"`
}

RegistryConfig specifies auth & TLS config per registry.

func (*RegistryConfig) Auth added in v1.9.0

Auth implements the Registries interface.

func (*RegistryConfig) TLS added in v1.9.0

TLS implements the Registries interface.

type RegistryMirrorConfig added in v1.9.0

type RegistryMirrorConfig struct {
	MirrorEndpoints    []string `yaml:"endpoints" protobuf:"1"`
	MirrorOverridePath *bool    `yaml:"overridePath,omitempty" protobuf:"2"`
	MirrorSkipFallback *bool    `yaml:"skipFallback,omitempty" protobuf:"3"`
}

RegistryMirrorConfig represents mirror configuration for a registry.

type RegistryTLSConfig added in v1.9.0

type RegistryTLSConfig struct {
	TLSClientIdentity     *x509.PEMEncodedCertificateAndKey `yaml:"clientIdentity,omitempty" protobuf:"1"`
	TLSCA                 v1alpha1.Base64Bytes              `yaml:"ca,omitempty" protobuf:"2"`
	TLSInsecureSkipVerify *bool                             `yaml:"insecureSkipVerify,omitempty" protobuf:"3"`
}

RegistryTLSConfig specifies TLS config for HTTPS registries.

type SeccompProfile

SeccompProfile represents SeccompProfile typed resource.

func NewSeccompProfile

func NewSeccompProfile(id string) *SeccompProfile

NewSeccompProfile creates new SeccompProfile object.

type SeccompProfileExtension added in v1.4.0

type SeccompProfileExtension struct{}

SeccompProfileExtension is an auxiliary type for SeccompProfile resource.

func (SeccompProfileExtension) ResourceDefinition added in v1.4.0

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

type SeccompProfileSpec

type SeccompProfileSpec struct {
	Name  string         `yaml:"name" protobuf:"1"`
	Value map[string]any `yaml:"value" protobuf:"2"`
}

SeccompProfileSpec represents the SeccompProfile.

func (SeccompProfileSpec) DeepCopy

DeepCopy generates a deep copy of SeccompProfileSpec.

Jump to

Keyboard shortcuts

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