Documentation ¶
Index ¶
- func AddLabelToDeployment(clientset *kubernetes.Clientset, origDeployment *v1.Deployment, ...) error
- func AddLabelToPod(clientset *kubernetes.Clientset, origPod *v1.Pod, key, value, namespace string) error
- func CreateConfigMap(clientset *kubernetes.Clientset, configMap *v1.ConfigMap, namespace string) error
- func CreateDeployment(clientset *kubernetes.Clientset, deployment *v1.Deployment, namespace string) error
- func CreateDeploymentV1(clientset *kubernetes.Clientset, deployment *v1.Deployment, namespace string) error
- func CreateJob(clientset *kubernetes.Clientset, job *v1batch.Job, namespace string) (string, error)
- func CreateNamespace(clientset *kubernetes.Clientset, ns *v1.Namespace) error
- func CreatePVC(clientset *kubernetes.Clientset, pvc *v1.PersistentVolumeClaim, ...) error
- func CreatePod(clientset *kubernetes.Clientset, svc *v1.Pod, namespace string) (*v1.Pod, error)
- func CreateRole(clientset *kubernetes.Clientset, role *v1.Role, namespace string) error
- func CreateRoleBinding(clientset *kubernetes.Clientset, roleBinding *v1.RoleBinding, namespace string) error
- func CreateSecret(clientset *kubernetes.Clientset, secret *v1.Secret, namespace string) error
- func CreateService(clientset *kubernetes.Clientset, svc *v1.Service, namespace string) (*v1.Service, error)
- func CreateServiceAccount(clientset *kubernetes.Clientset, sa *v1.ServiceAccount, namespace string) error
- func Createpgcluster(client *rest.RESTClient, cluster *crv1.Pgcluster, namespace string) error
- func Createpgpolicy(client *rest.RESTClient, policy *crv1.Pgpolicy, namespace string) error
- func Createpgreplica(client *rest.RESTClient, replica *crv1.Pgreplica, namespace string) error
- func Createpgtask(client *rest.RESTClient, task *crv1.Pgtask, namespace string) error
- func DeleteConfigMap(clientset *kubernetes.Clientset, name, namespace string) error
- func DeleteConfigMaps(clientset *kubernetes.Clientset, selector, namespace string) error
- func DeleteDeployment(clientset *kubernetes.Clientset, name, namespace string) error
- func DeleteJob(clientset *kubernetes.Clientset, jobName, namespace string) error
- func DeleteJobs(clientset *kubernetes.Clientset, selector, namespace string) error
- func DeleteNamespace(clientset *kubernetes.Clientset, name string) error
- func DeletePVC(clientset *kubernetes.Clientset, name, namespace string) error
- func DeletePVCs(clientset *kubernetes.Clientset, selector, namespace string) error
- func DeletePod(clientset *kubernetes.Clientset, name, namespace string) error
- func DeleteRole(clientset *kubernetes.Clientset, name, namespace string) error
- func DeleteRoleBinding(clientset *kubernetes.Clientset, name, namespace string) error
- func DeleteSecret(clientset *kubernetes.Clientset, name, namespace string) error
- func DeleteService(clientset *kubernetes.Clientset, name, namespace string) error
- func DeleteServiceAccount(clientset *kubernetes.Clientset, name, namespace string) error
- func Deletepgcluster(client *rest.RESTClient, name, namespace string) error
- func Deletepgpolicy(client *rest.RESTClient, name, namespace string) error
- func Deletepgreplica(client *rest.RESTClient, name, namespace string) error
- func Deletepgtask(client *rest.RESTClient, name, namespace string) error
- func Deletepgtasks(client *rest.RESTClient, selector, namespace string) error
- func ExecToPodThroughAPI(config *rest.Config, clientset *kubernetes.Clientset, command []string, ...) (string, string, error)
- func GetAllNodes(clientset *kubernetes.Clientset) (*v1.NodeList, error)
- func GetAllStorageClasses(clientset *kubernetes.Clientset) (*v1.StorageClassList, error)
- func GetConfigMap(clientset *kubernetes.Clientset, name, namespace string) (*v1.ConfigMap, bool)
- func GetDeployment(clientset *kubernetes.Clientset, name, namespace string) (*v1.Deployment, bool, error)
- func GetDeployments(clientset *kubernetes.Clientset, selector, namespace string) (*v1.DeploymentList, error)
- func GetJob(clientset *kubernetes.Clientset, name, namespace string) (*v1batch.Job, bool)
- func GetJobs(clientset *kubernetes.Clientset, selector, namespace string) (*v1batch.JobList, error)
- func GetLogs(client *kubernetes.Clientset, logOpts v1.PodLogOptions, out io.Writer, ...) error
- func GetNamespace(clientset *kubernetes.Clientset, name string) (*v1.Namespace, bool, error)
- func GetNamespaces(clientset *kubernetes.Clientset) (*v1.NamespaceList, error)
- func GetNodes(clientset *kubernetes.Clientset, selector, namespace string) (*v1.NodeList, error)
- func GetPVC(clientset *kubernetes.Clientset, name, namespace string) (*v1.PersistentVolumeClaim, bool, error)
- func GetPVCs(clientset *kubernetes.Clientset, selector, namespace string) (*v1.PersistentVolumeClaimList, error)
- func GetPod(clientset *kubernetes.Clientset, name, namespace string) (*v1.Pod, bool, error)
- func GetPods(clientset *kubernetes.Clientset, selector, namespace string) (*v1.PodList, error)
- func GetPodsWithBothSelectors(clientset *kubernetes.Clientset, selector, fieldselector, namespace string) (*v1.PodList, error)
- func GetRole(clientset *kubernetes.Clientset, name, namespace string) (*v1.Role, bool, error)
- func GetRoleBinding(clientset *kubernetes.Clientset, name, namespace string) (*v1.RoleBinding, bool, error)
- func GetSecret(clientset *kubernetes.Clientset, name, namespace string) (*v1.Secret, bool, error)
- func GetSecrets(clientset *kubernetes.Clientset, selector, namespace string) (*v1.SecretList, error)
- func GetService(clientset *kubernetes.Clientset, name, namespace string) (*v1.Service, bool, error)
- func GetServiceAccount(clientset *kubernetes.Clientset, name, namespace string) (*v1.ServiceAccount, bool, error)
- func GetServices(clientset *kubernetes.Clientset, selector, namespace string) (*v1.ServiceList, error)
- func GetStorageClass(clientset *kubernetes.Clientset, name string) (*v1.StorageClass, bool)
- func GetStorageClasses(clientset *kubernetes.Clientset, selector string) (*v1.StorageClassList, error)
- func Getpgcluster(client *rest.RESTClient, cluster *crv1.Pgcluster, name, namespace string) (bool, error)
- func Getpgclusters(client *rest.RESTClient, clusterList *crv1.PgclusterList, namespace string) error
- func GetpgclustersBySelector(client *rest.RESTClient, clusterList *crv1.PgclusterList, ...) error
- func Getpgpolicies(client *rest.RESTClient, policyList *crv1.PgpolicyList, namespace string) error
- func Getpgpolicy(client *rest.RESTClient, policy *crv1.Pgpolicy, name, namespace string) (bool, error)
- func Getpgreplica(client *rest.RESTClient, replica *crv1.Pgreplica, name, namespace string) (bool, error)
- func Getpgreplicas(client *rest.RESTClient, replicaList *crv1.PgreplicaList, namespace string) error
- func GetpgreplicasBySelector(client *rest.RESTClient, replicaList *crv1.PgreplicaList, ...) error
- func Getpgtask(client *rest.RESTClient, task *crv1.Pgtask, name, namespace string) (bool, error)
- func Getpgtasks(client *rest.RESTClient, taskList *crv1.PgtaskList, namespace string) error
- func GetpgtasksBySelector(client *rest.RESTClient, taskList *crv1.PgtaskList, selector, namespace string) error
- func IsJobComplete(client *kubernetes.Clientset, namespace string, job *v1batch.Job, ...) error
- func IsJobDeleted(client *kubernetes.Clientset, namespace string, job *v1batch.Job, ...) error
- func IsPVCDeleted(client *kubernetes.Clientset, timeout time.Duration, pvcName, namespace string) error
- func ListConfigMap(clientset *kubernetes.Clientset, label, namespace string) (*v1.ConfigMapList, bool)
- func MergePatchDeployment(clientset *kubernetes.Clientset, origDeployment *v1.Deployment, ...) error
- func NewClient() (*rest.Config, *kubernetes.Clientset, error)
- func NewControllerClient() (*rest.Config, *kubernetes.Clientset, error)
- func PatchDeploymentStrategicMerge(clientset *kubernetes.Clientset, deploymentName, namespace string, ...) error
- func PatchReplicas(clientset *kubernetes.Clientset, name, namespace, jsonpath string, ...) error
- func PatchpgclusterStatus(restclient *rest.RESTClient, state crv1.PgclusterState, message string, ...) error
- func PatchpgpolicyStatus(restclient *rest.RESTClient, state crv1.PgpolicyState, message string, ...) error
- func PatchpgreplicaStatus(restclient *rest.RESTClient, state crv1.PgreplicaState, message string, ...) error
- func PatchpgtaskStatus(restclient *rest.RESTClient, state crv1.PgtaskState, message string, ...) error
- func PatchpgtaskWorkflowStatus(restclient *rest.RESTClient, oldCrd *crv1.Pgtask, namespace string) error
- func ScaleDeployment(clientset *kubernetes.Clientset, deployment v1.Deployment, replicas int) error
- func UpdateConfigMap(clientset *kubernetes.Clientset, configMap *v1.ConfigMap, namespace string) error
- func UpdateDeployment(clientset *kubernetes.Clientset, deployment *v1.Deployment) error
- func UpdateNamespace(clientset *kubernetes.Clientset, ns *v1.Namespace) error
- func UpdatePod(clientset *kubernetes.Clientset, pod *v1.Pod, namespace string) error
- func UpdateRole(clientset *kubernetes.Clientset, sec *v1.Role, namespace string) error
- func UpdateRoleBinding(clientset *kubernetes.Clientset, sec *v1.RoleBinding, namespace string) error
- func UpdateSecret(clientset *kubernetes.Clientset, sec *v1.Secret, namespace string) error
- func UpdateService(clientset *kubernetes.Clientset, svc *v1.Service, namespace string) error
- func UpdateServiceAccount(clientset *kubernetes.Clientset, sec *v1.ServiceAccount, namespace string) error
- func Updatepgcluster(client *rest.RESTClient, cluster *crv1.Pgcluster, name, namespace string) error
- func Updatepgpolicy(client *rest.RESTClient, task *crv1.Pgpolicy, name, namespace string) error
- func Updatepgreplica(client *rest.RESTClient, replica *crv1.Pgreplica, name, namespace string) error
- func Updatepgtask(client *rest.RESTClient, task *crv1.Pgtask, name, namespace string) error
- type GetEndpointRequest
- type GetEndpointResponse
- type IntThingSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLabelToDeployment ¶
func AddLabelToDeployment(clientset *kubernetes.Clientset, origDeployment *v1.Deployment, key, value, namespace string) error
func AddLabelToPod ¶
func CreateConfigMap ¶
func CreateConfigMap(clientset *kubernetes.Clientset, configMap *v1.ConfigMap, namespace string) error
CreateConfigMap creates a ConfigMap
func CreateDeployment ¶
func CreateDeployment(clientset *kubernetes.Clientset, deployment *v1.Deployment, namespace string) error
CreateDeployment creates a deployment
func CreateDeploymentV1 ¶
func CreateDeploymentV1(clientset *kubernetes.Clientset, deployment *v1.Deployment, namespace string) error
CreateDeployment creates a deployment
func CreateNamespace ¶
func CreateNamespace(clientset *kubernetes.Clientset, ns *v1.Namespace) error
CreateNamespace
func CreatePVC ¶
func CreatePVC(clientset *kubernetes.Clientset, pvc *v1.PersistentVolumeClaim, namespace string) error
CreatePVC creates a PVC
func CreateRole ¶
CreateRole
func CreateRoleBinding ¶
func CreateRoleBinding(clientset *kubernetes.Clientset, roleBinding *v1.RoleBinding, namespace string) error
CreateRoleBinding
func CreateSecret ¶
CreateSecret
func CreateService ¶
func CreateService(clientset *kubernetes.Clientset, svc *v1.Service, namespace string) (*v1.Service, error)
CreateService creates a Service
func CreateServiceAccount ¶
func CreateServiceAccount(clientset *kubernetes.Clientset, sa *v1.ServiceAccount, namespace string) error
CreateServiceAccount
func Createpgcluster ¶
Createpgcluster creates a pgcluster
func Createpgpolicy ¶
Createpgpolicy creates a pgpolicy
func Createpgreplica ¶
Createpgreplica creates a pgreplica
func Createpgtask ¶
Createpgtask creates a pgtask
func DeleteConfigMap ¶
func DeleteConfigMap(clientset *kubernetes.Clientset, name, namespace string) error
DeleteConfigMap deletes a ConfigMap by name
func DeleteConfigMaps ¶
func DeleteConfigMaps(clientset *kubernetes.Clientset, selector, namespace string) error
DeleteConfigMaps deletes a ConfigMap by a selector
func DeleteDeployment ¶
func DeleteDeployment(clientset *kubernetes.Clientset, name, namespace string) error
DeleteDeployment deletes a deployment
func DeleteJob ¶
func DeleteJob(clientset *kubernetes.Clientset, jobName, namespace string) error
DeleteJob deletes a job
func DeleteJobs ¶
func DeleteJobs(clientset *kubernetes.Clientset, selector, namespace string) error
DeleteJobs deletes all jobs that match a selector
func DeleteNamespace ¶
func DeleteNamespace(clientset *kubernetes.Clientset, name string) error
DeleteNamespace
func DeletePVC ¶
func DeletePVC(clientset *kubernetes.Clientset, name, namespace string) error
DeletePVC deletes a PVC by name
func DeletePVCs ¶
func DeletePVCs(clientset *kubernetes.Clientset, selector, namespace string) error
DeletePVCs deletes all PVCs by selector
func DeletePod ¶
func DeletePod(clientset *kubernetes.Clientset, name, namespace string) error
DeletePod deletes a Pod
func DeleteRole ¶
func DeleteRole(clientset *kubernetes.Clientset, name, namespace string) error
DeleteRole
func DeleteRoleBinding ¶
func DeleteRoleBinding(clientset *kubernetes.Clientset, name, namespace string) error
DeleteRoleBinding
func DeleteSecret ¶
func DeleteSecret(clientset *kubernetes.Clientset, name, namespace string) error
DeleteSecret
func DeleteService ¶
func DeleteService(clientset *kubernetes.Clientset, name, namespace string) error
DeleteService deletes a Service
func DeleteServiceAccount ¶
func DeleteServiceAccount(clientset *kubernetes.Clientset, name, namespace string) error
DeleteServiceAccount
func Deletepgcluster ¶
func Deletepgcluster(client *rest.RESTClient, name, namespace string) error
Deletepgcluster deletes pgcluster by name
func Deletepgpolicy ¶
func Deletepgpolicy(client *rest.RESTClient, name, namespace string) error
Deletepgpolicy deletes pgpolicy by name
func Deletepgreplica ¶
func Deletepgreplica(client *rest.RESTClient, name, namespace string) error
Deletepgreplica deletes pgreplica by name
func Deletepgtask ¶
func Deletepgtask(client *rest.RESTClient, name, namespace string) error
Deletepgtask deletes pgtask by name
func Deletepgtasks ¶
func Deletepgtasks(client *rest.RESTClient, selector, namespace string) error
Deletepgtasks deletes pgtask by selector
func ExecToPodThroughAPI ¶
func ExecToPodThroughAPI(config *rest.Config, clientset *kubernetes.Clientset, command []string, containerName, podName, namespace string, stdin io.Reader) (string, string, error)
ExecToPodThroughAPI uninterractively exec to the pod with the command specified. :param string command: list of the str which specify the command. :param string pod_name: Pod name :param string namespace: namespace of the Pod. :param io.Reader stdin: Standerd Input if necessary, otherwise `nil` :return: string: Output of the command. (STDOUT)
string: Errors. (STDERR) error: If any error has occurred otherwise `nil`
func GetAllNodes ¶
func GetAllNodes(clientset *kubernetes.Clientset) (*v1.NodeList, error)
GetNodes gets a list of all Nodes
func GetAllStorageClasses ¶
func GetAllStorageClasses(clientset *kubernetes.Clientset) (*v1.StorageClassList, error)
GetStorageClasses gets a list of StorageClasses
func GetConfigMap ¶
GetConfigMap gets a ConfigMap by name
func GetDeployment ¶
func GetDeployment(clientset *kubernetes.Clientset, name, namespace string) (*v1.Deployment, bool, error)
GetDeployment gets a deployment by name
func GetDeployments ¶
func GetDeployments(clientset *kubernetes.Clientset, selector, namespace string) (*v1.DeploymentList, error)
GetDeployments gets a list of deployments using a label selector
func GetLogs ¶
func GetLogs(client *kubernetes.Clientset, logOpts v1.PodLogOptions, out io.Writer, podName, ns string) error
func GetNamespace ¶
GetNamespace gets a Namespace by name
func GetNamespaces ¶
func GetNamespaces(clientset *kubernetes.Clientset) (*v1.NamespaceList, error)
GetNamespaces gets a list of Namespaces
func GetPVC ¶
func GetPVC(clientset *kubernetes.Clientset, name, namespace string) (*v1.PersistentVolumeClaim, bool, error)
GetPVC gets a PVC by name returns pvc, found=bool, error
func GetPVCs ¶
func GetPVCs(clientset *kubernetes.Clientset, selector, namespace string) (*v1.PersistentVolumeClaimList, error)
GetPVCs gets a list of PVC by selector
func GetPodsWithBothSelectors ¶
func GetPodsWithBothSelectors(clientset *kubernetes.Clientset, selector, fieldselector, namespace string) (*v1.PodList, error)
GetPodsWithBothSelectors gets a list of Pods by selector and field selector
func GetRoleBinding ¶
func GetRoleBinding(clientset *kubernetes.Clientset, name, namespace string) (*v1.RoleBinding, bool, error)
GetRoleBinding gets a RoleBinding by name
func GetSecrets ¶
func GetSecrets(clientset *kubernetes.Clientset, selector, namespace string) (*v1.SecretList, error)
GetSecrets gets a list of Secrets by selector
func GetService ¶
GetService gets a Service by name
func GetServiceAccount ¶
func GetServiceAccount(clientset *kubernetes.Clientset, name, namespace string) (*v1.ServiceAccount, bool, error)
GetServiceAccount gets a ServiceAccount by name
func GetServices ¶
func GetServices(clientset *kubernetes.Clientset, selector, namespace string) (*v1.ServiceList, error)
GetServices gets a list of Services by selector
func GetStorageClass ¶
func GetStorageClass(clientset *kubernetes.Clientset, name string) (*v1.StorageClass, bool)
GetStorageClass gets a single StorageClasse
func GetStorageClasses ¶
func GetStorageClasses(clientset *kubernetes.Clientset, selector string) (*v1.StorageClassList, error)
GetStorageClasses gets a list of StorageClasses using a selector
func Getpgcluster ¶
func Getpgcluster(client *rest.RESTClient, cluster *crv1.Pgcluster, name, namespace string) (bool, error)
Getpgcluster gets a pgcluster by name
func Getpgclusters ¶
func Getpgclusters(client *rest.RESTClient, clusterList *crv1.PgclusterList, namespace string) error
Getpgclusters gets a list of pgclusters
func GetpgclustersBySelector ¶
func GetpgclustersBySelector(client *rest.RESTClient, clusterList *crv1.PgclusterList, selector, namespace string) error
GetpgclustersBySelector gets a list of pgclusters by selector
func Getpgpolicies ¶
func Getpgpolicies(client *rest.RESTClient, policyList *crv1.PgpolicyList, namespace string) error
Getpgpolicies gets a list of pgpolicies
func Getpgpolicy ¶
func Getpgpolicy(client *rest.RESTClient, policy *crv1.Pgpolicy, name, namespace string) (bool, error)
Getpgpolicy gets a pgpolicies by name
func Getpgreplica ¶
func Getpgreplica(client *rest.RESTClient, replica *crv1.Pgreplica, name, namespace string) (bool, error)
Getpgreplica gets a pgreplica by name
func Getpgreplicas ¶
func Getpgreplicas(client *rest.RESTClient, replicaList *crv1.PgreplicaList, namespace string) error
Getpgreplicas gets a list of pgreplicas
func GetpgreplicasBySelector ¶
func GetpgreplicasBySelector(client *rest.RESTClient, replicaList *crv1.PgreplicaList, selector, namespace string) error
GetpgreplicasBySelector gets a list of pgreplicas by selector
func Getpgtasks ¶
func Getpgtasks(client *rest.RESTClient, taskList *crv1.PgtaskList, namespace string) error
Getpgtasks gets a list of pgtasks
func GetpgtasksBySelector ¶
func GetpgtasksBySelector(client *rest.RESTClient, taskList *crv1.PgtaskList, selector, namespace string) error
GetpgtasksBySelector gets a list of pgtasks by selector
func IsJobComplete ¶
func IsJobDeleted ¶
func IsPVCDeleted ¶
func IsPVCDeleted(client *kubernetes.Clientset, timeout time.Duration, pvcName, namespace string) error
IsPVCDeleted checks to see if a PVC has been deleted. It will continuously check to see if the PVC has been deleted, only returning once the PVC is verified to have been deleted, or the timeout specified is reached.
func ListConfigMap ¶
func ListConfigMap(clientset *kubernetes.Clientset, label, namespace string) (*v1.ConfigMapList, bool)
ListConfigMap lists ConfigMaps with a given selector
func MergePatchDeployment ¶
func MergePatchDeployment(clientset *kubernetes.Clientset, origDeployment *v1.Deployment, newname, namespace string) error
MergePatchDeployment patches a deployment for failover only at this point
func NewClient ¶
func NewClient() (*rest.Config, *kubernetes.Clientset, error)
NewClient returns a Clientset and its underlying configuration.
func NewControllerClient ¶
func NewControllerClient() (*rest.Config, *kubernetes.Clientset, error)
NewControllerClient returns a Clientset and its underlying configuration. The Clientset is configured with a higher than normal QPS and Burst limit.
func PatchDeploymentStrategicMerge ¶
func PatchDeploymentStrategicMerge(clientset *kubernetes.Clientset, deploymentName, namespace string, patch string) error
PatchDeploymentStrategicMerge is a helper function for performing a strategic merge patch to update a Deployment. The function is responsible for calling the patchDeployment function in order to perform the strategic merge, specifically ensuring that the proper patch type is set as required to perform a strategic merge.
func PatchReplicas ¶
func PatchReplicas(clientset *kubernetes.Clientset, name, namespace, jsonpath string, patchvalue int) error
PatchDeployment patches a deployment
func PatchpgclusterStatus ¶
func PatchpgclusterStatus(restclient *rest.RESTClient, state crv1.PgclusterState, message string, oldCrd *crv1.Pgcluster, namespace string) error
func PatchpgpolicyStatus ¶
func PatchpgpolicyStatus(restclient *rest.RESTClient, state crv1.PgpolicyState, message string, oldCrd *crv1.Pgpolicy, namespace string) error
func PatchpgreplicaStatus ¶
func PatchpgreplicaStatus(restclient *rest.RESTClient, state crv1.PgreplicaState, message string, oldCrd *crv1.Pgreplica, namespace string) error
func PatchpgtaskStatus ¶
func PatchpgtaskStatus(restclient *rest.RESTClient, state crv1.PgtaskState, message string, oldCrd *crv1.Pgtask, namespace string) error
func ScaleDeployment ¶
func ScaleDeployment(clientset *kubernetes.Clientset, deployment v1.Deployment, replicas int) error
ScaleDeployment provides the ability to scale a Kubernetes deployment. The deployment provided is scaled to the number of replicas specfied via the 'replicas' parameter.
func UpdateConfigMap ¶
func UpdateConfigMap(clientset *kubernetes.Clientset, configMap *v1.ConfigMap, namespace string) error
UpdateConfigMap updates a configMap by name
func UpdateDeployment ¶
func UpdateDeployment(clientset *kubernetes.Clientset, deployment *v1.Deployment) error
UpdateDeployment enables the update of a Kubernetes deployment. This expects to have the full manifest required for the udpate
func UpdateNamespace ¶
func UpdateNamespace(clientset *kubernetes.Clientset, ns *v1.Namespace) error
func UpdateRole ¶
func UpdateRoleBinding ¶
func UpdateRoleBinding(clientset *kubernetes.Clientset, sec *v1.RoleBinding, namespace string) error
func UpdateSecret ¶
func UpdateService ¶
func UpdateServiceAccount ¶
func UpdateServiceAccount(clientset *kubernetes.Clientset, sec *v1.ServiceAccount, namespace string) error
func Updatepgcluster ¶
func Updatepgcluster(client *rest.RESTClient, cluster *crv1.Pgcluster, name, namespace string) error
Updatepgcluster updates a pgcluster
func Updatepgpolicy ¶
Updatepgpolicy
func Updatepgreplica ¶
func Updatepgreplica(client *rest.RESTClient, replica *crv1.Pgreplica, name, namespace string) error
Updatepgreplica updates a pgreplica
func Updatepgtask ¶
Updatepgtask updates a pgtask
Types ¶
type GetEndpointRequest ¶
type GetEndpointRequest struct { Clientset *kubernetes.Clientset // Kubernetes Clientset that interfaces with the Kubernetes cluster Name string // Name of the endpoint that is being queried Namespace string // Namespace the endpoint being queried resides in }
GetEndpointRequest is used for the GetEndpoint function, which includes the current Kubernetes request context, as well as the namespace / endpoint name being requested
type GetEndpointResponse ¶
type GetEndpointResponse struct { Endpoint *v1.Endpoints // Kubernetes Endpoint object that specifics about the endpoint Name string // Name of the endpoint Namespace string // Namespace that the endpoint is in }
GetEndpointResponse contains the results from a successful request to the endpoint API, including the Kubernetes Endpoint as well as the original request data
func GetEndpoint ¶
func GetEndpoint(request *GetEndpointRequest) (*GetEndpointResponse, error)
GetEndpoint tries to find an individual endpoint in a namespace. Returns the endpoint object if it can be IsNotFound If no endpoint can be found, then an error is returned