v1alpha1

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 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 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 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