etcd

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package etcd provides resources which interface with etcd.

Index

Constants

View Source
const ConfigID = resource.ID("etcd")

ConfigID is resource ID for Config resource for etcd.

View Source
const ConfigType = resource.Type("EtcdConfigs.etcd.talos.dev")

ConfigType is type of Config resource.

View Source
const NamespaceName resource.Namespace = "etcd"

NamespaceName contains resources supporting etcd service.

View Source
const PKIID = resource.ID("etcd")

PKIID is resource ID for PKIStatus resource for etcd.

View Source
const PKIStatusType = resource.Type("PKIStatuses.etcd.talos.dev")

PKIStatusType is type of PKIStatus resource.

View Source
const SpecID = resource.ID("etcd")

SpecID is resource ID for Spec resource for etcd.

View Source
const SpecType = resource.Type("EtcdSpecs.etcd.talos.dev")

SpecType is type of Spec resource.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = typed.Resource[ConfigSpec, ConfigRD]

Config resource holds status of rendered secrets.

func NewConfig

func NewConfig(namespace resource.Namespace, id resource.ID) *Config

NewConfig initializes a Config resource.

type ConfigRD

type ConfigRD struct{}

ConfigRD provides auxiliary methods for Config.

func (ConfigRD) ResourceDefinition

ResourceDefinition implements typed.ResourceDefinition interface.

type ConfigSpec

type ConfigSpec struct {
	AdvertiseValidSubnets   []string `yaml:"advertiseValidSubnets,omitempty" protobuf:"1"`
	AdvertiseExcludeSubnets []string `yaml:"advertiseExcludeSubnets" protobuf:"2"`

	ListenValidSubnets   []string `yaml:"listenValidSubnets,omitempty" protobuf:"5"`
	ListenExcludeSubnets []string `yaml:"listenExcludeSubnets" protobuf:"6"`

	Image     string            `yaml:"image" protobuf:"3"`
	ExtraArgs map[string]string `yaml:"extraArgs" protobuf:"4"`
}

ConfigSpec describes (some) configuration settings of etcd.

func (ConfigSpec) DeepCopy

func (o ConfigSpec) DeepCopy() ConfigSpec

DeepCopy generates a deep copy of ConfigSpec.

type PKIStatus

PKIStatus resource holds status of rendered secrets.

func NewPKIStatus

func NewPKIStatus(namespace resource.Namespace, id resource.ID) *PKIStatus

NewPKIStatus initializes a PKIStatus resource.

type PKIStatusRD

type PKIStatusRD struct{}

PKIStatusRD provides auxiliary methods for PKIStatus.

func (PKIStatusRD) ResourceDefinition

ResourceDefinition implements typed.ResourceDefinition interface.

type PKIStatusSpec

type PKIStatusSpec struct {
	Ready   bool   `yaml:"ready" protobuf:"1"`
	Version string `yaml:"version" protobuf:"2"`
}

PKIStatusSpec describes status of rendered secrets.

func (PKIStatusSpec) DeepCopy

func (o PKIStatusSpec) DeepCopy() PKIStatusSpec

DeepCopy generates a deep copy of PKIStatusSpec.

type Spec

type Spec = typed.Resource[SpecSpec, SpecRD]

Spec resource holds status of rendered secrets.

func NewSpec

func NewSpec(namespace resource.Namespace, id resource.ID) *Spec

NewSpec initializes a Spec resource.

type SpecRD

type SpecRD struct{}

SpecRD provides auxiliary methods for Spec.

func (SpecRD) ResourceDefinition

ResourceDefinition implements typed.ResourceDefinition interface.

type SpecReadyCondition

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

SpecReadyCondition implements condition which waits for the etcd spec to be ready.

func NewSpecReadyCondition

func NewSpecReadyCondition(state state.State) *SpecReadyCondition

NewSpecReadyCondition builds a condition which waits for the etcd spec to be ready.

func (*SpecReadyCondition) String

func (condition *SpecReadyCondition) String() string

func (*SpecReadyCondition) Wait

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

Wait implements condition interface.

type SpecSpec

type SpecSpec struct {
	Name                  string            `yaml:"name" protobuf:"1"`
	AdvertisedAddresses   []netaddr.IP      `yaml:"advertisedAddresses" protobuf:"2"`
	ListenPeerAddresses   []netaddr.IP      `yaml:"listenPeerAddresses" protobuf:"5"`
	ListenClientAddresses []netaddr.IP      `yaml:"listenClientAddresses" protobuf:"6"`
	Image                 string            `yaml:"image" protobuf:"3"`
	ExtraArgs             map[string]string `yaml:"extraArgs" protobuf:"4"`
}

SpecSpec describes (some) Specuration settings of etcd.

func (SpecSpec) DeepCopy

func (o SpecSpec) DeepCopy() SpecSpec

DeepCopy generates a deep copy of SpecSpec.

Jump to

Keyboard shortcuts

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