Documentation ¶
Overview ¶
Package cri contains resources related to the Container Runtime Interface (CRI).
Index ¶
- Constants
- func ImageCacheCopyStatusStrings() []string
- func ImageCacheStatusStrings() []string
- func RegistryBuilder(st state.State) func(ctx context.Context) (config.Registries, error)
- func WaitForImageCache(ctx context.Context, st state.State) error
- func WaitForImageCacheCopy(ctx context.Context, st state.State) error
- type ImageCacheConfig
- type ImageCacheConfigExtension
- type ImageCacheConfigSpec
- type ImageCacheCopyStatus
- type ImageCacheStatus
- type RegistriesConfig
- type RegistriesConfigExtension
- type RegistriesConfigSpec
- type RegistryAuthConfig
- type RegistryConfig
- type RegistryMirrorConfig
- type RegistryTLSConfig
- type SeccompProfile
- type SeccompProfileExtension
- type SeccompProfileSpec
Constants ¶
const ImageCacheConfigID = "image-cache"
ImageCacheConfigID is the ID of the ImageCacheConfig resource.
const ImageCacheConfigType = resource.Type("ImageCacheConfigs.cri.talos.dev")
ImageCacheConfigType is type of ImageCacheConfig resource.
const NamespaceName resource.Namespace = "cri"
NamespaceName contains resources related to stats.
const RegistriesConfigID resource.ID = "registries"
RegistriesConfigID is the singleton resource ID.
const RegistriesConfigType = resource.Type("RegistryConfigs.cri.talos.dev")
RegistriesConfigType is type of RegistriesConfig resource.
const SeccompProfileType = resource.Type("SeccompProfiles.cri.talos.dev")
SeccompProfileType is type of SeccompProfile resource.
Variables ¶
This section is empty.
Functions ¶
func ImageCacheCopyStatusStrings ¶
func ImageCacheCopyStatusStrings() []string
ImageCacheCopyStatusStrings returns a slice of all String values of the enum
func ImageCacheStatusStrings ¶
func ImageCacheStatusStrings() []string
ImageCacheStatusStrings returns a slice of all String values of the enum
func RegistryBuilder ¶
RegistryBuilder implements image.RegistriesBuilder.
func WaitForImageCache ¶
WaitForImageCache waits for the image cache config to be either disabled or ready.
Types ¶
type ImageCacheConfig ¶
type ImageCacheConfig = typed.Resource[ImageCacheConfigSpec, ImageCacheConfigExtension]
ImageCacheConfig represents ImageCacheConfig typed resource.
func NewImageCacheConfig ¶
func NewImageCacheConfig() *ImageCacheConfig
NewImageCacheConfig creates new ImageCacheConfig object.
type ImageCacheConfigExtension ¶
type ImageCacheConfigExtension struct{}
ImageCacheConfigExtension is an auxiliary type for ImageCacheConfig resource.
func (ImageCacheConfigExtension) ResourceDefinition ¶
func (ImageCacheConfigExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type ImageCacheConfigSpec ¶
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 ¶
func (o ImageCacheConfigSpec) DeepCopy() ImageCacheConfigSpec
DeepCopy generates a deep copy of ImageCacheConfigSpec.
type ImageCacheCopyStatus ¶
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 ¶
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 ¶
func ImageCacheCopyStatusValues() []ImageCacheCopyStatus
ImageCacheCopyStatusValues returns all values of the enum
func (ImageCacheCopyStatus) IsAImageCacheCopyStatus ¶
func (i ImageCacheCopyStatus) IsAImageCacheCopyStatus() bool
IsAImageCacheCopyStatus returns "true" if the value is listed in the enum definition. "false" otherwise
func (ImageCacheCopyStatus) MarshalText ¶
func (i ImageCacheCopyStatus) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for ImageCacheCopyStatus
func (ImageCacheCopyStatus) String ¶
func (i ImageCacheCopyStatus) String() string
func (*ImageCacheCopyStatus) UnmarshalText ¶
func (i *ImageCacheCopyStatus) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for ImageCacheCopyStatus
type ImageCacheStatus ¶
type ImageCacheStatus int
ImageCacheStatus describes image cache status type.
const ( ImageCacheStatusUnknown ImageCacheStatus = iota // unknown ImageCacheStatusDisabled // disabled ImageCacheStatusPreparing // preparing ImageCacheStatusReady // ready )
ImageCacheStatus values.
func ImageCacheStatusString ¶
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 ¶
func ImageCacheStatusValues() []ImageCacheStatus
ImageCacheStatusValues returns all values of the enum
func (ImageCacheStatus) IsAImageCacheStatus ¶
func (i ImageCacheStatus) IsAImageCacheStatus() bool
IsAImageCacheStatus returns "true" if the value is listed in the enum definition. "false" otherwise
func (ImageCacheStatus) MarshalText ¶
func (i ImageCacheStatus) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for ImageCacheStatus
func (ImageCacheStatus) String ¶
func (i ImageCacheStatus) String() string
func (*ImageCacheStatus) UnmarshalText ¶
func (i *ImageCacheStatus) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for ImageCacheStatus
type RegistriesConfig ¶
type RegistriesConfig = typed.Resource[RegistriesConfigSpec, RegistriesConfigExtension]
RegistriesConfig resource holds info about container registries.
func NewRegistriesConfig ¶
func NewRegistriesConfig() *RegistriesConfig
NewRegistriesConfig initializes a RegistriesConfig resource.
type RegistriesConfigExtension ¶
type RegistriesConfigExtension struct{}
RegistriesConfigExtension provides auxiliary methods for RegistriesConfig.
func (RegistriesConfigExtension) ResourceDefinition ¶
func (RegistriesConfigExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type RegistriesConfigSpec ¶
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 ¶
func (r RegistriesConfigSpec) Config() map[string]config2.RegistryConfig
Config implements the Registries interface.
func (RegistriesConfigSpec) DeepCopy ¶
func (o RegistriesConfigSpec) DeepCopy() RegistriesConfigSpec
DeepCopy generates a deep copy of RegistriesConfigSpec.
func (RegistriesConfigSpec) Mirrors ¶
func (r RegistriesConfigSpec) Mirrors() map[string]config2.RegistryMirrorConfig
Mirrors implements the Registries interface.
type RegistryAuthConfig ¶
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 ¶
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 ¶
func (c *RegistryConfig) Auth() config2.RegistryAuthConfig
Auth implements the Registries interface.
func (*RegistryConfig) TLS ¶
func (c *RegistryConfig) TLS() config2.RegistryTLSConfig
TLS implements the Registries interface.
type RegistryMirrorConfig ¶
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 ¶
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 ¶
type SeccompProfile = typed.Resource[SeccompProfileSpec, SeccompProfileExtension]
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
func (SeccompProfileExtension) ResourceDefinition() meta.ResourceDefinitionSpec
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 ¶
func (o SeccompProfileSpec) DeepCopy() SeccompProfileSpec
DeepCopy generates a deep copy of SeccompProfileSpec.