v1alpha1

package
v0.9.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 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("bootstrapStatus")

BootstrapStatusID is a singleton instance ID.

View Source
const BootstrapStatusType = resource.Type("v1alpha1/bootstrapStatus")

BootstrapStatusType is type of BootstrapStatus resource.

View Source
const NamespaceName resource.Namespace = "v1alpha1"

NamespaceName contains resources linking v2alpha1 components with v1alpha1 Talos runtime.

View Source
const ServiceType = resource.Type("v1alpha1/service")

ServiceType is type of Service resource.

View Source
const TimeSyncID = resource.ID("timeSync")

TimeSyncID is the ID of the singletone resource.

View Source
const TimeSyncType = resource.Type("v1alpha1/timeSync")

TimeSyncType is type of TimeSync 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() core.ResourceDefinitionSpec

ResourceDefinition implements core.ResourceDefinitionProvider interface.

func (*BootstrapStatus) Spec

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

Spec implements resource.Resource.

func (*BootstrapStatus) Status

func (r *BootstrapStatus) Status() *BootstrapStatusSpec

Status returns .spec.

func (*BootstrapStatus) String

func (r *BootstrapStatus) String() string

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() core.ResourceDefinitionSpec

ResourceDefinition implements core.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) Spec

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

Spec implements resource.Resource.

func (*Service) String

func (r *Service) String() string

type ServiceSpec

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

ServiceSpec describe service state.

type TimeSync

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

TimeSync describes running current time sync status.

func NewTimeSync

func NewTimeSync() *TimeSync

NewTimeSync initializes a TimeSync resource.

func (*TimeSync) DeepCopy

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

DeepCopy implements resource.Resource.

func (*TimeSync) Metadata

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

Metadata implements resource.Resource.

func (*TimeSync) ResourceDefinition

func (r *TimeSync) ResourceDefinition() core.ResourceDefinitionSpec

ResourceDefinition implements core.ResourceDefinitionProvider interface.

func (*TimeSync) SetSync

func (r *TimeSync) SetSync(sync bool)

SetSync changes .spec.sync.

func (*TimeSync) Spec

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

Spec implements resource.Resource.

func (*TimeSync) String

func (r *TimeSync) String() string

func (*TimeSync) Sync

func (r *TimeSync) Sync() bool

Sync returns .spec.sync.

type TimeSyncSpec

type TimeSyncSpec struct {
	Sync bool `yaml:"sync"`
}

TimeSyncSpec describes time sync state.

Jump to

Keyboard shortcuts

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