cpmcontainerapi

package
v0.0.0-...-1b39373 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PORT = ":10001"

Variables

This section is empty.

Functions

func BadgerGenerate

func BadgerGenerate(w rest.ResponseWriter, r *rest.Request)

func Basebackup

func Basebackup(w rest.ResponseWriter, r *rest.Request)

func Controldata

func Controldata(w rest.ResponseWriter, r *rest.Request)

func Failover

func Failover(w rest.ResponseWriter, r *rest.Request)

func Initdb

func Initdb(w rest.ResponseWriter, r *rest.Request)

func RemoteWritefile

func RemoteWritefile(w rest.ResponseWriter, r *rest.Request)

func Seed

func Seed(w rest.ResponseWriter, r *rest.Request)

func StartPG

func StartPG(w rest.ResponseWriter, r *rest.Request)

func StartPGOnStandby

func StartPGOnStandby(w rest.ResponseWriter, r *rest.Request)

func StartPgpool

func StartPgpool(w rest.ResponseWriter, r *rest.Request)

func StopPG

func StopPG(w rest.ResponseWriter, r *rest.Request)

func StopPgpool

func StopPgpool(w rest.ResponseWriter, r *rest.Request)

Types

type BadgerGenerateRequest

type BadgerGenerateRequest struct {
	ContainerName string
}

type BadgerGenerateResponse

type BadgerGenerateResponse struct {
	Output string
	Status string
}

func BadgerGenerateClient

func BadgerGenerateClient(host string) (BadgerGenerateResponse, error)

type BasebackupRequest

type BasebackupRequest struct {
	MasterHostName  string
	StandbyHostName string
}

type BasebackupResponse

type BasebackupResponse struct {
	Output string
	Status string
}

func BasebackupClient

func BasebackupClient(master string, standby string) (BasebackupResponse, error)

type ControldataRequest

type ControldataRequest struct {
	Path string
}

type ControldataResponse

type ControldataResponse struct {
	Output string
	Status string
}

func ControldataClient

func ControldataClient(host string) (ControldataResponse, error)

type FailoverRequest

type FailoverRequest struct {
	ContainerName string
}

type FailoverResponse

type FailoverResponse struct {
	Output string
	Status string
}

func FailoverClient

func FailoverClient(host string) (FailoverResponse, error)

type InitdbRequest

type InitdbRequest struct {
	ContainerName string
}

type InitdbResponse

type InitdbResponse struct {
	Output string
	Status string
}

func InitdbClient

func InitdbClient(host string) (InitdbResponse, error)

type RemoteWritefileRequest

type RemoteWritefileRequest struct {
	Path         string
	Filecontents string
}

type RemoteWritefileResponse

type RemoteWritefileResponse struct {
	Status string
}

func RemoteWritefileClient

func RemoteWritefileClient(path string, contents string, ipaddress string) (RemoteWritefileResponse, error)

example of calling one of these

request := &cpmcontainerapi.RemovewritefileRequest{"something", "yes"} response, err := cpmcontainerapi.RemoteWritefileClient("http://localhost:10001", request)

type SeedRequest

type SeedRequest struct {
	ContainerName string
}

type SeedResponse

type SeedResponse struct {
	Output string
	Status string
}

func SeedClient

func SeedClient(host string) (SeedResponse, error)

type StartPGOnStandbyRequest

type StartPGOnStandbyRequest struct {
	ContainerName string
}

type StartPGOnStandbyResponse

type StartPGOnStandbyResponse struct {
	Output string
	Status string
}

func StartPGOnStandbyClient

func StartPGOnStandbyClient(host string) (StartPGOnStandbyResponse, error)

type StartPGRequest

type StartPGRequest struct {
	ContainerName string
}

type StartPGResponse

type StartPGResponse struct {
	Output string
	Status string
}

func StartPGClient

func StartPGClient(host string) (StartPGResponse, error)

type StartPgpoolRequest

type StartPgpoolRequest struct {
	ContainerName string
	Path          string
}

type StartPgpoolResponse

type StartPgpoolResponse struct {
	Output string
	Status string
}

func StartPgpoolClient

func StartPgpoolClient(host string) (StartPgpoolResponse, error)

type StopPGRequest

type StopPGRequest struct {
	ContainerName string
}

type StopPGResponse

type StopPGResponse struct {
	Output string
	Status string
}

func StopPGClient

func StopPGClient(host string) (StopPGResponse, error)

type StopPgpoolRequest

type StopPgpoolRequest struct {
	ContainerName string
	Path          string
}

type StopPgpoolResponse

type StopPgpoolResponse struct {
	Output string
	Status string
}

func StopPgpoolClient

func StopPgpoolClient(host string) (StopPgpoolResponse, error)

Jump to

Keyboard shortcuts

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