Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) DeleteSnapshot(ctx context.Context, key string) error
- func (c *Client) Download(ctx context.Context, snapshotName, snapshotDir string) (string, error)
- func (c *Client) ListSnapshots(ctx context.Context) (map[string]snapshot.File, error)
- func (c *Client) SnapshotRetention(ctx context.Context, retention int, prefix string) ([]string, error)
- func (c *Client) Upload(ctx context.Context, snapshotPath string, extraMetadata *v1.ConfigMap, ...) (*snapshot.File, error)
- type Controller
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConfigSecret = errNoConfigSecret()
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds state for a given configuration - a preconfigured minio client, and reference to the config it was created for.
func (*Client) DeleteSnapshot ¶
DeleteSnapshot deletes the selected snapshot (and its metadata) from S3
func (*Client) Download ¶
Download downloads the given snapshot from the configured S3 compatible backend. If the file is successfully downloaded, it returns the path the file was downloaded to.
func (*Client) ListSnapshots ¶
listSnapshots provides a list of currently stored snapshots in S3 along with their relevant metadata.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller maintains state for S3 functionality, and can be used to get clients for interacting with an S3 service, given specific client configuration.
Click to show internal directories.
Click to hide internal directories.