Documentation
¶
Index ¶
- type Client
- func (cl *Client) Config(ctx context.Context) (*config.Config, error)
- func (cl *Client) CreateFile(ctx context.Context, key string, r io.ReadCloser, rep int) error
- func (cl *Client) CreateReplica(ctx context.Context, key string, reader io.ReadCloser) (string, error)
- func (cl *Client) DeleteFile(ctx context.Context, key string) error
- func (cl *Client) GetFile(ctx context.Context, key string) (io.ReadCloser, error)
- func (cl *Client) HasFile(ctx context.Context, key string) (string, bool, error)
- func (cl *Client) UpdateFileReplica(ctx context.Context, key string, vids []string, replica int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client structure that fulfills the storing.Service interface and it's ment to be used to access to a remote node
func (*Client) CreateFile ¶
CreateFile creates a file with the given key and the r content with rep replicas
func (*Client) CreateReplica ¶
func (cl *Client) CreateReplica(ctx context.Context, key string, reader io.ReadCloser) (string, error)
CreateReplica creates a new replica to the Node
func (*Client) DeleteFile ¶
DeleteFile deletes the file with the given key
Click to show internal directories.
Click to hide internal directories.