api

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2015 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func New

func New(apiConnector pct.APIConnector, debug bool) *Api

func (*Api) CreateAgent

func (a *Api) CreateAgent(agent *proto.Agent) (*proto.Agent, error)

func (*Api) CreateMySQLInstance

func (a *Api) CreateMySQLInstance(mi *proto.MySQLInstance) (*proto.MySQLInstance, error)

func (*Api) CreateServerInstance

func (a *Api) CreateServerInstance(si *proto.ServerInstance) (*proto.ServerInstance, error)

func (*Api) GetMmMySQLConfig

func (a *Api) GetMmMySQLConfig(mi *proto.MySQLInstance) (*proto.AgentConfig, error)

func (*Api) GetMmServerConfig

func (a *Api) GetMmServerConfig(si *proto.ServerInstance) (*proto.AgentConfig, error)

func (*Api) GetQanConfig

func (a *Api) GetQanConfig(mi *proto.MySQLInstance) (*proto.AgentConfig, error)

func (*Api) GetSysconfigMySQLConfig

func (a *Api) GetSysconfigMySQLConfig(mi *proto.MySQLInstance) (*proto.AgentConfig, error)

func (*Api) Init

func (a *Api) Init(hostname, apiKey string, headers map[string]string) (code int, err error)

func (*Api) UpdateAgent

func (a *Api) UpdateAgent(agent *proto.Agent, uuid string) (*proto.Agent, error)

Jump to

Keyboard shortcuts

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