azure

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 6 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(config Config) (*Client, error)

func (*Client) BucketExists

func (c *Client) BucketExists(ctx context.Context, containerName string) (bool, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) DeleteObject

func (c *Client) DeleteObject(ctx context.Context, containerName, blobName string) error

func (*Client) EnsureBucketExists

func (c *Client) EnsureBucketExists(ctx context.Context, containerName string) error

func (*Client) GetObject

func (c *Client) GetObject(ctx context.Context, containerName, blobName string) (*interfaces.ObjectInfo, io.ReadCloser, error)

func (*Client) ListObjects

func (c *Client) ListObjects(ctx context.Context, containerName string) (map[string]*interfaces.ObjectInfo, error)

func (*Client) UploadObject

func (c *Client) UploadObject(ctx context.Context, containerName, blobName string, reader io.Reader, size int64, contentType string) (*interfaces.UploadInfo, error)

type Config

type Config struct {
	AccountName string
	AccountKey  string
	EndpointURL string
}

Jump to

Keyboard shortcuts

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