Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateBucket(ctx context.Context, request RequestBucket) error
- func (c *Client) CreateCredentials(ctx context.Context, request RequestCredentials) (*sdk.ResponseS3Credential, error)
- func (c *Client) CreateObject(ctx context.Context, fileOps *contracts.FileOps, bucketName, objectKey string) error
- func (c *Client) DeleteBucket(ctx context.Context, name string) error
- func (c *Client) DeleteObject(ctx context.Context, bucketName, objectKey string) error
- func (c *Client) GetObject(ctx context.Context, bucketName, objectKey string) ([]byte, error)
- func (c *Client) ListBucket(ctx context.Context, opts *contracts.ListOptions) (*sdk.PaginatedBucketList, error)
- func (c *Client) ListObject(ctx context.Context, bucketName string, opts *contracts.ListOptions) (*sdk.PaginatedBucketObjectList, error)
- func (c *Client) UpdateBucket(ctx context.Context, name string, edgeAccess sdk.EdgeAccessEnum) error
- func (c *Client) UpdateObject(ctx context.Context, bucketName, objectKey, contentType string, body *os.File) error
- func (c *Client) Upload(ctx context.Context, fileOps *contracts.FileOps, ...) error
- type RequestBucket
- type RequestCredentials
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
}
func (*Client) CreateBucket ¶
func (c *Client) CreateBucket(ctx context.Context, request RequestBucket) error
func (*Client) CreateCredentials ¶
func (c *Client) CreateCredentials(ctx context.Context, request RequestCredentials) (*sdk.ResponseS3Credential, error)
func (*Client) CreateObject ¶
func (*Client) DeleteObject ¶
func (*Client) ListBucket ¶
func (c *Client) ListBucket(ctx context.Context, opts *contracts.ListOptions) (*sdk.PaginatedBucketList, error)
func (*Client) ListObject ¶
func (c *Client) ListObject(ctx context.Context, bucketName string, opts *contracts.ListOptions) (*sdk.PaginatedBucketObjectList, error)
func (*Client) UpdateBucket ¶
func (*Client) UpdateObject ¶
type RequestBucket ¶
type RequestBucket struct {
sdk.BucketCreate
}
type RequestCredentials ¶
type RequestCredentials struct {
sdk.S3CredentialCreate
}
Click to show internal directories.
Click to hide internal directories.