Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Create(ctx context.Context, provider string, fromWorkspaces ...string) (string, error)
- func (c *Client) DeleteFile(ctx context.Context, id, file string) error
- func (c *Client) DeleteRevision(ctx context.Context, id, fileName, revision string) error
- func (c *Client) GetRevision(ctx context.Context, id, fileName, revision string) (io.ReadCloser, error)
- func (c *Client) ListRevisions(ctx context.Context, id, fileName string) ([]RevisionInfo, error)
- func (c *Client) Ls(ctx context.Context, id, prefix string) ([]string, error)
- func (c *Client) OpenFile(ctx context.Context, id, fileName string) (io.ReadCloser, error)
- func (c *Client) Providers() []string
- func (c *Client) RemoveAllWithPrefix(ctx context.Context, id, prefix string) error
- func (c *Client) Rm(ctx context.Context, id string) error
- func (c *Client) StatFile(ctx context.Context, id, fileName string) (FileInfo, error)
- func (c *Client) WriteFile(ctx context.Context, id, fileName string, reader io.Reader, ...) error
- type ConflictError
- type FileInfo
- type NotFoundError
- type Options
- type RevisionInfo
- type WriteOptions
Constants ¶
View Source
const ( DirectoryProvider = "directory" S3Provider = "s3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteRevision ¶
func (*Client) GetRevision ¶
func (*Client) ListRevisions ¶
func (*Client) RemoveAllWithPrefix ¶
type ConflictError ¶
type ConflictError struct {
// contains filtered or unexported fields
}
func (*ConflictError) Error ¶
func (e *ConflictError) Error() string
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type RevisionInfo ¶
type WriteOptions ¶
Click to show internal directories.
Click to hide internal directories.