etcd

package
v0.0.0-...-d89597d Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ETCD

type ETCD struct {
	Sts *appsv1.StatefulSet
	Svc *corev1.Service
}

type ETCDOps

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

func New

func New(cli client.Client) *ETCDOps

func (*ETCDOps) ApplyETCD

func (e *ETCDOps) ApplyETCD(spec *ETCDSpec) (*ETCD, error)

func (*ETCDOps) DeleteETCD

func (e *ETCDOps) DeleteETCD(etcd *ETCD) error

func (*ETCDOps) GetNodes

func (e *ETCDOps) GetNodes(etcd *ETCD) ([]string, error)

type ETCDSpec

type ETCDSpec struct {
	Name      string
	Namespace string
	Version   string
	Replicas  int
	Resource  v1alpha1.Resources
	Storage   fixture.StorageType
}

Jump to

Keyboard shortcuts

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