Documentation ¶
Index ¶
- func NewEtcdEmbedConfig(ctx *Context) (*embed.Config, error)
- type Client
- func (c *Client) Close()
- func (c *Client) GetBackupMeta(key polypb.BackupMetaKey) (polypb.BackupMetaSlice, error)
- func (c *Client) GetNodeMeta(key polypb.NodeMetaKey) ([]*polypb.NodeMeta, error)
- func (c *Client) PutBackupMeta(key polypb.BackupMetaKey, meta *polypb.BackupMeta) error
- func (c *Client) PutNodeMeta(key polypb.NodeMetaKey, meta *polypb.NodeMeta) error
- func (c *Client) RemoveBackupMeta(key polypb.BackupMetaKey) error
- func (c *Client) RemoveNodeMeta(key polypb.NodeMetaKey) error
- type ClientAPI
- type Context
- type EtcdServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBackupMeta ¶
func (c *Client) GetBackupMeta(key polypb.BackupMetaKey) (polypb.BackupMetaSlice, error)
func (*Client) GetNodeMeta ¶
func (*Client) PutBackupMeta ¶
func (c *Client) PutBackupMeta(key polypb.BackupMetaKey, meta *polypb.BackupMeta) error
func (*Client) PutNodeMeta ¶
func (*Client) RemoveBackupMeta ¶
func (c *Client) RemoveBackupMeta(key polypb.BackupMetaKey) error
func (*Client) RemoveNodeMeta ¶
func (c *Client) RemoveNodeMeta(key polypb.NodeMetaKey) error
type ClientAPI ¶
type ClientAPI interface { GetBackupMeta(key polypb.BackupMetaKey) (polypb.BackupMetaSlice, error) PutBackupMeta(key polypb.BackupMetaKey, meta *polypb.BackupMeta) error RemoveBackupMeta(key polypb.BackupMetaKey) error GetNodeMeta(key polypb.NodeMetaKey) ([]*polypb.NodeMeta, error) PutNodeMeta(key polypb.NodeMetaKey, meta *polypb.NodeMeta) error RemoveNodeMeta(key polypb.NodeMetaKey) error Close() }
type Context ¶
type EtcdServer ¶
type EtcdServer struct { Server *embed.Etcd ClientPort string // contains filtered or unexported fields }
func NewEtcdServer ¶
func NewEtcdServer(cfg *embed.Config) (*EtcdServer, error)
func (*EtcdServer) Close ¶
func (e *EtcdServer) Close()
Click to show internal directories.
Click to hide internal directories.