controller

package
v0.0.0-...-3442565 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdController

type EtcdController struct {

	// CycleInterval is the time to wait in between iterations of the state synchronization loop, when no progress has been made previously
	CycleInterval time.Duration
	// contains filtered or unexported fields
}

EtcdController is the controller that runs the etcd cluster - adding & removing members, backups/restores etcd

func NewEtcdController

func NewEtcdController(leaderLock locking.Lock, backupStore backup.Store, backupInterval time.Duration, controlStore commands.Store, controlRefreshInterval time.Duration, clusterName string, dnsSuffix string, peers privateapi.Peers, etcdClientsCA *pki.CA, disableEtcdTLS bool) (*EtcdController, error)

NewEtcdController is the constructor for an EtcdController

func (*EtcdController) InvalidateControlStore

func (m *EtcdController) InvalidateControlStore() error

func (*EtcdController) Run

func (m *EtcdController) Run(ctx context.Context)

Run starts an EtcdController. It runs indefinitely - until ctx is no longer valid.

type EtcdMemberId

type EtcdMemberId string

Jump to

Keyboard shortcuts

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