clusterservice

package
v3.5.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(request *msgs.CreateClusterRequest, ns string) msgs.CreateClusterResponse

CreateCluster ... pgo create cluster mycluster

func CreateClusterHandler

func CreateClusterHandler(w http.ResponseWriter, r *http.Request)

CreateClusterHandler ... pgo create cluster parameters secretfrom

func DeleteCluster

func DeleteCluster(name, selector string, deleteData, deleteBackups bool, ns string) msgs.DeleteClusterResponse

DeleteCluster ...

func DeleteClusterHandler

func DeleteClusterHandler(w http.ResponseWriter, r *http.Request)

DeleteClusterHandler ... pgo delete mycluster parameters showsecrets parameters selector parameters postgresversion returns a ShowClusterResponse

func GetPods

func GetPods(cluster *crv1.Pgcluster, ns string) ([]msgs.ShowClusterPod, error)

func GetPrimaryAndReplicaPods

func GetPrimaryAndReplicaPods(cluster *crv1.Pgcluster, ns string) ([]msgs.ShowClusterPod, error)

func ScaleCluster

func ScaleCluster(name, replicaCount, resourcesConfig, storageConfig, nodeLabel, ccpImageTag, serviceType, ns string) msgs.ClusterScaleResponse

ScaleCluster ...

func ScaleClusterHandler

func ScaleClusterHandler(w http.ResponseWriter, r *http.Request)

ScaleClusterHandler ... pgo scale mycluster --replica-count=1 parameters showsecrets returns a ScaleResponse

func ScaleDown

func ScaleDown(deleteData bool, clusterName, replicaName, ns string) msgs.ScaleDownResponse

ScaleDown ...

func ScaleDownHandler

func ScaleDownHandler(w http.ResponseWriter, r *http.Request)

ScaleDownHandler ... pgo scale mycluster --scale-down-target=somereplicaname returns a ScaleDownResponse

func ScaleQuery

func ScaleQuery(name, ns string) msgs.ScaleQueryResponse

ScaleQuery ...

func ScaleQueryHandler

func ScaleQueryHandler(w http.ResponseWriter, r *http.Request)

ScaleQueryHandler ... pgo scale mycluster --query returns a ScaleQueryResponse

func ShowCluster

func ShowCluster(name, selector, ccpimagetag, ns string) msgs.ShowClusterResponse

ShowCluster ...

func ShowClusterHandler

func ShowClusterHandler(w http.ResponseWriter, r *http.Request)

ShowClusterHandler ... pgo show cluster pgo delete mycluster parameters showsecrets parameters selector parameters postgresversion returns a ShowClusterResponse

func TestCluster

func TestCluster(name, selector, ns string) msgs.ClusterTestResponse

func TestClusterHandler

func TestClusterHandler(w http.ResponseWriter, r *http.Request)

TestClusterHandler ... pgo test mycluster

func UpdateCluster

func UpdateCluster(name, selector, autofail, ns string) msgs.UpdateClusterResponse

UpdateCluster ...

func UpdateClusterHandler

func UpdateClusterHandler(w http.ResponseWriter, r *http.Request)

UpdateClusterHandler ... pgo update cluster mycluster --autofail=true pgo update cluster --selector=env=research --autofail=false returns a UpdateClusterResponse

Types

type ClusterDetail

type ClusterDetail struct {
	Name string
}

ClusterDetail ...

type TestResults

type TestResults struct {
	Results []string
}

TestResults ...

Jump to

Keyboard shortcuts

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