Documentation
¶
Overview ¶
Package cri contains resources related to the Container Runtime Interface (CRI).
Index ¶
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 SeccompProfileType = resource.Type("SeccompProfiles.cri.talos.dev")
SeccompProfileType is type of SeccompProfile resource.
Variables ¶
This section is empty.
Functions ¶
func ImageCacheStatusStrings ¶ added in v1.9.0
func ImageCacheStatusStrings() []string
ImageCacheStatusStrings returns a slice of all String values of the enum
Types ¶
type ImageCacheConfig ¶ added in v1.9.0
type ImageCacheConfig = typed.Resource[ImageCacheConfigSpec, ImageCacheConfigExtension]
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
func (ImageCacheConfigExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type ImageCacheConfigSpec ¶ added in v1.9.0
type ImageCacheConfigSpec struct { Status ImageCacheStatus `yaml:"status" protobuf:"1"` Roots []string `yaml:"roots" protobuf:"2"` }
ImageCacheConfigSpec represents the ImageCacheConfig.
func (ImageCacheConfigSpec) DeepCopy ¶ added in v1.9.0
func (o ImageCacheConfigSpec) DeepCopy() ImageCacheConfigSpec
DeepCopy generates a deep copy of ImageCacheConfigSpec.
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 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.