Documentation ¶
Overview ¶
Package config provides resources which hold Talos node configuration.
Index ¶
- Constants
- type MachineConfig
- func (r *MachineConfig) Config() config.Config
- func (r *MachineConfig) Container() config.Container
- func (r *MachineConfig) DeepCopy() resource.Resource
- func (r *MachineConfig) Metadata() *resource.Metadata
- func (r *MachineConfig) Provider() config.Provider
- func (r *MachineConfig) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *MachineConfig) Spec() any
- func (r *MachineConfig) UnmarshalProto(md *resource.Metadata, protoBytes []byte) error
- type MachineType
- func (r *MachineType) DeepCopy() resource.Resource
- func (r *MachineType) MachineType() machine.Type
- func (r *MachineType) Metadata() *resource.Metadata
- func (r *MachineType) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *MachineType) SetMachineType(typ machine.Type)
- func (r *MachineType) Spec() any
- func (r *MachineType) UnmarshalProto(md *resource.Metadata, protoBytes []byte) error
Constants ¶
const MachineConfigType = resource.Type("MachineConfigs.config.talos.dev")
MachineConfigType is type of Service resource.
const MachineTypeID = resource.ID("machine-type")
MachineTypeID is singleton resource ID.
const MachineTypeType = resource.Type("MachineTypes.config.talos.dev")
MachineTypeType is type of MachineType resource.
const MaintenanceID = resource.ID("maintenance")
MaintenanceID is the ID of the config submitted in the maintenance mode.
const NamespaceName resource.Namespace = "config"
NamespaceName contains configuration resources.
const V1Alpha1ID = resource.ID("v1alpha1")
V1Alpha1ID is the ID of V1Alpha1 resource (singleton).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MachineConfig ¶
type MachineConfig struct {
// contains filtered or unexported fields
}
MachineConfig resource holds v1alpha Talos configuration.
func NewMachineConfig ¶
func NewMachineConfig(spec config.Provider) *MachineConfig
NewMachineConfig initializes a V1Alpha1 resource.
func NewMachineConfigWithID ¶ added in v1.5.0
func NewMachineConfigWithID(spec config.Provider, id resource.ID) *MachineConfig
NewMachineConfigWithID initializes a MachineConfig resource.
func (*MachineConfig) Config ¶
func (r *MachineConfig) Config() config.Config
Config returns config.Config to access config fields.
func (*MachineConfig) Container ¶ added in v1.5.0
func (r *MachineConfig) Container() config.Container
Container returns config.Container to access config as a whole.
func (*MachineConfig) DeepCopy ¶
func (r *MachineConfig) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*MachineConfig) Metadata ¶
func (r *MachineConfig) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*MachineConfig) Provider ¶ added in v1.5.0
func (r *MachineConfig) Provider() config.Provider
Provider returns config.Provider to access config provider.
This method should only be used when Container() and Config() methods are not enough. Config()/Container() provides better semantic split on the config access.
func (*MachineConfig) ResourceDefinition ¶
func (r *MachineConfig) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*MachineConfig) UnmarshalProto ¶
func (r *MachineConfig) UnmarshalProto(md *resource.Metadata, protoBytes []byte) error
UnmarshalProto implements protobuf.ResourceUnmarshaler.
type MachineType ¶
type MachineType struct {
// contains filtered or unexported fields
}
MachineType describes machine type.
func NewMachineType ¶
func NewMachineType() *MachineType
NewMachineType initializes a MachineType resource.
func (*MachineType) DeepCopy ¶
func (r *MachineType) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*MachineType) MachineType ¶
func (r *MachineType) MachineType() machine.Type
MachineType returns machine.Type.
func (*MachineType) Metadata ¶
func (r *MachineType) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*MachineType) ResourceDefinition ¶
func (r *MachineType) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*MachineType) SetMachineType ¶
func (r *MachineType) SetMachineType(typ machine.Type)
SetMachineType sets machine.Type.
func (*MachineType) UnmarshalProto ¶
func (r *MachineType) UnmarshalProto(md *resource.Metadata, protoBytes []byte) error
UnmarshalProto implements protobuf.ResourceUnmarshaler.