Documentation ¶
Index ¶
- func NewTemp(cfg torus.Config) (torus.MetadataService, error)
- type Client
- func (t *Client) Close() error
- func (t *Client) CommitINodeIndex(vol torus.VolumeID) (torus.INodeID, error)
- func (t *Client) CreateVolume(volume *models.Volume) error
- func (t *Client) DeleteVolume(name string) error
- func (t *Client) GetData(x string) (interface{}, bool)
- func (t *Client) GetINodeIndex(volume torus.VolumeID) (torus.INodeID, error)
- func (t *Client) GetINodeIndexes() (map[torus.VolumeID]torus.INodeID, error)
- func (t *Client) GetLease() (int64, error)
- func (t *Client) GetPeers() (torus.PeerInfoList, error)
- func (t *Client) GetRing() (torus.Ring, error)
- func (t *Client) GetVolume(volume string) (*models.Volume, error)
- func (t *Client) GetVolumes() ([]*models.Volume, torus.VolumeID, error)
- func (t *Client) GlobalMetadata() (torus.GlobalMetadata, error)
- func (t *Client) Kind() torus.MetadataKind
- func (t *Client) LockData()
- func (t *Client) NewVolumeID() (torus.VolumeID, error)
- func (t *Client) RegisterPeer(_ int64, pi *models.PeerInfo) error
- func (t *Client) RenewLease(lease int64) error
- func (t *Client) SetData(x string, v interface{})
- func (t *Client) SetRing(ring torus.Ring) error
- func (t *Client) SubscribeNewRings(ch chan torus.Ring)
- func (t *Client) UUID() string
- func (t *Client) UnlockData()
- func (t *Client) UnsubscribeNewRings(ch chan torus.Ring)
- func (t *Client) WithContext(_ context.Context) torus.MetadataService
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CommitINodeIndex ¶
func (*Client) CreateVolume ¶ added in v0.1.0
func (*Client) DeleteVolume ¶ added in v0.1.0
func (*Client) GetINodeIndex ¶
func (*Client) GetINodeIndexes ¶
func (*Client) GlobalMetadata ¶
func (t *Client) GlobalMetadata() (torus.GlobalMetadata, error)
func (*Client) Kind ¶
func (t *Client) Kind() torus.MetadataKind
func (*Client) RenewLease ¶ added in v0.1.1
func (*Client) SubscribeNewRings ¶
func (*Client) UnlockData ¶
func (t *Client) UnlockData()
func (*Client) UnsubscribeNewRings ¶
func (*Client) WithContext ¶
func (t *Client) WithContext(_ context.Context) torus.MetadataService
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SubscribeNewRings ¶
func (*Server) UnsubscribeNewRings ¶
Click to show internal directories.
Click to hide internal directories.