abs

package
v1.26.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Provider = "azure"

Variables

This section is empty.

Functions

func GetFileAttributes added in v1.8.0

func GetFileAttributes(ctx context.Context, params *DownloadParams, slice string, transport http.RoundTripper) (*blob.Attributes, error)

func NewDownloadReader added in v1.4.0

func NewDownloadReader(ctx context.Context, params *DownloadParams, slice string, transport http.RoundTripper) (*blob.Reader, error)

func NewSliceURL

func NewSliceURL(params *UploadParams, slice string) string

func NewUploadWriter

func NewUploadWriter(ctx context.Context, params *UploadParams, slice string, transport http.RoundTripper) (*blob.Writer, error)

Types

type ConnectionString

type ConnectionString struct {
	BlobEndpoint          string
	SharedAccessSignature string
}

func (*ConnectionString) ForContainer added in v1.15.0

func (cs *ConnectionString) ForContainer(container string) string

type Credentials

type Credentials struct {
	SASConnectionString string       `json:"SASConnectionString"`
	Expiration          iso8601.Time `json:"expiration"`
}

type DownloadParams added in v1.4.0

type DownloadParams struct {
	Credentials Credentials `json:"absCredentials"`
	Path        struct {
		BlobName  string `json:"name"`
		Container string `json:"container"`
	} `json:"absPath"`
}

func (*DownloadParams) DestinationURL added in v1.6.0

func (p *DownloadParams) DestinationURL() (string, error)

type UploadParams

type UploadParams struct {
	BlobName    string      `json:"blobName"`
	AccountName string      `json:"accountName"`
	Container   string      `json:"container"`
	Credentials Credentials `json:"absCredentials"`
}

Jump to

Keyboard shortcuts

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