Documentation ¶
Index ¶
- Constants
- func DownloadBundle(ctx context.Context, req BundleReq) error
- func DownloadFile(ctx context.Context, src, dst, filename string, secretName string) error
- func DownloadFiles(ctx context.Context, src, dst string, secretName string) error
- func OpenBucket(ctx context.Context, bucketURL string, secretName string) (*blob.Bucket, error)
- func RemoveFile(ctx context.Context, bucket, key string, secretName string) error
- type BundleReq
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 DownloadBundle ¶ added in v0.1.27
func DownloadFile ¶ added in v0.1.18
func DownloadFiles ¶ added in v0.1.20
func OpenBucket ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.