config

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package config provides resources which hold Talos node configuration.

Index

Constants

View Source
const MachineConfigType = resource.Type("MachineConfigs.config.talos.dev")

MachineConfigType is type of Service resource.

View Source
const MachineTypeID = resource.ID("machine-type")

MachineTypeID is singleton resource ID.

View Source
const MachineTypeType = resource.Type("MachineTypes.config.talos.dev")

MachineTypeType is type of MachineType resource.

View Source
const MaintenanceID = resource.ID("maintenance")

MaintenanceID is the ID of the config submitted in the maintenance mode.

View Source
const NamespaceName resource.Namespace = "config"

NamespaceName contains configuration resources.

View Source
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) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL