storage

package
v0.0.0-...-de23339 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(c *http.Client, url string, token string) *Client

func (*Client) CreateBucket

func (c *Client) CreateBucket(ctx context.Context, request RequestBucket) error

func (*Client) CreateObject

func (c *Client) CreateObject(ctx context.Context, fileOps *contracts.FileOps, bucketName, objectKey string) error

func (*Client) DeleteBucket

func (c *Client) DeleteBucket(ctx context.Context, name string) error

func (*Client) DeleteObject

func (c *Client) DeleteObject(ctx context.Context, bucketName, objectKey string) error

func (*Client) GetObject

func (c *Client) GetObject(ctx context.Context, bucketName, objectKey string) ([]byte, error)

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 (c *Client) UpdateBucket(ctx context.Context, name string, edgeAccess sdk.EdgeAccessEnum) error

func (*Client) UpdateObject

func (c *Client) UpdateObject(ctx context.Context, bucketName, objectKey, contentType string, body *os.File) error

func (*Client) Upload

type RequestBucket

type RequestBucket struct {
	sdk.BucketCreate
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL