postgresoperator

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "postgres-operator"
)

Variables

This section is empty.

Functions

func Deploy

func Deploy(platform *platform.Platform) error

func GetOrCreateDB

func GetOrCreateDB(p *platform.Platform, config postgres.ClusterConfig) (*types.DB, error)

func GetPatroniClient

func GetPatroniClient(p *platform.Platform, namespace, clusterName string) (*http.Client, error)

func Test

func Test(p *platform.Platform, test *console.TestResults)

func TestE2E

func TestE2E(p *platform.Platform, test *console.TestResults)

Types

type ClusterResponse

type ClusterResponse struct {
	Members []ClusterResponseMember `json:"members"`
}

type ClusterResponseMember

type ClusterResponseMember struct {
	Name     string      `json:"name"`
	Host     string      `json:"host"`
	Port     int         `json:"port"`
	Role     string      `json:"role"`
	State    string      `json:"state"`
	URL      string      `json:"api_url"`
	Timeline int         `json:"timeline"`
	Lag      interface{} `json:"lag"`
}
type Link struct {
	ID  int64
	URL string
}

Jump to

Keyboard shortcuts

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