Documentation ¶
Index ¶
- Constants
- func BadgerGenerate(w rest.ResponseWriter, r *rest.Request)
- func Basebackup(w rest.ResponseWriter, r *rest.Request)
- func Controldata(w rest.ResponseWriter, r *rest.Request)
- func Failover(w rest.ResponseWriter, r *rest.Request)
- func Initdb(w rest.ResponseWriter, r *rest.Request)
- func RemoteWritefile(w rest.ResponseWriter, r *rest.Request)
- func Seed(w rest.ResponseWriter, r *rest.Request)
- func StartPG(w rest.ResponseWriter, r *rest.Request)
- func StartPGOnStandby(w rest.ResponseWriter, r *rest.Request)
- func StartPgpool(w rest.ResponseWriter, r *rest.Request)
- func StopPG(w rest.ResponseWriter, r *rest.Request)
- func StopPgpool(w rest.ResponseWriter, r *rest.Request)
- type BadgerGenerateRequest
- type BadgerGenerateResponse
- type BasebackupRequest
- type BasebackupResponse
- type ControldataRequest
- type ControldataResponse
- type FailoverRequest
- type FailoverResponse
- type InitdbRequest
- type InitdbResponse
- type RemoteWritefileRequest
- type RemoteWritefileResponse
- type SeedRequest
- type SeedResponse
- type StartPGOnStandbyRequest
- type StartPGOnStandbyResponse
- type StartPGRequest
- type StartPGResponse
- type StartPgpoolRequest
- type StartPgpoolResponse
- type StopPGRequest
- type StopPGResponse
- type StopPgpoolRequest
- type StopPgpoolResponse
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 RemoteWritefile ¶
func RemoteWritefile(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 StopPgpool ¶
func StopPgpool(w rest.ResponseWriter, r *rest.Request)
Types ¶
type BadgerGenerateRequest ¶
type BadgerGenerateRequest struct {
ContainerName string
}
type BadgerGenerateResponse ¶
func BadgerGenerateClient ¶
func BadgerGenerateClient(host string) (BadgerGenerateResponse, error)
type BasebackupRequest ¶
type BasebackupResponse ¶
func BasebackupClient ¶
func BasebackupClient(master string, standby string) (BasebackupResponse, error)
type ControldataRequest ¶
type ControldataRequest struct {
Path string
}
type ControldataResponse ¶
func ControldataClient ¶
func ControldataClient(host string) (ControldataResponse, error)
type FailoverRequest ¶
type FailoverRequest struct {
ContainerName string
}
type FailoverResponse ¶
func FailoverClient ¶
func FailoverClient(host string) (FailoverResponse, error)
type InitdbRequest ¶
type InitdbRequest struct {
ContainerName string
}
type InitdbResponse ¶
func InitdbClient ¶
func InitdbClient(host string) (InitdbResponse, error)
type RemoteWritefileRequest ¶
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 ¶
func SeedClient ¶
func SeedClient(host string) (SeedResponse, error)
type StartPGOnStandbyRequest ¶
type StartPGOnStandbyRequest struct {
ContainerName string
}
type StartPGOnStandbyResponse ¶
func StartPGOnStandbyClient ¶
func StartPGOnStandbyClient(host string) (StartPGOnStandbyResponse, error)
type StartPGRequest ¶
type StartPGRequest struct {
ContainerName string
}
type StartPGResponse ¶
func StartPGClient ¶
func StartPGClient(host string) (StartPGResponse, error)
type StartPgpoolRequest ¶
type StartPgpoolResponse ¶
func StartPgpoolClient ¶
func StartPgpoolClient(host string) (StartPgpoolResponse, error)
type StopPGRequest ¶
type StopPGRequest struct {
ContainerName string
}
type StopPGResponse ¶
func StopPGClient ¶
func StopPGClient(host string) (StopPGResponse, error)
type StopPgpoolRequest ¶
type StopPgpoolResponse ¶
func StopPgpoolClient ¶
func StopPgpoolClient(host string) (StopPgpoolResponse, error)
Click to show internal directories.
Click to hide internal directories.