Documentation ¶
Overview ¶
Package config provides resources which hold Talos node configuration.
Index ¶
- Constants
- type MachineConfig
- func (r *MachineConfig) Config() config.Provider
- func (r *MachineConfig) DeepCopy() resource.Resource
- func (r *MachineConfig) Metadata() *resource.Metadata
- func (r *MachineConfig) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *MachineConfig) Spec() interface{}
- 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() interface{}
- 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 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 (*MachineConfig) Config ¶
func (r *MachineConfig) Config() config.Provider
Config returns config.Provider.
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) ResourceDefinition ¶
func (r *MachineConfig) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*MachineConfig) Spec ¶
func (r *MachineConfig) Spec() interface{}
Spec implements resource.Resource.
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) Spec ¶
func (r *MachineType) Spec() interface{}
Spec implements resource.Resource.
func (*MachineType) UnmarshalProto ¶
func (r *MachineType) UnmarshalProto(md *resource.Metadata, protoBytes []byte) error
UnmarshalProto implements protobuf.ResourceUnmarshaler.