bucket

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	AccessKey  string
	SecretKey  string
	Endpoint   string
	BucketName string
}

Credentials holds the credentials of bucket that needs to be cleared

func (*Credentials) ClearBucket

func (c *Credentials) ClearBucket() error

ClearBucket will delete the objects from your IBM Cloud COS Bucket

Parameters:

accessKey: The access key for authentication.
secretKey: The secret key for authentication.
endpoint: The endpoint URL of the bucket.
bucketName: The name of the bucket to clear.

Returns:

An error if the bucket clearing process encounters any issues, or nil if successful.

Jump to

Keyboard shortcuts

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