clusterservice

package
v4.1.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(request *msgs.CreateClusterRequest, ns, pgouser 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, pgouser 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, pgouser 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, allflag bool) 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, pgouser string, allFlag bool) msgs.ClusterTestResponse

func TestClusterHandler

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

TestClusterHandler ... pgo test mycluster

func UpdateCluster

func UpdateCluster(request *msgs.UpdateClusterRequest) 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