controldbcli

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlDBCli

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

ControlDBCli implements db interface and talks to ControlDBServer

func NewControlDBCli

func NewControlDBCli(address string) *ControlDBCli

func (*ControlDBCli) CreateConfigFile

func (c *ControlDBCli) CreateConfigFile(ctx context.Context, cfg *common.ConfigFile) error

func (*ControlDBCli) CreateDevice

func (c *ControlDBCli) CreateDevice(ctx context.Context, dev *common.Device) error

func (*ControlDBCli) CreateService

func (c *ControlDBCli) CreateService(ctx context.Context, svc *common.Service) error

func (*ControlDBCli) CreateServiceAttr

func (c *ControlDBCli) CreateServiceAttr(ctx context.Context, attr *common.ServiceAttr) error

func (*ControlDBCli) CreateServiceMember

func (c *ControlDBCli) CreateServiceMember(ctx context.Context, member *common.ServiceMember) error

func (*ControlDBCli) CreateServiceStaticIP added in v0.8.1

func (c *ControlDBCli) CreateServiceStaticIP(ctx context.Context, serviceip *common.ServiceStaticIP) error

func (*ControlDBCli) CreateSystemTables

func (c *ControlDBCli) CreateSystemTables(ctx context.Context) error

func (*ControlDBCli) DeleteConfigFile

func (c *ControlDBCli) DeleteConfigFile(ctx context.Context, serviceUUID string, fileID string) error

func (*ControlDBCli) DeleteDevice

func (c *ControlDBCli) DeleteDevice(ctx context.Context, clusterName string, deviceName string) error

func (*ControlDBCli) DeleteService

func (c *ControlDBCli) DeleteService(ctx context.Context, clusterName string, serviceName string) error

func (*ControlDBCli) DeleteServiceAttr

func (c *ControlDBCli) DeleteServiceAttr(ctx context.Context, serviceUUID string) error

func (*ControlDBCli) DeleteServiceMember

func (c *ControlDBCli) DeleteServiceMember(ctx context.Context, serviceUUID string, memberIndex int64) error

func (*ControlDBCli) DeleteServiceStaticIP added in v0.8.1

func (c *ControlDBCli) DeleteServiceStaticIP(ctx context.Context, staticIP string) error

func (*ControlDBCli) DeleteSystemTables

func (c *ControlDBCli) DeleteSystemTables(ctx context.Context) error

func (*ControlDBCli) GetConfigFile

func (c *ControlDBCli) GetConfigFile(ctx context.Context, serviceUUID string, fileID string) (cfg *common.ConfigFile, err error)

func (*ControlDBCli) GetDevice

func (c *ControlDBCli) GetDevice(ctx context.Context, clusterName string, deviceName string) (dev *common.Device, err error)

func (*ControlDBCli) GetService

func (c *ControlDBCli) GetService(ctx context.Context, clusterName string, serviceName string) (svc *common.Service, err error)

func (*ControlDBCli) GetServiceAttr

func (c *ControlDBCli) GetServiceAttr(ctx context.Context, serviceUUID string) (attr *common.ServiceAttr, err error)

func (*ControlDBCli) GetServiceMember

func (c *ControlDBCli) GetServiceMember(ctx context.Context, serviceUUID string, memberIndex int64) (member *common.ServiceMember, err error)

func (*ControlDBCli) GetServiceStaticIP added in v0.8.1

func (c *ControlDBCli) GetServiceStaticIP(ctx context.Context, staticIP string) (serviceip *common.ServiceStaticIP, err error)

func (*ControlDBCli) ListDevices

func (c *ControlDBCli) ListDevices(ctx context.Context, clusterName string) (devs []*common.Device, err error)

func (*ControlDBCli) ListServiceMembers

func (c *ControlDBCli) ListServiceMembers(ctx context.Context, serviceUUID string) (members []*common.ServiceMember, err error)

func (*ControlDBCli) ListServices

func (c *ControlDBCli) ListServices(ctx context.Context, clusterName string) (svcs []*common.Service, err error)

func (*ControlDBCli) SystemTablesReady

func (c *ControlDBCli) SystemTablesReady(ctx context.Context) (tableStatus string, ready bool, err error)

func (*ControlDBCli) UpdateServiceAttr

func (c *ControlDBCli) UpdateServiceAttr(ctx context.Context, oldAttr *common.ServiceAttr, newAttr *common.ServiceAttr) error

func (*ControlDBCli) UpdateServiceMember

func (c *ControlDBCli) UpdateServiceMember(ctx context.Context, oldMember *common.ServiceMember, newMember *common.ServiceMember) error

func (*ControlDBCli) UpdateServiceStaticIP added in v0.8.1

func (c *ControlDBCli) UpdateServiceStaticIP(ctx context.Context, oldIP *common.ServiceStaticIP, newIP *common.ServiceStaticIP) error

type TestControlDBServer

type TestControlDBServer struct {
	Testdir    string
	ListenPort int
	// contains filtered or unexported fields
}

func (*TestControlDBServer) RunControldbTestServer

func (s *TestControlDBServer) RunControldbTestServer(cluster string)

func (*TestControlDBServer) StopControldbTestServer

func (s *TestControlDBServer) StopControldbTestServer()

Jump to

Keyboard shortcuts

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