cluster

package
v0.0.0-...-6c868a8 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLostQuorum = errors.New("lost quorum")
)

ErrLostQuorum indicates that the etcd cluster lost its quorum.

Functions

This section is empty.

Types

type Cluster

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

func New

func New(config Config, rss *api.ReplicatedStatefulSet) *Cluster

func (*Cluster) Delete

func (c *Cluster) Delete()

func (*Cluster) LogObject

func (c *Cluster) LogObject(text string, spec interface{})

func (*Cluster) Update

func (c *Cluster) Update(rss *api.ReplicatedStatefulSet)

type Config

type Config struct {
	ServiceAccount string

	KubeCli   kubernetes.Interface
	EtcdCRCli versioned.Interface
}

type ConfigMapReference

type ConfigMapReference struct {
	Key      string `json:"key"`
	Checksum string `json:"checksum"`
}

type ConfigMapReferenceList

type ConfigMapReferenceList struct {
	Items []*ConfigMapReference `json:"items"`
}

func (*ConfigMapReferenceList) Len

func (l *ConfigMapReferenceList) Len() int

func (*ConfigMapReferenceList) Less

func (l *ConfigMapReferenceList) Less(i, j int) bool

func (*ConfigMapReferenceList) Swap

func (l *ConfigMapReferenceList) Swap(i, j int)

Jump to

Keyboard shortcuts

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