azure

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 8 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 New

func New(containerName string, azureSecret SecretAzure) (*Client, error)

func (*Client) Delete

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

func (*Client) Get

func (c *Client) Get(ctx context.Context, blobName string, wr io.Writer) error

func (*Client) GetURL

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

func (*Client) Put

func (c *Client) Put(ctx context.Context, blobName string, data io.Reader, size int64) error

func (*Client) Stat

func (c *Client) Stat(ctx context.Context, blobName string) (bool, error)

type SecretAzure

type SecretAzure struct {
	AccessToken     string    `json:"accessToken"`
	ExpiryTimestamp time.Time `json:"expiryTimeStamp"`
}

Jump to

Keyboard shortcuts

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