runtime

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const KernelParamSpecType = resource.Type("KernelParamSpecs.runtime.talos.dev")

KernelParamSpecType is type of KernelParam resource.

View Source
const KernelParamStatusType = resource.Type("KernelParamStatuses.runtime.talos.dev")

KernelParamStatusType is type of KernelParam resource.

NamespaceName contains configuration resources.

Variables

This section is empty.

Functions

This section is empty.

Types

type KernelParamSpec

type KernelParamSpec struct {
	// contains filtered or unexported fields
}

KernelParamSpec resource holds sysctl flags to define.

func NewKernelParamSpec

func NewKernelParamSpec(namespace resource.Namespace, id resource.ID) *KernelParamSpec

NewKernelParamSpec initializes a KernelParamSpec resource.

func (*KernelParamSpec) DeepCopy

func (r *KernelParamSpec) DeepCopy() resource.Resource

DeepCopy implements resource.Resource.

func (*KernelParamSpec) Metadata

func (r *KernelParamSpec) Metadata() *resource.Metadata

Metadata implements resource.Resource.

func (*KernelParamSpec) ResourceDefinition

func (r *KernelParamSpec) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

func (*KernelParamSpec) Spec

func (r *KernelParamSpec) Spec() interface{}

Spec implements resource.Resource.

func (*KernelParamSpec) String

func (r *KernelParamSpec) String() string

func (*KernelParamSpec) TypedSpec

func (r *KernelParamSpec) TypedSpec() *KernelParamSpecSpec

TypedSpec allows to access the KernelParamSpecSpec with the proper type.

type KernelParamSpecSpec

type KernelParamSpecSpec struct {
	Value        string `yaml:"value"`
	IgnoreErrors bool   `yaml:"ignoreErrors"`
}

KernelParamSpecSpec describes status of the defined sysctls.

type KernelParamStatus

type KernelParamStatus struct {
	// contains filtered or unexported fields
}

KernelParamStatus resource holds defined sysctl flags status.

func NewKernelParamStatus

func NewKernelParamStatus(namespace resource.Namespace, id resource.ID) *KernelParamStatus

NewKernelParamStatus initializes a KernelParamStatus resource.

func (*KernelParamStatus) DeepCopy

func (r *KernelParamStatus) DeepCopy() resource.Resource

DeepCopy implements resource.Resource.

func (*KernelParamStatus) Metadata

func (r *KernelParamStatus) Metadata() *resource.Metadata

Metadata implements resource.Resource.

func (*KernelParamStatus) ResourceDefinition

func (r *KernelParamStatus) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

func (*KernelParamStatus) Spec

func (r *KernelParamStatus) Spec() interface{}

Spec implements resource.Resource.

func (*KernelParamStatus) String

func (r *KernelParamStatus) String() string

func (*KernelParamStatus) TypedSpec

func (r *KernelParamStatus) TypedSpec() *KernelParamStatusSpec

TypedSpec allows to access the KernelParamStatusSpec with the proper type.

type KernelParamStatusSpec

type KernelParamStatusSpec struct {
	Current     string `yaml:"current"`
	Default     string `yaml:"default"`
	Unsupported bool   `yaml:"unsupported"`
}

KernelParamStatusSpec describes status of the defined sysctls.

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

func (*KernelParamsSetCondition) Wait

func (condition *KernelParamsSetCondition) Wait(ctx context.Context) error

Wait implements condition interface.

Jump to

Keyboard shortcuts

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