storage

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) CreateCredentials

func (c *Client) CreateCredentials(ctx context.Context, request RequestCredentials) (*sdk.CredentialResponse, 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.ResponseBucketObject, error)

func (*Client) UpdateBucket

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

func (*Client) UpdateObject

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

func (*Client) Upload

func (c *Client) Upload(ctx context.Context, fileOps *contracts.FileOps, conf *contracts.AzionApplicationOptions, bucket string) error

type RequestBucket

type RequestBucket struct {
	sdk.BucketCreateRequest
}

type RequestCredentials

type RequestCredentials struct {
	sdk.CredentialCreateRequest
}

Jump to

Keyboard shortcuts

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