Documentation
¶
Index ¶
- Constants
- type AppState
- type AppStatus
- type PSMDB
- func (p *PSMDB) CreateDBCluster(name string) error
- func (p *PSMDB) DeleteDBCluster(name string, delePVC bool) (string, error)
- func (p *PSMDB) GetDBCluster(name string) (structs.DB, error)
- func (p *PSMDB) GetDBClusterList() ([]structs.DB, error)
- func (p *PSMDB) ParseOptions(opts string) error
- func (p *PSMDB) UpdateDBCluster(name string) error
- type PSMDBCluster
- type PSMDBClusterStatus
- type PSMDBMeta
- type PSMDBResource
- type PVCMeta
- type Version
- type VersionObject
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 PSMDB ¶
type PSMDB struct {
// contains filtered or unexported fields
}
PSMDB represents PSMDB Operator controller
func NewPSMDBController ¶
NewPSMDBController returns new PSMDBOperator Controller
func (*PSMDB) CreateDBCluster ¶
CreateDBCluster start creating DB cluster
func (*PSMDB) DeleteDBCluster ¶
DeleteDBCluster delete cluster by name
func (*PSMDB) GetDBCluster ¶
GetDBCluster return DB object
func (*PSMDB) GetDBClusterList ¶
GetDBClusterList return list of existing DB obkects
func (*PSMDB) ParseOptions ¶
func (*PSMDB) UpdateDBCluster ¶
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 PSMDBResource ¶
type PSMDBResource struct { Meta PSMDBMeta `json:"metadata"` Status PSMDBClusterStatus }
type VersionObject ¶
type VersionObject struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.