bucket

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWS   = "s3"
	GCP   = "gs"
	AZURE = "azblob"
)

Blob storage types

View Source
const (
	S3AccessKeyID        = "access-key-id"
	S3SecretAccessKey    = "secret-access-key"
	S3Region             = "region"
	S3EnvAccessKeyID     = "AWS_ACCESS_KEY_ID"
	S3EnvSecretAccessKey = "AWS_SECRET_ACCESS_KEY"
	S3EnvRegion          = "AWS_REGION"
)

AWS

View Source
const (
	AzureStorageAccount    = "storage-account"
	AzureStorageKey        = "storage-key"
	AzureEnvStorageAccount = "AZURE_STORAGE_ACCOUNT"
	AzureEnvStorageKey     = "AZURE_STORAGE_KEY"
)

Azure

View Source
const (
	GCPCredentialFile = "google-credentials-path"
)

GCP

Variables

This section is empty.

Functions

func DownloadClassJars added in v0.1.18

func DownloadClassJars(ctx context.Context, src, dst string, secretData map[string][]byte) error

func DownloadFile added in v0.1.18

func DownloadFile(ctx context.Context, src, dst, jarName string, secretData map[string][]byte) error

func OpenBucket

func OpenBucket(ctx context.Context, bucketURL string, secretData map[string][]byte) (*blob.Bucket, error)

func SaveFileFromBucket

func SaveFileFromBucket(ctx context.Context, bucket *blob.Bucket, key, path string) error

func SecretData

func SecretData(ctx context.Context, sn string) (map[string][]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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