Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) BucketExists(ctx context.Context, bucketName string) (bool, error)
- func (c *Client) CreateBucket(ctx context.Context, bucketName string, opts minio.MakeBucketOptions) error
- func (c *Client) DownloadFile(ctx context.Context, bucketName string, objectName string, filePath string) error
- func (c *Client) FileExists(ctx context.Context, bucketName string, objectName string) (bool, error)
- func (c *Client) GetFileURL(ctx context.Context, bucketName string, objectName string) (*url.URL, error)
- func (c *Client) ListFiles(ctx context.Context, bucketName string) ([]string, error)
- func (c *Client) RemoveBucket(ctx context.Context, bucketName string) error
- func (c *Client) RemoveFile(ctx context.Context, bucketName string, objectName string) error
- func (c *Client) UploadFile(ctx context.Context, bucketName string, objectName string, ...) error
- type CreateBucketError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnectionFailed = errors.New("connection to S3 failed")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BucketExists ¶
BucketExists checks if a bucket exists with context
func (*Client) CreateBucket ¶
func (c *Client) CreateBucket(ctx context.Context, bucketName string, opts minio.MakeBucketOptions) error
CreateBucket creates a bucket with context
func (*Client) DownloadFile ¶
func (c *Client) DownloadFile(ctx context.Context, bucketName string, objectName string, filePath string) error
DownloadFile downloads a file from S3 with context
func (*Client) FileExists ¶
func (c *Client) FileExists(ctx context.Context, bucketName string, objectName string) (bool, error)
FileExists checks if a file exists with context
func (*Client) GetFileURL ¶
func (c *Client) GetFileURL(ctx context.Context, bucketName string, objectName string) (*url.URL, error)
GetFileURL returns a URL for a file with context
func (*Client) RemoveBucket ¶
RemoveBucket removes a bucket with context
func (*Client) RemoveFile ¶
RemoveFile removes a file from S3 with context
type CreateBucketError ¶
func (CreateBucketError) Error ¶
func (e CreateBucketError) Error() string
Click to show internal directories.
Click to hide internal directories.