Documentation ¶
Index ¶
- Constants
- type ApplyPolicyRequest
- type ApplyPolicyResponse
- type ApplyResults
- type BasicAuthCredentials
- type CatRequest
- type CatResponse
- type ClusterScaleResponse
- type ClusterTestDetail
- type ClusterTestRequest
- 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 CreateNamespaceRequest
- type CreateNamespaceResponse
- type CreatePgbouncerRequest
- type CreatePgbouncerResponse
- type CreatePgoroleRequest
- type CreatePgoroleResponse
- type CreatePgouserRequest
- type CreatePgouserResponse
- 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 DeleteClusterRequest
- type DeleteClusterResponse
- type DeleteLabelRequest
- type DeleteNamespaceRequest
- type DeleteNamespaceResponse
- type DeletePgbouncerRequest
- type DeletePgbouncerResponse
- type DeletePgoroleRequest
- type DeletePgoroleResponse
- type DeletePgouserRequest
- type DeletePgouserResponse
- type DeletePgpoolRequest
- type DeletePgpoolResponse
- type DeletePolicyRequest
- type DeletePolicyResponse
- type DeleteScheduleRequest
- type DeleteScheduleResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type DfDetail
- type DfResponse
- type FailoverTargetSpec
- type KeyValue
- type LabelRequest
- type LabelResponse
- type LoadRequest
- type LoadResponse
- type LsRequest
- type LsResponse
- type NamespaceResult
- type NodeInfo
- type PgRestoreRequest
- type PgRestoreResponse
- type PgbasebackupRestoreRequest
- type PgbasebackupRestoreResponse
- type PgoroleInfo
- type PgouserInfo
- 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 ShowClusterRequest
- type ShowClusterResponse
- type ShowClusterService
- type ShowConfigResponse
- type ShowNamespaceRequest
- type ShowNamespaceResponse
- type ShowPVCRequest
- type ShowPVCResponse
- type ShowPgoroleRequest
- type ShowPgoroleResponse
- type ShowPgouserRequest
- type ShowPgouserResponse
- type ShowPolicyRequest
- type ShowPolicyResponse
- type ShowScheduleRequest
- type ShowScheduleResponse
- type ShowUserDetail
- type ShowUserRequest
- type ShowUserResponse
- type ShowUserSecret
- type ShowWorkflowDetail
- type ShowWorkflowResponse
- type ShowpgDumpDetail
- type Status
- type StatusDetail
- type StatusResponse
- type UpdateClusterRequest
- type UpdateClusterResponse
- type UpdateNamespaceRequest
- type UpdateNamespaceResponse
- type UpdatePgoroleRequest
- type UpdatePgoroleResponse
- type UpdatePgouserRequest
- type UpdatePgouserResponse
- type UpdateUserRequest
- type UpdateUserResponse
- type VersionResponse
- type WatchRequest
- type WatchResponse
Constants ¶
const Error = "error"
const Ok = "ok"
Ok status
const PGO_VERSION = "4.1.2"
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 ¶
func (BasicAuthCredentials) HasUsernameAndPassword ¶
func (b BasicAuthCredentials) HasUsernameAndPassword() bool
type ClusterScaleResponse ¶
ClusterScaleResponse ...
type ClusterTestDetail ¶
ClusterTestDetail ...
type ClusterTestRequest ¶
type ClusterTestRequest struct { Clustername string Selector string ClientVersion string Namespace string AllFlag bool }
ClusterTestRequest ...
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 BackrestStorageType 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 UserLabels string Policies string CCPImage string CCPImageTag string Series int ReplicaCount int ServiceType string MetricsFlag bool BadgerFlag bool AutofailFlag bool ArchiveFlag bool BackrestFlag string BackrestStorageType string //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 CreateNamespaceRequest ¶
CreateNamespaceRequest ...
type CreateNamespaceResponse ¶
CreateNamespaceResponse ...
type CreatePgbouncerRequest ¶
type CreatePgbouncerRequest struct { Args []string Selector string Namespace string PgbouncerUser string PgbouncerPass string ClientVersion string }
CreatePgbouncerRequest ...
type CreatePgbouncerResponse ¶
CreatePgbouncerResponse ...
type CreatePgoroleRequest ¶
type CreatePgoroleRequest struct { PgoroleName string PgorolePermissions string Namespace string ClientVersion string }
CreatePgoroleRequest ...
type CreatePgouserRequest ¶
type CreatePgouserRequest struct { PgouserName string PgouserPassword string PgouserRoles string AllNamespaces bool PgouserNamespaces string Namespace string ClientVersion string }
CreatePgouserRequest ...
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 BackrestStorageType 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 ClientVersion string }
CreateUpgradeRequest ...
type CreateUpgradeResponse ¶
CreateUpgradeResponse ...
type CreateUserRequest ¶
type CreateUserRequest struct { Clusters []string Username string Namespace string Selector string AllFlag bool 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 DeleteClusterRequest ¶
type DeleteClusterRequest struct { Clustername string Selector string ClientVersion string Namespace string AllFlag bool DeleteBackups bool DeleteData bool }
DeleteClusterRequest ...
type DeleteClusterResponse ¶
DeleteClusterResponse ...
type DeleteLabelRequest ¶
type DeleteLabelRequest struct { Selector string Namespace string Args []string LabelCmdLabel string ClientVersion string }
DeleteLabelRequest ...
type DeleteNamespaceRequest ¶
type DeleteNamespaceRequest struct { Args []string Selector string Namespace string AllFlag bool ClientVersion string }
DeleteNamespaceRequest ...
type DeleteNamespaceResponse ¶
DeletePgouserResponse ...
type DeletePgbouncerRequest ¶
type DeletePgbouncerRequest struct { Args []string Selector string Namespace string ClientVersion string }
DeletePgbouncerRequest ...
type DeletePgbouncerResponse ¶
DeletePgbouncerResponse ...
type DeletePgoroleRequest ¶
type DeletePgoroleRequest struct { PgoroleName []string Namespace string AllFlag bool ClientVersion string }
DeletePgoroleRequest ...
type DeletePgoroleResponse ¶
DeletePgoroleResponse ...
type DeletePgouserRequest ¶
type DeletePgouserRequest struct { PgouserName []string Namespace string AllFlag bool ClientVersion string }
DeletePgouserRequest ...
type DeletePgouserResponse ¶
DeletePgouserResponse ...
type DeletePgpoolRequest ¶
type DeletePgpoolRequest struct { Args []string Selector string Namespace string ClientVersion string }
DeletePgpoolRequest ...
type DeletePgpoolResponse ¶
DeletePgpoolResponse ...
type DeletePolicyRequest ¶
type DeletePolicyRequest struct { Selector string Namespace string AllFlag bool ClientVersion string PolicyName string }
DeletePolicyRequest ...
type DeletePolicyResponse ¶
DeletePolicyResponse ...
type DeleteScheduleRequest ¶
type DeleteScheduleResponse ¶
type DeleteUserRequest ¶
type DeleteUserRequest struct { Selector string Clusters []string AllFlag bool Username string ClientVersion string Namespace string }
DeleteUserRequest ...
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 NamespaceResult ¶
type PgRestoreRequest ¶
type PgRestoreResponse ¶
type PgbasebackupRestoreRequest ¶
type PgbasebackupRestoreRequest struct { Namespace string FromCluster string ToPVC string FromPVC string BackupPath string NodeLabel string }
PgbasebackupRestoreRequest ...
type PgbasebackupRestoreResponse ¶
PgbasebackupRestoreResponse ...
type PgoroleInfo ¶
type PgouserInfo ¶
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 BackrestStorageType 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 ShowClusterRequest ¶
type ShowClusterRequest struct { Clustername string Selector string Ccpimagetag string ClientVersion string Namespace string AllFlag bool }
ShowClusterRequest ...
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 ShowNamespaceRequest ¶
ShowNamespaceRequest ...
type ShowNamespaceResponse ¶
type ShowNamespaceResponse struct { Username string Results []NamespaceResult Status }
ShowNamespaceResponse ...
type ShowPVCRequest ¶
type ShowPVCRequest struct { PVCName string NodeLabel string PVCRoot string Selector string ClientVersion string Namespace string AllFlag bool }
ShowPVCRequest ...
type ShowPgoroleRequest ¶
type ShowPgoroleRequest struct { Namespace string AllFlag bool ClientVersion string PgoroleName []string }
ShowPgoroleRequest ...
type ShowPgoroleResponse ¶
type ShowPgoroleResponse struct { RoleInfo []PgoroleInfo Status }
ShowPgoroleResponse ...
type ShowPgouserRequest ¶
type ShowPgouserRequest struct { Namespace string AllFlag bool ClientVersion string PgouserName []string }
ShowPgouserRequest ...
type ShowPgouserResponse ¶
type ShowPgouserResponse struct { UserInfo []PgouserInfo Status }
ShowPgouserResponse ...
type ShowPolicyRequest ¶
type ShowPolicyRequest struct { Selector string Namespace string AllFlag bool ClientVersion string Policyname string }
ShowPolicyRequest ...
type ShowPolicyResponse ¶
type ShowPolicyResponse struct { PolicyList crv1.PgpolicyList Status }
ShowPolicyResponse ...
type ShowScheduleRequest ¶
type ShowScheduleResponse ¶
type ShowUserDetail ¶
type ShowUserDetail struct { Cluster crv1.Pgcluster Secrets []ShowUserSecret ExpiredOutput bool ExpiredDays int ExpiredMsgs []string }
ShowUsersDetail ...
type ShowUserRequest ¶
type ShowUserRequest struct { Clusters []string AllFlag bool ClientVersion string Selector string Namespace string Expired string }
ShowUserRequest ...
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 UpdateClusterRequest ¶
type UpdateClusterRequest struct { Clustername []string Selector string ClientVersion string Namespace string AllFlag bool Autofail bool }
UpdateClusterRequest ...
type UpdateClusterResponse ¶
UpdateClusterResponse ...
type UpdateNamespaceRequest ¶
UpdateNamespaceRequest ...
type UpdateNamespaceResponse ¶
UpdateNamespaceResponse ...
type UpdatePgoroleRequest ¶
type UpdatePgoroleRequest struct { Name string PgorolePermissions string PgoroleName string ChangePermissions bool Namespace string ClientVersion string }
UpdatePgoroleRequest ...
type UpdatePgouserRequest ¶
type UpdatePgouserRequest struct { Name string PgouserRoles string PgouserNamespaces string AllNamespaces bool PgouserPassword string PgouserName string Namespace string ClientVersion string }
UpdatePgouserRequest ...
type UpdateUserRequest ¶
type UpdateUserRequest struct { Clusters []string Selector string AllFlag bool ExpireUser bool Namespace string PasswordAgeDays int PasswordAgeDaysUpdate bool Username string Password string DeleteUser string ValidDays string UserDBAccess string AddUser string Expired string ManagedUser bool ClientVersion string PasswordLength int }
UpdateUserRequest ...
type UpdateUserResponse ¶
UpdateUserResponse ...
type WatchRequest ¶
type WatchResponse ¶
Source Files ¶
- backrestmsgs.go
- backupmsgs.go
- benchmarkmsgs.go
- catmsgs.go
- clustermsgs.go
- common.go
- configmsgs.go
- dfmsgs.go
- failovermsgs.go
- labelmsgs.go
- loadmsgs.go
- lsmsgs.go
- namespacemsgs.go
- pgbouncermsgs.go
- pgdumpmsgs.go
- pgorolemsgs.go
- pgousermsgs.go
- pgpoolmsgs.go
- policymsgs.go
- pvcmsgs.go
- reloadmsgs.go
- schedulemsgs.go
- statusmsgs.go
- upgrademsgs.go
- usermsgs.go
- versionmsgs.go
- watchmsgs.go
- workflowmsgs.go