Documentation ¶
Overview ¶
Package etcd provides resources which interface with etcd.
Index ¶
- Constants
- func FormatMemberID(memberID uint64) string
- func ParseMemberID(memberID string) (uint64, error)
- type Config
- type ConfigRD
- type ConfigSpec
- type Member
- type MemberRD
- type MemberSpec
- type PKIStatus
- type PKIStatusRD
- type PKIStatusSpec
- type Spec
- type SpecRD
- type SpecReadyCondition
- type SpecSpec
Constants ¶
const ConfigID = resource.ID("etcd")
ConfigID is resource ID for Config resource for etcd.
const ConfigType = resource.Type("EtcdConfigs.etcd.talos.dev")
ConfigType is type of Config resource.
const LocalMemberID = resource.ID("local")
LocalMemberID is resource ID for Member resource for etcd.
const MemberType = resource.Type("EtcdMembers.etcd.talos.dev")
MemberType is type of Member resource.
const NamespaceName resource.Namespace = "etcd"
NamespaceName contains resources supporting etcd service.
const PKIID = resource.ID("etcd")
PKIID is resource ID for PKIStatus resource for etcd.
const PKIStatusType = resource.Type("PKIStatuses.etcd.talos.dev")
PKIStatusType is type of PKIStatus resource.
const SpecID = resource.ID("etcd")
SpecID is resource ID for Spec resource for etcd.
const SpecType = resource.Type("EtcdSpecs.etcd.talos.dev")
SpecType is type of Spec resource.
Variables ¶
This section is empty.
Functions ¶
func FormatMemberID ¶
FormatMemberID represents a uint64 in hexadecimal notation.
func ParseMemberID ¶
ParseMemberID converts a member ID in hexadecimal notation to a uint64.
Types ¶
type Config ¶
type Config = typed.Resource[ConfigSpec, ConfigRD]
Config resource holds status of rendered secrets.
type ConfigRD ¶
type ConfigRD struct{}
ConfigRD provides auxiliary methods for Config.
func (ConfigRD) ResourceDefinition ¶
func (ConfigRD) ResourceDefinition(resource.Metadata, ConfigSpec) meta.ResourceDefinitionSpec
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 Member ¶
type Member = typed.Resource[MemberSpec, MemberRD]
Member resource holds status of rendered secrets.
type MemberRD ¶
type MemberRD struct{}
MemberRD provides auxiliary methods for Member.
func (MemberRD) ResourceDefinition ¶
func (MemberRD) ResourceDefinition(resource.Metadata, MemberSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type MemberSpec ¶
type MemberSpec struct {
MemberID string `yaml:"memberID" protobuf:"1"`
}
MemberSpec holds information about an etcd member.
func (MemberSpec) DeepCopy ¶
func (o MemberSpec) DeepCopy() MemberSpec
DeepCopy generates a deep copy of MemberSpec.
type PKIStatus ¶
type PKIStatus = typed.Resource[PKIStatusSpec, PKIStatusRD]
PKIStatus resource holds status of rendered secrets.
type PKIStatusRD ¶
type PKIStatusRD struct{}
PKIStatusRD provides auxiliary methods for PKIStatus.
func (PKIStatusRD) ResourceDefinition ¶
func (PKIStatusRD) ResourceDefinition(resource.Metadata, PKIStatusSpec) meta.ResourceDefinitionSpec
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 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
type SpecSpec ¶
type SpecSpec struct { Name string `yaml:"name" protobuf:"1"` AdvertisedAddresses []netip.Addr `yaml:"advertisedAddresses" protobuf:"2"` ListenPeerAddresses []netip.Addr `yaml:"listenPeerAddresses" protobuf:"5"` ListenClientAddresses []netip.Addr `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.