psmdb

package
v0.0.0-...-9ed255f Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppStateUnknown AppState = "unknown"
	AppStateInit             = "initializing"
	AppStateReady            = "ready"
	AppStateError            = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppState

type AppState string

type AppStatus

type AppStatus struct {
	Size    int32    `json:"size,omitempty"`
	Ready   int32    `json:"ready,omitempty"`
	Status  AppState `json:"status,omitempty"`
	Message string   `json:"message,omitempty"`
}

type PSMDB

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

PSMDB represents PSMDB Operator controller

func NewPSMDBController

func NewPSMDBController(envCrt, provider string) (*PSMDB, error)

NewPSMDBController returns new PSMDBOperator Controller

func (*PSMDB) CreateDBCluster

func (p *PSMDB) CreateDBCluster(name string) error

CreateDBCluster start creating DB cluster

func (*PSMDB) DeleteDBCluster

func (p *PSMDB) DeleteDBCluster(name string, delePVC bool) (string, error)

DeleteDBCluster delete cluster by name

func (*PSMDB) GetDBCluster

func (p *PSMDB) GetDBCluster(name string) (structs.DB, error)

GetDBCluster return DB object

func (*PSMDB) GetDBClusterList

func (p *PSMDB) GetDBClusterList() ([]structs.DB, error)

GetDBClusterList return list of existing DB obkects

func (*PSMDB) ParseOptions

func (p *PSMDB) ParseOptions(opts string) error

func (*PSMDB) UpdateDBCluster

func (p *PSMDB) UpdateDBCluster(name string) error

UpdateDBCluster update DB

type PSMDBCluster

type PSMDBCluster interface {
	UpdateWith(c config.ClusterConfig, s3 *k8s.BackupStorageSpec) (err error)
	Upgrade(imgs map[string]string)
	SetNew(c config.ClusterConfig, s3 *k8s.BackupStorageSpec, p k8s.PlatformType) (err error)
	GetName() string
	MarshalRequests() error
	GetCR() (string, error)
	SetLabels(labels map[string]string)
}

PSMDBCluster represent interface for ckuster types

type PSMDBClusterStatus

type PSMDBClusterStatus struct {
	Messages []string `json:"message,omitempty"`
	Status   AppState `json:"state,omitempty"`
}

type PSMDBMeta

type PSMDBMeta struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type PSMDBResource

type PSMDBResource struct {
	Meta   PSMDBMeta `json:"metadata"`
	Status PSMDBClusterStatus
}

type PVCMeta

type PVCMeta struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	SelfLink  string `json:"selflink"`
	UID       string `json:"uid"`
}

type Version

type Version string

type VersionObject

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

Directories

Path Synopsis
types

Jump to

Keyboard shortcuts

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