Documentation
¶
Index ¶
- Constants
- type ExtensionStatus
- type ExtensionStatusRD
- type ExtensionStatusSpec
- type KernelModuleSpec
- type KernelModuleSpecRD
- type KernelModuleSpecSpec
- type KernelParam
- type KernelParamDefaultSpec
- type KernelParamDefaultSpecRD
- type KernelParamDefaultSpecSpec
- type KernelParamSpec
- type KernelParamSpecRD
- type KernelParamSpecSpec
- type KernelParamStatus
- type KernelParamStatusRD
- type KernelParamStatusSpec
- type KernelParamsSetCondition
- type MachineStage
- type MachineStatus
- type MachineStatusRD
- type MachineStatusSpec
- type MachineStatusStatus
- type MountStatus
- type MountStatusRD
- type MountStatusSpec
- 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 MountStatusType = resource.Type("MountStatuses.runtime.talos.dev")
MountStatusType is type of Mount resource.
const NamespaceName resource.Namespace = v1alpha1.NamespaceName
NamespaceName contains configuration resources.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtensionStatus ¶ added in v1.0.0
type ExtensionStatus = typed.Resource[ExtensionStatusSpec, ExtensionStatusRD]
ExtensionStatus resource holds status of installed system extensions.
func NewExtensionStatus ¶ added in v1.0.0
func NewExtensionStatus(namespace resource.Namespace, id resource.ID) *ExtensionStatus
NewExtensionStatus initializes a ExtensionStatus resource.
type ExtensionStatusRD ¶ added in v1.1.0
type ExtensionStatusRD struct{}
ExtensionStatusRD is auxiliary resource data for ExtensionStatus.
func (ExtensionStatusRD) ResourceDefinition ¶ added in v1.1.0
func (ExtensionStatusRD) ResourceDefinition(resource.Metadata, ExtensionStatusSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type ExtensionStatusSpec ¶ added in v1.0.0
type ExtensionStatusSpec = extensions.Layer
ExtensionStatusSpec is the spec for system extensions.
type KernelModuleSpec ¶ added in v1.0.0
type KernelModuleSpec = typed.Resource[KernelModuleSpecSpec, KernelModuleSpecRD]
KernelModuleSpec resource holds information about Linux kernel module to load.
func NewKernelModuleSpec ¶ added in v1.0.0
func NewKernelModuleSpec(namespace resource.Namespace, id resource.ID) *KernelModuleSpec
NewKernelModuleSpec initializes a KernelModuleSpec resource.
type KernelModuleSpecRD ¶ added in v1.1.0
type KernelModuleSpecRD struct{}
KernelModuleSpecRD is auxiliary resource data for KernelModuleSpec.
func (KernelModuleSpecRD) ResourceDefinition ¶ added in v1.1.0
func (KernelModuleSpecRD) ResourceDefinition(resource.Metadata, KernelModuleSpecSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type KernelModuleSpecSpec ¶ added in v1.0.0
type KernelModuleSpecSpec struct {
Name string `yaml:"string" protobuf:"1"`
}
KernelModuleSpecSpec describes Linux kernel module to load.
func (KernelModuleSpecSpec) DeepCopy ¶ added in v1.1.0
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, KernelParamDefaultSpecRD]
KernelParamDefaultSpec implements meta.ResourceDefinitionProvider interface.
func NewKernelParamDefaultSpec ¶
func NewKernelParamDefaultSpec(namespace resource.Namespace, id resource.ID) *KernelParamDefaultSpec
NewKernelParamDefaultSpec initializes a KernelParamDefaultSpec resource.
type KernelParamDefaultSpecRD ¶ added in v1.1.0
type KernelParamDefaultSpecRD struct{}
KernelParamDefaultSpecRD is the ResourceDefinition for KernelParamDefaultSpec.
func (KernelParamDefaultSpecRD) ResourceDefinition ¶ added in v1.1.0
func (KernelParamDefaultSpecRD) ResourceDefinition(resource.Metadata, KernelParamDefaultSpecSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type KernelParamDefaultSpecSpec ¶ added in v1.1.0
type KernelParamDefaultSpecSpec = KernelParamSpecSpec
KernelParamDefaultSpecSpec is same as KernelParamSpecSpec.
type KernelParamSpec ¶
type KernelParamSpec = typed.Resource[KernelParamSpecSpec, KernelParamSpecRD]
KernelParamSpec resource holds sysctl flags to define.
func NewKernelParamSpec ¶
func NewKernelParamSpec(namespace resource.Namespace, id resource.ID) *KernelParamSpec
NewKernelParamSpec initializes a KernelParamSpec resource.
type KernelParamSpecRD ¶ added in v1.1.0
type KernelParamSpecRD struct{}
KernelParamSpecRD is the ResourceDefinition for KernelParamSpec.
func (KernelParamSpecRD) ResourceDefinition ¶ added in v1.1.0
func (KernelParamSpecRD) ResourceDefinition(resource.Metadata, KernelParamSpecSpec) 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 ¶ added in v1.1.0
func (o KernelParamSpecSpec) DeepCopy() KernelParamSpecSpec
DeepCopy generates a deep copy of KernelParamSpecSpec.
type KernelParamStatus ¶
type KernelParamStatus = typed.Resource[KernelParamStatusSpec, KernelParamStatusRD]
KernelParamStatus resource holds defined sysctl flags status.
func NewKernelParamStatus ¶
func NewKernelParamStatus(namespace resource.Namespace, id resource.ID) *KernelParamStatus
NewKernelParamStatus initializes a KernelParamStatus resource.
type KernelParamStatusRD ¶ added in v1.1.0
type KernelParamStatusRD struct{}
KernelParamStatusRD is auxiliary resource data for KernelParamStatus.
func (KernelParamStatusRD) ResourceDefinition ¶ added in v1.1.0
func (KernelParamStatusRD) ResourceDefinition(resource.Metadata, KernelParamStatusSpec) 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 ¶ added in v1.1.0
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 ¶ added in v1.2.0
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 ¶ added in v1.2.0
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 ¶ added in v1.2.0
func MachineStageValues() []MachineStage
MachineStageValues returns all values of the enum
func (MachineStage) IsAMachineStage ¶ added in v1.2.0
func (i MachineStage) IsAMachineStage() bool
IsAMachineStage returns "true" if the value is listed in the enum definition. "false" otherwise
func (MachineStage) MarshalText ¶ added in v1.2.0
func (i MachineStage) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for MachineStage
func (MachineStage) String ¶ added in v1.2.0
func (i MachineStage) String() string
func (*MachineStage) UnmarshalText ¶ added in v1.2.0
func (i *MachineStage) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for MachineStage
type MachineStatus ¶ added in v1.2.0
type MachineStatus = typed.Resource[MachineStatusSpec, MachineStatusRD]
MachineStatus resource holds information about aggregated machine status.
func NewMachineStatus ¶ added in v1.2.0
func NewMachineStatus() *MachineStatus
NewMachineStatus initializes a MachineStatus resource.
type MachineStatusRD ¶ added in v1.2.0
type MachineStatusRD struct{}
MachineStatusRD is auxiliary resource data for MachineStatus.
func (MachineStatusRD) ResourceDefinition ¶ added in v1.2.0
func (MachineStatusRD) ResourceDefinition(resource.Metadata, MachineStatusSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type MachineStatusSpec ¶ added in v1.2.0
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 ¶ added in v1.2.0
func (o MachineStatusSpec) DeepCopy() MachineStatusSpec
DeepCopy generates a deep copy of MachineStatusSpec.
type MachineStatusStatus ¶ added in v1.2.0
type MachineStatusStatus struct { Ready bool `yaml:"ready" protobuf:"1"` UnmetConditions []UnmetCondition `yaml:"unmetConditions" protobuf:"2"` }
MachineStatusStatus describes machine current status at the stage.
type MountStatus ¶
type MountStatus = typed.Resource[MountStatusSpec, MountStatusRD]
MountStatus resource holds defined sysctl flags status.
func NewMountStatus ¶
func NewMountStatus(namespace resource.Namespace, id resource.ID) *MountStatus
NewMountStatus initializes a MountStatus resource.
type MountStatusRD ¶ added in v1.1.0
type MountStatusRD struct{}
MountStatusRD is auxiliary resource data for MountStatus.
func (MountStatusRD) ResourceDefinition ¶ added in v1.1.0
func (MountStatusRD) ResourceDefinition(resource.Metadata, MountStatusSpec) 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 ¶ added in v1.1.0
func (o MountStatusSpec) DeepCopy() MountStatusSpec
DeepCopy generates a deep copy of MountStatusSpec.
type UnmetCondition ¶ added in v1.2.0
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.