blob

package
v3.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWS

func AWS(ctx context.Context, bucket string, conf *aws.Config) (*blob.Bucket, error)

func Azure added in v3.16.2

func Azure(ctx context.Context, accountName, containerName string) (*blob.Bucket, error)

Azure returns an open bucket that is connected to container containerName in storage account accountName.

func GCP

func GCP(ctx context.Context, bucket string, jsonCredentials []byte) (*blob.Bucket, error)

func Local

func Local(_ context.Context, bucket, path string) (*blob.Bucket, error)

func WriterOptions

func WriterOptions(contentType string, kv ...string) *blob.WriterOptions

WriterOptions returns WriterOptions with the given content type and metadata from the given key-value pairs.

Types

type ClientID added in v3.16.2

type ClientID string

ClientID represents the client ID, which is a specifier of particular identity to use when many are available.

Jump to

Keyboard shortcuts

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