v1alpha1

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v1alpha1 provides resources which implement "glue" code from v1alpha1 Talos init system.

Index

Constants

View Source
const BootstrapStatusID = resource.ID("control-plane")

BootstrapStatusID is a singleton instance ID.

View Source
const BootstrapStatusType = resource.Type("BootstrapStatuses.v1alpha1.talos.dev")

BootstrapStatusType is type of BootstrapStatus resource.

View Source
const NamespaceName resource.Namespace = "runtime"

NamespaceName contains resources linking v1alpha2 components with v1alpha1 Talos runtime.

View Source
const ServiceType = resource.Type("Services.v1alpha1.talos.dev")

ServiceType is type of Service resource.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapStatus

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

BootstrapStatus describes v1alpha1 (bootkube) bootstrap status.

func NewBootstrapStatus

func NewBootstrapStatus() *BootstrapStatus

NewBootstrapStatus initializes a BootstrapStatus resource.

func (*BootstrapStatus) DeepCopy

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

DeepCopy implements resource.Resource.

func (*BootstrapStatus) Metadata

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

Metadata implements resource.Resource.

func (*BootstrapStatus) ResourceDefinition

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

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

func (*BootstrapStatus) Spec

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

Spec implements resource.Resource.

func (*BootstrapStatus) String

func (r *BootstrapStatus) String() string

func (*BootstrapStatus) TypedSpec added in v0.11.0

func (r *BootstrapStatus) TypedSpec() *BootstrapStatusSpec

TypedSpec allows to access the Spec with the proper type.

type BootstrapStatusSpec

type BootstrapStatusSpec struct {
	SelfHostedControlPlane bool `yaml:"selfHostedControlPlane"`
}

BootstrapStatusSpec describe service state.

type Service

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

Service describes running service state.

func NewService

func NewService(id resource.ID) *Service

NewService initializes a Service resource.

func (*Service) DeepCopy

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

DeepCopy implements resource.Resource.

func (*Service) Healthy

func (r *Service) Healthy() bool

Healthy returns .spec.healthy.

func (*Service) Metadata

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

Metadata implements resource.Resource.

func (*Service) ResourceDefinition

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

ResourceDefinition implements meta.ResourceDefinitionProvider interface.

func (*Service) Running

func (r *Service) Running() bool

Running returns .spec.running.

func (*Service) SetHealthy

func (r *Service) SetHealthy(healthy bool)

SetHealthy changes .spec.healthy.

func (*Service) SetRunning

func (r *Service) SetRunning(running bool)

SetRunning changes .spec.running.

func (*Service) SetUnknown added in v0.11.0

func (r *Service) SetUnknown(unknown bool)

SetUnknown changes .spec.unknown.

func (*Service) Spec

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

Spec implements resource.Resource.

func (*Service) String

func (r *Service) String() string

func (*Service) Unknown added in v0.11.0

func (r *Service) Unknown() bool

Unknown returns .spec.unknown.

type ServiceSpec

type ServiceSpec struct {
	Running bool `yaml:"running"`
	Healthy bool `yaml:"healthy"`
	Unknown bool `yaml:"unknown"`
}

ServiceSpec describe service state.

Jump to

Keyboard shortcuts

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