Documentation
¶
Index ¶
- func CheckBucketExistence(ctx context.Context, client *storage.Client, bucketName string) error
- func CheckObjectExistence(ctx context.Context, client *storage.Client, bucketName, objectName string) error
- func CloseClient(client *storage.Client)
- func CreateBucket(ctx context.Context, client *storage.Client, ...) error
- func DeleteBucket(ctx context.Context, client *storage.Client, bucketName string) error
- func DeleteObject(ctx context.Context, client *storage.Client, bucketName, objectName string) error
- func DownloadObject(ctx context.Context, client *storage.Client, bucketName, objectName string) ([]byte, error)
- func GetBucketMetadata(ctx context.Context, client *storage.Client, bucketName string) (*storage.BucketAttrs, error)
- func GetObjectMetadata(ctx context.Context, client *storage.Client, bucketName, objectName string) (*storage.ObjectAttrs, error)
- func ListBuckets(ctx context.Context, client *storage.Client, projectId string) error
- func ListObjects(ctx context.Context, client *storage.Client, bucketName string) error
- func NewClient(ctx context.Context) (*storage.Client, error)
- func PrintBucketMetadata(attrs *storage.BucketAttrs)
- func PrintObjectMetadata(attrs *storage.ObjectAttrs)
- func UploadObject(ctx context.Context, client *storage.Client, bucketName, objectName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBucketExistence ¶
func CheckObjectExistence ¶
func CloseClient ¶
func CreateBucket ¶
func DeleteBucket ¶
func DeleteObject ¶
func DownloadObject ¶
func GetBucketMetadata ¶
func GetObjectMetadata ¶
func ListBuckets ¶
func ListObjects ¶
func PrintBucketMetadata ¶
func PrintBucketMetadata(attrs *storage.BucketAttrs)
func PrintObjectMetadata ¶
func PrintObjectMetadata(attrs *storage.ObjectAttrs)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.