Documentation
¶
Index ¶
- Constants
- type ApplyPolicyRequest
- type ApplyPolicyResponse
- type ApplyResults
- type BasicAuthCredentials
- type ClusterScaleResponse
- type ClusterTestDetail
- type ClusterTestResponse
- type ClusterTestResult
- type CreateBackrestBackupRequest
- type CreateBackrestBackupResponse
- type CreateBackupRequest
- type CreateBackupResponse
- type CreateBenchmarkRequest
- type CreateBenchmarkResponse
- type CreateClusterRequest
- type CreateClusterResponse
- type CreateFailoverRequest
- type CreateFailoverResponse
- type CreatePgbouncerRequest
- type CreatePgbouncerResponse
- type CreatePgpoolRequest
- type CreatePgpoolResponse
- type CreatePolicyRequest
- type CreatePolicyResponse
- type CreateScheduleRequest
- type CreateScheduleResponse
- type CreateUpgradeRequest
- type CreateUpgradeResponse
- type CreateUserRequest
- type CreateUserResponse
- type CreatepgDumpBackupRequest
- type CreatepgDumpBackupResponse
- type DeleteBackupResponse
- type DeleteBenchmarkRequest
- type DeleteBenchmarkResponse
- type DeleteClusterResponse
- type DeleteLabelRequest
- type DeletePgbouncerRequest
- type DeletePgbouncerResponse
- type DeletePgpoolRequest
- type DeletePgpoolResponse
- type DeletePolicyResponse
- type DeleteScheduleRequest
- type DeleteScheduleResponse
- type DeleteUpgradeResponse
- type DeleteUserResponse
- type DfDetail
- type DfResponse
- type FailoverTargetSpec
- type KeyValue
- type LabelRequest
- type LabelResponse
- type LoadRequest
- type LoadResponse
- type NodeInfo
- type PgRestoreRequest
- type PgRestoreResponse
- type QueryFailoverRequest
- type QueryFailoverResponse
- type ReloadRequest
- type ReloadResponse
- type RestoreRequest
- type RestoreResponse
- type ScaleDownResponse
- type ScaleQueryResponse
- type ScaleQueryTargetSpec
- type ShowBackrestDetail
- type ShowBackrestResponse
- type ShowBackupResponse
- type ShowBenchmarkRequest
- type ShowBenchmarkResponse
- type ShowClusterDeployment
- type ShowClusterDetail
- type ShowClusterPod
- type ShowClusterReplica
- type ShowClusterResponse
- type ShowClusterService
- type ShowConfigResponse
- type ShowPVCResponse
- type ShowPolicyResponse
- type ShowScheduleRequest
- type ShowScheduleResponse
- type ShowUpgradeResponse
- type ShowUserDetail
- type ShowUserResponse
- type ShowUserSecret
- type ShowWorkflowDetail
- type ShowWorkflowResponse
- type ShowpgDumpDetail
- type Status
- type StatusDetail
- type StatusResponse
- type UpdateClusterResponse
- type UserRequest
- type UserResponse
- type VersionResponse
Constants ¶
const Error = "error"
const Ok = "ok"
Ok status
const PGO_VERSION = "3.5.5"
const PodTypeBackup = "backup"
const PodTypePgbackrest = "pgbackrest"
const PodTypePgbouncer = "pgbouncer"
const PodTypePgpool = "pgpool"
const PodTypePrimary = "primary"
const PodTypeReplica = "replica"
const PodTypeUnknown = "unknown"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyPolicyRequest ¶
type ApplyPolicyRequest struct {
Name string
Selector string
DryRun bool
Namespace string
ClientVersion string
}
ApplyPolicyRequest ...
type ApplyPolicyResponse ¶
ApplyPolicyResponse ...
type BasicAuthCredentials ¶
type ClusterScaleResponse ¶
ClusterScaleResponse ...
type ClusterTestDetail ¶
ClusterTestDetail ...
type ClusterTestResponse ¶
type ClusterTestResponse struct {
Results []ClusterTestResult
Status
}
ClusterTestResponse ...
type ClusterTestResult ¶
type ClusterTestResult struct {
ClusterName string
Items []ClusterTestDetail
}
ClusterTestResult ...
type CreateBackrestBackupRequest ¶
type CreateBackrestBackupRequest struct {
Namespace string
Args []string
Selector string
BackupOpts string
}
CreateBackrestBackupRequest ...
type CreateBackrestBackupResponse ¶
CreateBackrestBackupResponse ...
type CreateBackupRequest ¶
type CreateBackupRequest struct {
Namespace string
Args []string
Selector string
PVCName string
StorageConfig string
BackupOpts string
}
CreateBackupRequest ...
type CreateBackupResponse ¶
CreateBackupResponse ...
type CreateBenchmarkRequest ¶
type CreateBenchmarkRequest struct {
Args []string
BenchmarkOpts string
Clients int
ClusterName string
Database string
InitOpts string
Jobs int
Namespace string
Policy string
Scale int
Selector string
Transactions int
User string
}
CreateBenchmarkRequest ...
func (CreateBenchmarkRequest) Validate ¶
func (c CreateBenchmarkRequest) Validate() error
type CreateBenchmarkResponse ¶
CreateBenchmarkResponse ...
type CreateClusterRequest ¶
type CreateClusterRequest struct {
Name string
Namespace string
NodeLabel string
Password string
SecretFrom string
BackupPVC string
UserLabels string
BackupPath string
Policies string
CCPImage string
CCPImageTag string
Series int
ReplicaCount int
ServiceType string
MetricsFlag bool
BadgerFlag bool
AutofailFlag bool
ArchiveFlag bool
BackrestFlag bool
//BackrestRestoreFrom string
PgpoolFlag bool
PgbouncerFlag bool
PgpoolSecret string
PgbouncerSecret string
PgbouncerPass string
PgbouncerUser string
CustomConfig string
StorageConfig string
ReplicaStorageConfig string
ContainerResources string
ClientVersion string
}
CreateClusterRequest ...
type CreateClusterResponse ¶
CreateClusterResponse ...
type CreateFailoverRequest ¶
type CreateFailoverRequest struct {
Namespace string
ClusterName string
AutofailReplaceReplica string
Target string
ClientVersion string
}
CreateFailoverRequest ...
type CreateFailoverResponse ¶
CreateFailoverResponse ...
type CreatePgbouncerRequest ¶
type CreatePgbouncerRequest struct {
Args []string
Selector string
Namespace string
PgbouncerUser string
PgbouncerPass string
ClientVersion string
}
CreatePgbouncerRequest ...
type CreatePgbouncerResponse ¶
CreatePgbouncerResponse ...
type CreatePgpoolRequest ¶
type CreatePgpoolRequest struct {
Args []string
Selector string
PgpoolSecret string
Namespace string
ClientVersion string
}
CreatePgpoolRequest ...
type CreatePgpoolResponse ¶
CreatePgpoolResponse ...
type CreatePolicyRequest ¶
type CreatePolicyRequest struct {
Name string
URL string
SQL string
Namespace string
ClientVersion string
}
CreatePolicyRequest ...
type CreateScheduleRequest ¶
type CreateScheduleRequest struct {
ClusterName string
Name string
Namespace string
Schedule string
ScheduleType string
Selector string
PGBackRestType string
PVCName string
ScheduleOptions string
StorageConfig string
PolicyName string
Database string
Secret string
}
CreateScheduleRequest ...
type CreateScheduleResponse ¶
type CreateUpgradeRequest ¶
type CreateUpgradeRequest struct {
Args []string
Selector string
Namespace string
CCPImageTag string
UpgradeType string
ClientVersion string
}
CreateUpgradeRequest ...
type CreateUpgradeResponse ¶
CreateUpgradeResponse ...
type CreateUserRequest ¶
type CreateUserRequest struct {
Name string
Namespace string
Selector string
Password string
ManagedUser bool
UserDBAccess string
PasswordAgeDays int
ClientVersion string
PasswordLength int
}
CreateUserRequest ...
type CreateUserResponse ¶
CreateUserResponse ...
type DeleteBackupResponse ¶
DeleteBackupResponse ...
type DeleteBenchmarkRequest ¶
type DeleteBenchmarkRequest struct {
Args []string
Namespace string
ClusterName string
Selector string
}
func (DeleteBenchmarkRequest) Validate ¶
func (d DeleteBenchmarkRequest) Validate() error
type DeleteBenchmarkResponse ¶
type DeleteClusterResponse ¶
DeleteClusterResponse ...
type DeleteLabelRequest ¶
type DeleteLabelRequest struct {
Selector string
Namespace string
Args []string
LabelCmdLabel string
ClientVersion string
}
DeleteLabelRequest ...
type DeletePgbouncerRequest ¶
type DeletePgbouncerRequest struct {
Args []string
Selector string
Namespace string
ClientVersion string
}
DeletePgbouncerRequest ...
type DeletePgbouncerResponse ¶
DeletePgbouncerResponse ...
type DeletePgpoolRequest ¶
type DeletePgpoolRequest struct {
Args []string
Selector string
Namespace string
ClientVersion string
}
DeletePgpoolRequest ...
type DeletePgpoolResponse ¶
DeletePgpoolResponse ...
type DeletePolicyResponse ¶
DeletePolicyResponse ...
type DeleteScheduleRequest ¶
type DeleteScheduleResponse ¶
type DeleteUpgradeResponse ¶
DeleteUpgradeResponse ...
type DeleteUserResponse ¶
DeleteUserResponse ...
type DfDetail ¶
this aggregated status comes from the pgo-status container by means of a volume mounted json blob it generates
type FailoverTargetSpec ¶
type LabelRequest ¶
type LabelRequest struct {
Selector string
Namespace string
Args []string
LabelCmdLabel string
DryRun bool
DeleteLabel bool
ClientVersion string
}
LabelRequest ...
type LoadRequest ¶
type LoadRequest struct {
Args []string
Selector string
Namespace string
LoadConfig string
Policies string
ClientVersion string
}
LoadRequest ...
type PgRestoreRequest ¶
type PgRestoreResponse ¶
type QueryFailoverRequest ¶
QueryFailoverRequest ...
type QueryFailoverResponse ¶
type QueryFailoverResponse struct {
Results []string
Targets []FailoverTargetSpec
Status
}
QueryFailoverResponse ...
type ReloadRequest ¶
ReloadRequest ...
type RestoreRequest ¶
type RestoreRequest struct {
Namespace string
FromCluster string
ToPVC string
RestoreOpts string
PITRTarget string
NodeLabel string
}
RestoreRequest ...
type ScaleDownResponse ¶
type ScaleQueryResponse ¶
type ScaleQueryResponse struct {
Results []string
Targets []ScaleQueryTargetSpec
Status
}
type ScaleQueryTargetSpec ¶
type ShowBackrestDetail ¶
type ShowBackrestResponse ¶
type ShowBackrestResponse struct {
Items []ShowBackrestDetail
Status
}
ShowBackrestResponse ...
type ShowBackupResponse ¶
type ShowBackupResponse struct {
BackupList crv1.PgbackupList
Status
}
ShowBackupResponse ...
type ShowBenchmarkRequest ¶
type ShowBenchmarkRequest struct {
Args []string
Namespace string
ClusterName string
Selector string
}
func (ShowBenchmarkRequest) Validate ¶
func (s ShowBenchmarkRequest) Validate() error
type ShowBenchmarkResponse ¶
type ShowClusterDeployment ¶
ShowClusterDeployment
type ShowClusterDetail ¶
type ShowClusterDetail struct {
Cluster crv1.Pgcluster
Deployments []ShowClusterDeployment
Pods []ShowClusterPod
Services []ShowClusterService
Replicas []ShowClusterReplica
}
ShowClusterDetail ...
type ShowClusterPod ¶
type ShowClusterPod struct {
Name string
Phase string
NodeName string
PVCName map[string]string
ReadyStatus string
Ready bool
Primary bool
Type string
}
ShowClusterPod
type ShowClusterResponse ¶
type ShowClusterResponse struct {
Results []ShowClusterDetail
Status
}
ShowClusterResponse ...
type ShowClusterService ¶
type ShowClusterService struct {
Name string
Data string
ClusterIP string
ExternalIP string
ClusterName string
Pgbouncer bool
BackrestRepo bool
}
ShowClusterService
type ShowConfigResponse ¶
ShowConfigResponse ...
type ShowPolicyResponse ¶
type ShowPolicyResponse struct {
PolicyList crv1.PgpolicyList
Status
}
ShowPolicyResponse ...
type ShowScheduleRequest ¶
type ShowScheduleResponse ¶
type ShowUpgradeResponse ¶
type ShowUpgradeResponse struct {
UpgradeList crv1.PgupgradeList
Status
}
ShowUpgradeResponse ...
type ShowUserDetail ¶
type ShowUserDetail struct {
Cluster crv1.Pgcluster
Secrets []ShowUserSecret
ExpiredMsgs []string
}
ShowUsersDetail ...
type ShowUserResponse ¶
type ShowUserResponse struct {
Results []ShowUserDetail
Status
}
ShowUsersResponse ...
type ShowUserSecret ¶
ShowUserSecret
type ShowWorkflowDetail ¶
type ShowWorkflowResponse ¶
type ShowWorkflowResponse struct {
Results ShowWorkflowDetail
Status
}
ShowWorkflowResponse ...
type ShowpgDumpDetail ¶
type StatusDetail ¶
type StatusDetail struct {
OperatorStartTime string
NumDatabases int
NumBackups int
NumClaims int
VolumeCap string
DbTags map[string]int
NotReady []string
Nodes []NodeInfo
Labels []KeyValue
}
this aggregated status comes from the pgo-status container by means of a volume mounted json blob it generates
type StatusResponse ¶
type StatusResponse struct {
Result StatusDetail
Status
}
ShowClusterResponse ...
type UpdateClusterResponse ¶
UpdateClusterResponse ...
type UserRequest ¶
type UserRequest struct {
Args []string
Selector string
Namespace string
PasswordAgeDays int
ChangePasswordForUser string
Password string
DeleteUser string
ValidDays string
UserDBAccess string
AddUser string
Expired string
UpdatePasswords bool
ManagedUser bool
ClientVersion string
PasswordLength int
}
UserRequest ...