Documentation ¶
Index ¶
- type ControlDBCli
- func (c *ControlDBCli) CreateConfigFile(ctx context.Context, cfg *common.ConfigFile) error
- func (c *ControlDBCli) CreateDevice(ctx context.Context, dev *common.Device) error
- func (c *ControlDBCli) CreateService(ctx context.Context, svc *common.Service) error
- func (c *ControlDBCli) CreateServiceAttr(ctx context.Context, attr *common.ServiceAttr) error
- func (c *ControlDBCli) CreateServiceMember(ctx context.Context, member *common.ServiceMember) error
- func (c *ControlDBCli) CreateServiceStaticIP(ctx context.Context, serviceip *common.ServiceStaticIP) error
- func (c *ControlDBCli) CreateSystemTables(ctx context.Context) error
- func (c *ControlDBCli) DeleteConfigFile(ctx context.Context, serviceUUID string, fileID string) error
- func (c *ControlDBCli) DeleteDevice(ctx context.Context, clusterName string, deviceName string) error
- func (c *ControlDBCli) DeleteService(ctx context.Context, clusterName string, serviceName string) error
- func (c *ControlDBCli) DeleteServiceAttr(ctx context.Context, serviceUUID string) error
- func (c *ControlDBCli) DeleteServiceMember(ctx context.Context, serviceUUID string, memberIndex int64) error
- func (c *ControlDBCli) DeleteServiceStaticIP(ctx context.Context, staticIP string) error
- func (c *ControlDBCli) DeleteSystemTables(ctx context.Context) error
- func (c *ControlDBCli) GetConfigFile(ctx context.Context, serviceUUID string, fileID string) (cfg *common.ConfigFile, err error)
- func (c *ControlDBCli) GetDevice(ctx context.Context, clusterName string, deviceName string) (dev *common.Device, err error)
- func (c *ControlDBCli) GetService(ctx context.Context, clusterName string, serviceName string) (svc *common.Service, err error)
- func (c *ControlDBCli) GetServiceAttr(ctx context.Context, serviceUUID string) (attr *common.ServiceAttr, err error)
- func (c *ControlDBCli) GetServiceMember(ctx context.Context, serviceUUID string, memberIndex int64) (member *common.ServiceMember, err error)
- func (c *ControlDBCli) GetServiceStaticIP(ctx context.Context, staticIP string) (serviceip *common.ServiceStaticIP, err error)
- func (c *ControlDBCli) ListDevices(ctx context.Context, clusterName string) (devs []*common.Device, err error)
- func (c *ControlDBCli) ListServiceMembers(ctx context.Context, serviceUUID string) (members []*common.ServiceMember, err error)
- func (c *ControlDBCli) ListServices(ctx context.Context, clusterName string) (svcs []*common.Service, err error)
- func (c *ControlDBCli) SystemTablesReady(ctx context.Context) (tableStatus string, ready bool, err error)
- func (c *ControlDBCli) UpdateServiceAttr(ctx context.Context, oldAttr *common.ServiceAttr, newAttr *common.ServiceAttr) error
- func (c *ControlDBCli) UpdateServiceMember(ctx context.Context, oldMember *common.ServiceMember, ...) error
- func (c *ControlDBCli) UpdateServiceStaticIP(ctx context.Context, oldIP *common.ServiceStaticIP, ...) error
- type TestControlDBServer
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 (*ControlDBCli) CreateService ¶
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 (*ControlDBCli) DeleteDevice ¶
func (*ControlDBCli) DeleteService ¶
func (*ControlDBCli) DeleteServiceAttr ¶
func (c *ControlDBCli) DeleteServiceAttr(ctx context.Context, serviceUUID string) error
func (*ControlDBCli) DeleteServiceMember ¶
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) GetService ¶
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 (*ControlDBCli) ListServiceMembers ¶
func (c *ControlDBCli) ListServiceMembers(ctx context.Context, serviceUUID string) (members []*common.ServiceMember, err error)
func (*ControlDBCli) ListServices ¶
func (*ControlDBCli) SystemTablesReady ¶
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()
Click to show internal directories.
Click to hide internal directories.