Documentation
¶
Index ¶
- Constants
- func DownloadClassJars(ctx context.Context, src, dst string, secretData map[string][]byte) error
- func DownloadFile(ctx context.Context, src, dst, jarName string, secretData map[string][]byte) error
- func OpenBucket(ctx context.Context, bucketURL string, secretData map[string][]byte) (*blob.Bucket, error)
- func SaveFileFromBucket(ctx context.Context, bucket *blob.Bucket, key, path string) error
- func SecretData(ctx context.Context, sn string) (map[string][]byte, error)
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 DownloadFile ¶ added in v0.1.18
func OpenBucket ¶
func SaveFileFromBucket ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.