 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( // ErrInstanceNotFound is the error thrown when a target instance cannot be found in the cluster ErrInstanceNotFound = errors.New("The instance does not exist in the cluster") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
	ReloadCluster() error
	RestartCluster() ([]RestartResult, error)
	RestartInstances(instance ...string) ([]RestartResult, error)
}
    Client defines the various actions a Patroni client is able to perform against a specified PGCluster
func NewPatroniClient ¶
func NewPatroniClient(restConfig *rest.Config, kubeclientset kubernetes.Interface, clusterName, namespace string) Client
NewPatroniClient creates a new Patroni client
type RestartResult ¶
RestartResult represents the result of a cluster restart, specifically the name of the an instance that was restarted within a cluster, and an error that can be populated in the event an instance cannot be successfully restarted.
 Click to show internal directories. 
   Click to hide internal directories.