Documentation ¶
Index ¶
- Variables
- func AttachKeyToBucket(storageKey *StorageTypes.BucketAccessKeyItem, bucket string) (bool, error)
- func CreateAccessKey(accessKeyTag string) (*StorageTypes.BucketAccessKeyItem, error)
- func CreateBucket(bucketName string) (*StorageTypes.Bucket, error)
- func DeleteAccessKey(accessKeyId string) (bool, error)
- func DeleteBucket(bucketName string) error
- func DeleteFile(bucketName string, srcPath string, accessKeyId string, accessKeySecret string) (bool, error)
- func DownloadFile(bucketName string, srcPath string, destPath string, accessKeyId string, ...) (string, error)
- func ListAccessKeys() (*[]StorageTypes.BucketAccessKeyItem, error)
- func ListBuckets() ([]StorageTypes.Bucket, error)
- func LockUnlockAccessKey(accessKeyId string, desiredState string) (bool, error)
- func UploadFile(filePath string, bucket string, destKey string, accessKeyId string, ...) (*minio.UploadInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( E2EStorageUrl = "objectstore.e2enetworks.net" E2EAccessKeyId = os.Getenv("E2E_ACCESS_KEY_ID") E2ESecretAccessKey = os.Getenv("E2E_SECRET_ACCESS_KEY") )
Functions ¶
func AttachKeyToBucket ¶
func AttachKeyToBucket(storageKey *StorageTypes.BucketAccessKeyItem, bucket string) (bool, error)
AttachKeyToBucket attaches an access key with a set of permissions to a bucket
func CreateAccessKey ¶
func CreateAccessKey(accessKeyTag string) (*StorageTypes.BucketAccessKeyItem, error)
CreateAccessKey creates an AWS S3-style access key pair to access a bucket
func CreateBucket ¶
func CreateBucket(bucketName string) (*StorageTypes.Bucket, error)
CreateBucket creates a bucket
func DeleteAccessKey ¶
DeleteAccessKey deletes an Access keypair
func DeleteFile ¶
func DeleteFile(bucketName string, srcPath string, accessKeyId string, accessKeySecret string) (bool, error)
DeleteFile deletes a file from a bucket
func DownloadFile ¶
func DownloadFile(bucketName string, srcPath string, destPath string, accessKeyId string, accessKeySecret string) (string, error)
DownloadFile downloads the given file from a bucket
func ListAccessKeys ¶
func ListAccessKeys() (*[]StorageTypes.BucketAccessKeyItem, error)
ListAccessKeys lists all access keys you have
func ListBuckets ¶
func ListBuckets() ([]StorageTypes.Bucket, error)
ListBuckets lists all buckets you have
func LockUnlockAccessKey ¶
LockUnlockAccessKey locks or unlocks an access key pair
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.