config

package
v1.4.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MPL-2.0 Imports: 9 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 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 (*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.

Jump to

Keyboard shortcuts

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