Documentation ¶
Index ¶
- Constants
- func MetaKeyTagToID(t uint8) resource.ID
- type ExtensionStatus
- type ExtensionStatusExtension
- type ExtensionStatusSpec
- type KernelModuleSpec
- type KernelModuleSpecExtension
- type KernelModuleSpecSpec
- type KernelParam
- type KernelParamDefaultSpec
- type KernelParamDefaultSpecExtension
- type KernelParamDefaultSpecSpec
- type KernelParamSpec
- type KernelParamSpecExtension
- type KernelParamSpecSpec
- type KernelParamStatus
- type KernelParamStatusExtension
- type KernelParamStatusSpec
- type KernelParamsSetCondition
- type MachineStage
- type MachineStatus
- type MachineStatusExtension
- type MachineStatusSpec
- type MachineStatusStatus
- type MetaKey
- type MetaKeyExtension
- type MetaKeySpec
- type MountStatus
- type MountStatusExtension
- type MountStatusSpec
- type PlatformMetadata
- type PlatformMetadataExtension
- type PlatformMetadataSpec
- type UnmetCondition
Constants ¶
const ExtensionStatusType = resource.Type("ExtensionStatuses.runtime.talos.dev")
ExtensionStatusType is type of Extension resource.
const KernelModuleSpecType = resource.Type("KernelModuleSpecs.runtime.talos.dev")
KernelModuleSpecType is type of KernelModuleSpec resource.
const KernelParamDefaultSpecType = resource.Type("KernelParamDefaultSpecs.runtime.talos.dev")
KernelParamDefaultSpecType is type of KernelParam resource for default kernel params.
const KernelParamSpecType = resource.Type("KernelParamSpecs.runtime.talos.dev")
KernelParamSpecType is type of KernelParam resource.
const KernelParamStatusType = resource.Type("KernelParamStatuses.runtime.talos.dev")
KernelParamStatusType is type of KernelParam resource.
const MachineStatusID = resource.ID("machine")
MachineStatusID is singleton MachineStatus resource ID.
const MachineStatusType = resource.Type("MachineStatuses.runtime.talos.dev")
MachineStatusType is type of MachineStatus resource.
const MetaKeyType = resource.Type("MetaKeys.runtime.talos.dev")
MetaKeyType is type of MetaKey resource.
const MountStatusType = resource.Type("MountStatuses.runtime.talos.dev")
MountStatusType is type of Mount resource.
const NamespaceName resource.Namespace = v1alpha1.NamespaceName
NamespaceName contains configuration resources.
const PlatformMetadataID resource.ID = "platformmetadata"
PlatformMetadataID is the ID for Metadata resource platform.
const PlatformMetadataType = resource.Type("PlatformMetadatas.talos.dev")
PlatformMetadataType is type of Metadata resource.
Variables ¶
This section is empty.
Functions ¶
func MetaKeyTagToID ¶ added in v1.4.0
MetaKeyTagToID converts a tag to ID for MetaKey resource.
Types ¶
type ExtensionStatus ¶
type ExtensionStatus = typed.Resource[ExtensionStatusSpec, ExtensionStatusExtension]
ExtensionStatus resource holds status of installed system extensions.
func NewExtensionStatus ¶
func NewExtensionStatus(namespace resource.Namespace, id resource.ID) *ExtensionStatus
NewExtensionStatus initializes a ExtensionStatus resource.
type ExtensionStatusExtension ¶ added in v1.4.0
type ExtensionStatusExtension struct{}
ExtensionStatusExtension is auxiliary resource data for ExtensionStatus.
func (ExtensionStatusExtension) ResourceDefinition ¶ added in v1.4.0
func (ExtensionStatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type ExtensionStatusSpec ¶
type ExtensionStatusSpec = extensions.Layer
ExtensionStatusSpec is the spec for system extensions.
type KernelModuleSpec ¶
type KernelModuleSpec = typed.Resource[KernelModuleSpecSpec, KernelModuleSpecExtension]
KernelModuleSpec resource holds information about Linux kernel module to load.
func NewKernelModuleSpec ¶
func NewKernelModuleSpec(namespace resource.Namespace, id resource.ID) *KernelModuleSpec
NewKernelModuleSpec initializes a KernelModuleSpec resource.
type KernelModuleSpecExtension ¶ added in v1.4.0
type KernelModuleSpecExtension struct{}
KernelModuleSpecExtension is auxiliary resource data for KernelModuleSpec.
func (KernelModuleSpecExtension) ResourceDefinition ¶ added in v1.4.0
func (KernelModuleSpecExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type KernelModuleSpecSpec ¶
type KernelModuleSpecSpec struct { Name string `yaml:"string" protobuf:"1"` Parameters []string `yaml:"parameters" protobuf:"2"` }
KernelModuleSpecSpec describes Linux kernel module to load.
func (KernelModuleSpecSpec) DeepCopy ¶
func (o KernelModuleSpecSpec) DeepCopy() KernelModuleSpecSpec
DeepCopy generates a deep copy of KernelModuleSpecSpec.
type KernelParam ¶
type KernelParam interface {
TypedSpec() *KernelParamSpecSpec
}
KernelParam interface.
type KernelParamDefaultSpec ¶
type KernelParamDefaultSpec = typed.Resource[KernelParamDefaultSpecSpec, KernelParamDefaultSpecExtension]
KernelParamDefaultSpec implements meta.ResourceDefinitionProvider interface.
func NewKernelParamDefaultSpec ¶
func NewKernelParamDefaultSpec(namespace resource.Namespace, id resource.ID) *KernelParamDefaultSpec
NewKernelParamDefaultSpec initializes a KernelParamDefaultSpec resource.
type KernelParamDefaultSpecExtension ¶ added in v1.4.0
type KernelParamDefaultSpecExtension struct{}
KernelParamDefaultSpecExtension is the typed.Extension for KernelParamDefaultSpec.
func (KernelParamDefaultSpecExtension) ResourceDefinition ¶ added in v1.4.0
func (KernelParamDefaultSpecExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type KernelParamDefaultSpecSpec ¶
type KernelParamDefaultSpecSpec = KernelParamSpecSpec
KernelParamDefaultSpecSpec is same as KernelParamSpecSpec.
type KernelParamSpec ¶
type KernelParamSpec = typed.Resource[KernelParamSpecSpec, KernelParamSpecExtension]
KernelParamSpec resource holds sysctl flags to define.
func NewKernelParamSpec ¶
func NewKernelParamSpec(namespace resource.Namespace, id resource.ID) *KernelParamSpec
NewKernelParamSpec initializes a KernelParamSpec resource.
type KernelParamSpecExtension ¶ added in v1.4.0
type KernelParamSpecExtension struct{}
KernelParamSpecExtension is the typed.Extension for KernelParamSpec.
func (KernelParamSpecExtension) ResourceDefinition ¶ added in v1.4.0
func (KernelParamSpecExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type KernelParamSpecSpec ¶
type KernelParamSpecSpec struct { Value string `yaml:"value" protobuf:"1"` IgnoreErrors bool `yaml:"ignoreErrors" protobuf:"2"` }
KernelParamSpecSpec describes status of the defined sysctls.
func (KernelParamSpecSpec) DeepCopy ¶
func (o KernelParamSpecSpec) DeepCopy() KernelParamSpecSpec
DeepCopy generates a deep copy of KernelParamSpecSpec.
type KernelParamStatus ¶
type KernelParamStatus = typed.Resource[KernelParamStatusSpec, KernelParamStatusExtension]
KernelParamStatus resource holds defined sysctl flags status.
func NewKernelParamStatus ¶
func NewKernelParamStatus(namespace resource.Namespace, id resource.ID) *KernelParamStatus
NewKernelParamStatus initializes a KernelParamStatus resource.
type KernelParamStatusExtension ¶ added in v1.4.0
type KernelParamStatusExtension struct{}
KernelParamStatusExtension is auxiliary resource data for KernelParamStatus.
func (KernelParamStatusExtension) ResourceDefinition ¶ added in v1.4.0
func (KernelParamStatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type KernelParamStatusSpec ¶
type KernelParamStatusSpec struct { Current string `yaml:"current" protobuf:"1"` Default string `yaml:"default" protobuf:"2"` Unsupported bool `yaml:"unsupported" protobuf:"3"` }
KernelParamStatusSpec describes status of the defined sysctls.
func (KernelParamStatusSpec) DeepCopy ¶
func (o KernelParamStatusSpec) DeepCopy() KernelParamStatusSpec
DeepCopy generates a deep copy of KernelParamStatusSpec.
type KernelParamsSetCondition ¶
type KernelParamsSetCondition struct {
// contains filtered or unexported fields
}
KernelParamsSetCondition implements condition which waits for the kernels to be in sync.
func NewKernelParamsSetCondition ¶
func NewKernelParamsSetCondition(state state.State, props ...*kernel.Param) *KernelParamsSetCondition
NewKernelParamsSetCondition builds a coondition which waits for the kernel to be in sync.
func (*KernelParamsSetCondition) String ¶
func (condition *KernelParamsSetCondition) String() string
type MachineStage ¶
type MachineStage int
MachineStage describes the stage of the machine boot/run process.
const ( MachineStageUnknown MachineStage = iota // unknown MachineStageBooting // booting MachineStageInstalling // installing MachineStageMaintenance // maintenance MachineStageRunning // running MachineStageRebooting // rebooting MachineStageShuttingDown // shutting down MachineStageResetting // resetting MachineStageUpgrading // upgrading )
Machine stages.
func MachineStageString ¶
func MachineStageString(s string) (MachineStage, error)
MachineStageString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func MachineStageValues ¶
func MachineStageValues() []MachineStage
MachineStageValues returns all values of the enum
func (MachineStage) IsAMachineStage ¶
func (i MachineStage) IsAMachineStage() bool
IsAMachineStage returns "true" if the value is listed in the enum definition. "false" otherwise
func (MachineStage) MarshalText ¶
func (i MachineStage) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for MachineStage
func (MachineStage) String ¶
func (i MachineStage) String() string
func (*MachineStage) UnmarshalText ¶
func (i *MachineStage) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for MachineStage
type MachineStatus ¶
type MachineStatus = typed.Resource[MachineStatusSpec, MachineStatusExtension]
MachineStatus resource holds information about aggregated machine status.
func NewMachineStatus ¶
func NewMachineStatus() *MachineStatus
NewMachineStatus initializes a MachineStatus resource.
type MachineStatusExtension ¶ added in v1.4.0
type MachineStatusExtension struct{}
MachineStatusExtension is auxiliary resource data for MachineStatus.
func (MachineStatusExtension) ResourceDefinition ¶ added in v1.4.0
func (MachineStatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type MachineStatusSpec ¶
type MachineStatusSpec struct { Stage MachineStage `yaml:"stage" protobuf:"1"` Status MachineStatusStatus `yaml:"status" protobuf:"2"` }
MachineStatusSpec describes status of the defined sysctls.
func (MachineStatusSpec) DeepCopy ¶
func (o MachineStatusSpec) DeepCopy() MachineStatusSpec
DeepCopy generates a deep copy of MachineStatusSpec.
type MachineStatusStatus ¶
type MachineStatusStatus struct { Ready bool `yaml:"ready" protobuf:"1"` UnmetConditions []UnmetCondition `yaml:"unmetConditions" protobuf:"2"` }
MachineStatusStatus describes machine current status at the stage.
type MetaKey ¶ added in v1.4.0
type MetaKey = typed.Resource[MetaKeySpec, MetaKeyExtension]
MetaKey resource holds value of a key in META partition.
type MetaKeyExtension ¶ added in v1.4.0
type MetaKeyExtension struct{}
MetaKeyExtension is auxiliary resource data for MetaKey.
func (MetaKeyExtension) ResourceDefinition ¶ added in v1.4.0
func (MetaKeyExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type MetaKeySpec ¶ added in v1.4.0
type MetaKeySpec struct {
Value string `yaml:"value" protobuf:"1"`
}
MetaKeySpec describes status of the defined sysctls.
func (MetaKeySpec) DeepCopy ¶ added in v1.4.0
func (o MetaKeySpec) DeepCopy() MetaKeySpec
DeepCopy generates a deep copy of MetaKeySpec.
type MountStatus ¶
type MountStatus = typed.Resource[MountStatusSpec, MountStatusExtension]
MountStatus resource holds defined sysctl flags status.
func NewMountStatus ¶
func NewMountStatus(namespace resource.Namespace, id resource.ID) *MountStatus
NewMountStatus initializes a MountStatus resource.
type MountStatusExtension ¶ added in v1.4.0
type MountStatusExtension struct{}
MountStatusExtension is auxiliary resource data for MountStatus.
func (MountStatusExtension) ResourceDefinition ¶ added in v1.4.0
func (MountStatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type MountStatusSpec ¶
type MountStatusSpec struct { Source string `yaml:"source" protobuf:"1"` Target string `yaml:"target" protobuf:"2"` FilesystemType string `yaml:"filesystemType" protobuf:"3"` Options []string `yaml:"options" protobuf:"4"` }
MountStatusSpec describes status of the defined sysctls.
func (MountStatusSpec) DeepCopy ¶
func (o MountStatusSpec) DeepCopy() MountStatusSpec
DeepCopy generates a deep copy of MountStatusSpec.
type PlatformMetadata ¶
type PlatformMetadata = typed.Resource[PlatformMetadataSpec, PlatformMetadataExtension]
PlatformMetadata resource holds.
func NewPlatformMetadataSpec ¶
func NewPlatformMetadataSpec(namespace resource.Namespace, _ resource.ID) *PlatformMetadata
NewPlatformMetadataSpec initializes a MetadataSpec resource.
type PlatformMetadataExtension ¶ added in v1.4.0
type PlatformMetadataExtension struct{}
PlatformMetadataExtension provides auxiliary methods for PlatformMetadata.
func (PlatformMetadataExtension) ResourceDefinition ¶ added in v1.4.0
func (PlatformMetadataExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type PlatformMetadataSpec ¶
type PlatformMetadataSpec struct { Platform string `yaml:"platform,omitempty" protobuf:"1"` Hostname string `yaml:"hostname,omitempty" protobuf:"2"` Region string `yaml:"region,omitempty" protobuf:"3"` Zone string `yaml:"zone,omitempty" protobuf:"4"` InstanceType string `yaml:"instanceType,omitempty" protobuf:"5"` InstanceID string `yaml:"instanceId,omitempty" protobuf:"6"` ProviderID string `yaml:"providerId,omitempty" protobuf:"7"` Spot bool `yaml:"spot,omitempty" protobuf:"8"` }
PlatformMetadataSpec describes platform metadata properties.
func (PlatformMetadataSpec) DeepCopy ¶
func (o PlatformMetadataSpec) DeepCopy() PlatformMetadataSpec
DeepCopy generates a deep copy of PlatformMetadataSpec.
type UnmetCondition ¶
type UnmetCondition struct { Name string `yaml:"name" protobuf:"1"` Reason string `yaml:"reason" protobuf:"2"` }
UnmetCondition is a failure which prevents machine from being ready at the stage.