Documentation ¶
Index ¶
- type Client
- func (c *Client) Archive(ctx context.Context, key string) (*pb.ArchiveReply, error)
- func (c *Client) ArchiveInfo(ctx context.Context, key string) (*pb.ArchiveInfoReply, error)
- func (c *Client) ArchiveStatus(ctx context.Context, key string) (*pb.ArchiveStatusReply, error)
- func (c *Client) ArchiveWatch(ctx context.Context, key string, ch chan<- string) error
- func (c *Client) Close() error
- func (c *Client) Init(ctx context.Context, name string) (*pb.InitReply, error)
- func (c *Client) Links(ctx context.Context, key string) (*pb.LinksReply, error)
- func (c *Client) List(ctx context.Context) (*pb.ListReply, error)
- func (c *Client) ListPath(ctx context.Context, key, pth string) (*pb.ListPathReply, error)
- func (c *Client) PullPath(ctx context.Context, key, pth string, writer io.Writer, opts ...Option) error
- func (c *Client) PushPath(ctx context.Context, key, pth string, reader io.Reader, opts ...Option) (result path.Resolved, root path.Resolved, err error)
- func (c *Client) Remove(ctx context.Context, key string) error
- func (c *Client) RemovePath(ctx context.Context, key, pth string, opts ...Option) (path.Resolved, error)
- type Option
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 provides the client api.
func NewClient ¶
func NewClient(target string, opts ...grpc.DialOption) (*Client, error)
NewClient starts the client.
func (*Client) ArchiveInfo ¶ added in v1.0.4
func (*Client) ArchiveStatus ¶ added in v1.0.4
func (*Client) ArchiveWatch ¶ added in v1.0.4
func (*Client) Init ¶
Init initializes a new bucket. The bucket name is only meant to help identify a bucket in a UI and is not unique.
func (*Client) PullPath ¶
func (c *Client) PullPath(ctx context.Context, key, pth string, writer io.Writer, opts ...Option) error
PullPath pulls the bucket path, writing it to writer if it's a file.
func (*Client) PushPath ¶
func (c *Client) PushPath(ctx context.Context, key, pth string, reader io.Reader, opts ...Option) (result path.Resolved, root path.Resolved, err error)
PushPath pushes a file to a bucket path. This will return the resolved path and the bucket's new root path.
type Option ¶
type Option func(*options)
func WithFastForwardOnly ¶ added in v1.0.4
WithFastForwardOnly instructs the remote to reject non-fast-forward updates by comparing root with the remote.
func WithProgress ¶
WithProgress writes progress updates to the given channel.
Click to show internal directories.
Click to hide internal directories.