v1

package
v4.2.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GroupName = "cr.client-go.k8s.io"

GroupName is the group name used in this package.

View Source
const PgbackupResourcePlural = "pgbackups"

PgbackupResourcePlural ...

View Source
const PgclusterResourcePlural = "pgclusters"

PgclusterResourcePlural ..

View Source
const PgingestResourcePlural = "pgingests"

PgingestResourcePlural ..

View Source
const PgpolicyResourcePlural = "pgpolicies"

PgpolicyResourcePlural ...

View Source
const PgreplicaResourcePlural = "pgreplicas"

PgreplicaResourcePlural ..

View Source
const PgtaskAddPolicies = "addpolicies"
View Source
const PgtaskAutoFailover = "autofailover"
View Source
const PgtaskDeleteBackups = "delete-backups"
View Source
const PgtaskDeleteData = "delete-data"
View Source
const PgtaskFailover = "failover"
View Source
const PgtaskResourcePlural = "pgtasks"

PgtaskResourcePlural ...

View Source
const PgupgradeResourcePlural = "pgupgrades"

PgupgradeResourcePlural ...

View Source
const PrimarySecretSuffix = "-primaryuser-secret"

PrimarySecretSuffix ...

View Source
const RootSecretSuffix = "-postgres-secret"

RootSecretSuffix ...

View Source
const StorageCreate = "create"

StorageCreate ...

View Source
const StorageDynamic = "dynamic"

StorageDynamic ...

View Source
const StorageEmptydir = "emptydir"

StorageEmptydir ...

View Source
const StorageExisting = "existing"

StorageExisting ...

View Source
const UpgradeCompletedStatus = "completed"

UpgradeCompletedStatus ....

View Source
const UpgradeSubmittedStatus = "submitted"

UpgradeSubmittedStatus ....

View Source
const UserSecretSuffix = "-testuser-secret"

UserSecretSuffix ...

Variables

View Source
var (
	// SchemeBuilder ...
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme ...
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is the group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type PgContainerResources

type PgContainerResources struct {
	RequestsMemory string `json:"requestsmemory"`
	RequestsCPU    string `json:"requestscpu"`
	LimitsMemory   string `json:"limitsmemory"`
	LimitsCPU      string `json:"limitscpu"`
}

PgContainerResource ...

type PgStorageSpec

type PgStorageSpec struct {
	Name               string `json:"name"`
	StorageClass       string `json:"storageclass"`
	AccessMode         string `json:"accessmode"`
	Size               string `json:"size"`
	StorageType        string `json:"storagetype"`
	Fsgroup            string `json:"fsgroup"`
	SupplementalGroups string `json:"supplementalgroups"`
}

PgStorageSpec ...

type Pgbackup

type Pgbackup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   PgbackupSpec   `json:"spec"`
	Status PgbackupStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Pgbackup ...

func (*Pgbackup) DeepCopyInto

func (in *Pgbackup) DeepCopyInto(out *Pgbackup)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*Pgbackup) DeepCopyObject

func (in *Pgbackup) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgbackupList

type PgbackupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Pgbackup `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object PgbackupList ...

func (*PgbackupList) DeepCopyObject

func (in *PgbackupList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgbackupSpec

type PgbackupSpec struct {
	Name         string        `json:"name"`
	StorageSpec  PgStorageSpec `json:"storagespec"`
	CCPImageTag  string        `json:"ccpimagetag"`
	BackupHost   string        `json:"backuphost"`
	BackupUser   string        `json:"backupuser"`
	BackupPass   string        `json:"backuppass"`
	BackupPort   string        `json:"backupport"`
	BackupStatus string        `json:"backupstatus"`
	BackupPVC    string        `json:"backuppvc"`
}

PgbackupSpec ...

type PgbackupState

type PgbackupState string

PgbackupState ...

const (
	// PgbackupStateCreated ...
	PgbackupStateCreated PgbackupState = "Created"
	// PgbackupStateProcessed ...
	PgbackupStateProcessed PgbackupState = "Processed"
)

type PgbackupStatus

type PgbackupStatus struct {
	State   PgbackupState `json:"state,omitempty"`
	Message string        `json:"message,omitempty"`
}

PgbackupStatus ...

type Pgcluster

type Pgcluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              PgclusterSpec   `json:"spec"`
	Status            PgclusterStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Pgcluster ..

func (*Pgcluster) DeepCopyInto

func (in *Pgcluster) DeepCopyInto(out *Pgcluster)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*Pgcluster) DeepCopyObject

func (in *Pgcluster) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgclusterList

type PgclusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Pgcluster `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object PgclusterList ...

func (*PgclusterList) DeepCopyObject

func (in *PgclusterList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgclusterSpec

type PgclusterSpec struct {
	Name               string               `json:"name"`
	ClusterName        string               `json:"clustername"`
	Policies           string               `json:"policies"`
	CCPImageTag        string               `json:"ccpimagetag"`
	Port               string               `json:"port"`
	NodeName           string               `json:"nodename"`
	PrimaryStorage     PgStorageSpec        `json:primarystorage`
	ReplicaStorage     PgStorageSpec        `json:replicastorage`
	ContainerResources PgContainerResources `json:containerresources`
	PrimaryHost        string               `json:"primaryhost"`
	PrimaryPassword    string               `json:"primarypassword"`
	User               string               `json:"user"`
	Password           string               `json:"password"`
	Database           string               `json:"database"`
	RootPassword       string               `json:"rootpassword"`
	Replicas           string               `json:"replicas"`
	Strategy           string               `json:"strategy"`
	SecretFrom         string               `json:"secretfrom"`
	BackupPVCName      string               `json:"backuppvcname"`
	BackupPath         string               `json:"backuppath"`
	UserSecretName     string               `json:"usersecretname"`
	RootSecretName     string               `json:"rootsecretname"`
	PrimarySecretName  string               `json:"primarysecretname"`
	Status             string               `json:"status"`
	PswLastUpdate      string               `json:"pswlastupdate"`
	CustomConfig       string               `json:"customconfig"`
	UserLabels         map[string]string    `json:"userlabels"`
}

PgclusterSpec ...

type PgclusterState

type PgclusterState string

PgclusterState ...

const (
	// PgclusterStateCreated ...
	PgclusterStateCreated PgclusterState = "Created"
	// PgclusterStateProcessed ...
	PgclusterStateProcessed PgclusterState = "Processed"
)

type PgclusterStatus

type PgclusterStatus struct {
	State   PgclusterState `json:"state,omitempty"`
	Message string         `json:"message,omitempty"`
}

PgclusterStatus ...

type Pgingest

type Pgingest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              PgingestSpec   `json:"spec"`
	Status            PgingestStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Pgingest ..

func (*Pgingest) DeepCopyInto

func (in *Pgingest) DeepCopyInto(out *Pgingest)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*Pgingest) DeepCopyObject

func (in *Pgingest) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgingestList

type PgingestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Pgingest `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object PgingestList ...

func (*PgingestList) DeepCopyObject

func (in *PgingestList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgingestSpec

type PgingestSpec struct {
	Name            string `json:"name"`
	WatchDir        string `json:"watchdir"`
	DBHost          string `json:"dbhost"`
	DBPort          string `json:"dbport"`
	DBName          string `json:"dbname"`
	DBSecret        string `json:"dbsecret"`
	DBTable         string `json:"dbtable"`
	DBColumn        string `json:"dbcolumn"`
	MaxJobs         int    `json:"maxjobs"`
	PVCName         string `json:"pvcname"`
	SecurityContext string `json:"securitycontext"`
	Status          string `json:"status"`
}

PgingestSpec ...

type PgingestState

type PgingestState string

PgingestState ...

const (
	// PgingestStateCreated ...
	PgingestStateCreated PgingestState = "Created"
	// PgingestStateProcessed ...
	PgingestStateProcessed PgingestState = "Processed"
)

type PgingestStatus

type PgingestStatus struct {
	State   PgingestState `json:"state,omitempty"`
	Message string        `json:"message,omitempty"`
}

PgingestStatus ...

type Pgpolicy

type Pgpolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   PgpolicySpec   `json:"spec"`
	Status PgpolicyStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Pgpolicy ...

func (*Pgpolicy) DeepCopyInto

func (in *Pgpolicy) DeepCopyInto(out *Pgpolicy)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*Pgpolicy) DeepCopyObject

func (in *Pgpolicy) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgpolicyList

type PgpolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Pgpolicy `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object PgpolicyList ...

func (*PgpolicyList) DeepCopyObject

func (in *PgpolicyList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgpolicySpec

type PgpolicySpec struct {
	Name   string `json:"name"`
	URL    string `json:"url"`
	SQL    string `json:"sql"`
	Status string `json:"status"`
}

PgpolicySpec ...

type PgpolicyState

type PgpolicyState string

PgpolicyState ...

const (
	// PgpolicyStateCreated ...
	PgpolicyStateCreated PgpolicyState = "Created"
	// PgpolicyStateProcessed ...
	PgpolicyStateProcessed PgpolicyState = "Processed"
)

type PgpolicyStatus

type PgpolicyStatus struct {
	State   PgpolicyState `json:"state,omitempty"`
	Message string        `json:"message,omitempty"`
}

PgpolicyStatus ...

type Pgreplica

type Pgreplica struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              PgreplicaSpec   `json:"spec"`
	Status            PgreplicaStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Pgreplica ..

func (*Pgreplica) DeepCopyInto

func (in *Pgreplica) DeepCopyInto(out *Pgreplica)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*Pgreplica) DeepCopyObject

func (in *Pgreplica) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgreplicaList

type PgreplicaList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Pgreplica `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object PgreplicaList ...

func (*PgreplicaList) DeepCopyObject

func (in *PgreplicaList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgreplicaSpec

type PgreplicaSpec struct {
	Name               string               `json:"name"`
	ClusterName        string               `json:"clustername"`
	ReplicaStorage     PgStorageSpec        `json:"replicastorage"`
	ContainerResources PgContainerResources `json:"containerresources"`
	Status             string               `json:"status"`
	UserLabels         map[string]string    `json:"userlabels"`
}

PgreplicaSpec ...

type PgreplicaState

type PgreplicaState string

PgreplicaState ...

const (
	// PgreplicaStateCreated ...
	PgreplicaStateCreated PgreplicaState = "Created"
	// PgreplicaStateProcessed ...
	PgreplicaStateProcessed PgreplicaState = "Processed"
)

type PgreplicaStatus

type PgreplicaStatus struct {
	State   PgreplicaState `json:"state,omitempty"`
	Message string         `json:"message,omitempty"`
}

PgreplicaStatus ...

type Pgtask

type Pgtask struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   PgtaskSpec   `json:"spec"`
	Status PgtaskStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Pgtask ...

func (*Pgtask) DeepCopyInto

func (in *Pgtask) DeepCopyInto(out *Pgtask)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*Pgtask) DeepCopyObject

func (in *Pgtask) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgtaskList

type PgtaskList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Pgtask `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object PgtaskList ...

func (*PgtaskList) DeepCopyObject

func (in *PgtaskList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgtaskSpec

type PgtaskSpec struct {
	Name        string        `json:"name"`
	StorageSpec PgStorageSpec `json:"storagespec"`
	TaskType    string        `json:"tasktype"`
	Status      string        `json:"status"`
	//Parameters  string            `json:"parameters"`
	Parameters map[string]string `json:"parameters"`
}

PgtaskSpec ...

type PgtaskState

type PgtaskState string

PgtaskState ...

const (
	// PgtaskStateCreated ...
	PgtaskStateCreated PgtaskState = "Created"
	// PgtaskStateProcessed ...
	PgtaskStateProcessed PgtaskState = "Processed"
)

type PgtaskStatus

type PgtaskStatus struct {
	State   PgtaskState `json:"state,omitempty"`
	Message string      `json:"message,omitempty"`
}

PgtaskStatus ...

type Pgupgrade

type Pgupgrade struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   PgupgradeSpec   `json:"spec"`
	Status PgupgradeStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Pgupgrade ...

func (*Pgupgrade) DeepCopyInto

func (in *Pgupgrade) DeepCopyInto(out *Pgupgrade)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*Pgupgrade) DeepCopyObject

func (in *Pgupgrade) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgupgradeList

type PgupgradeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Pgupgrade `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object PgupgradeList ...

func (*PgupgradeList) DeepCopyObject

func (in *PgupgradeList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

type PgupgradeSpec

type PgupgradeSpec struct {
	Name            string        `json:"name"`
	ResourceType    string        `json:"resourcetype"`
	UpgradeType     string        `json:"upgradetype"`
	UpgradeStatus   string        `json:"upgradestatus"`
	StorageSpec     PgStorageSpec `json:"storagespec"`
	CCPImageTag     string        `json:"ccpimagetag"`
	OldDatabaseName string        `json:"olddatabasename"`
	NewDatabaseName string        `json:"newdatabasename"`
	OldVersion      string        `json:"oldversion"`
	NewVersion      string        `json:"newversion"`
	OldPVCName      string        `json:"oldpvcname"`
	NewPVCName      string        `json:"newpvcname"`
	BackupPVCName   string        `json:"backuppvcname"`
}

PgupgradeSpec ...

type PgupgradeState

type PgupgradeState string

PgupgradeState ...

const PgupgradeStateCreated PgupgradeState = "Created"

PgupgradeStateCreated ...

const PgupgradeStateProcessed PgupgradeState = "Processed"

PgupgradeStateProcessed ...

type PgupgradeStatus

type PgupgradeStatus struct {
	State   PgupgradeState `json:"state,omitempty"`
	Message string         `json:"message,omitempty"`
}

PgupgradeStatus ...

Jump to

Keyboard shortcuts

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