Documentation ¶
Index ¶
- type API
- func (a *API) CheckBucketExists(bucketName string) (bool, error)
- func (a *API) CopyObject(srcBucket, srcName, destBucket string) error
- func (a *API) CreateBucket(bucketName string) error
- func (a *API) CreateCloudObjectStorageInstance(storageName string, resourceGroup string) (string, error)
- func (a *API) ListCloudObjectStorageInstances() (map[string]string, error)
- func (a *API) NewS3Client(cloudObjectStorageName, region string) (err error)
- func (a *API) UploadObject(r io.Reader, objectName, bucketName string, force bool) error
- type Client
- type Options
- type S3Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) CheckBucketExists ¶
CheckBucketExists will verify the existence of the bucket for the particular account in the particular cloud object storage instance
func (*API) CopyObject ¶
CopyObject - Copy an Object to a new location
func (*API) CreateBucket ¶
CreateBucket creates a new bucket in the provided cloud object storage instance
func (*API) CreateCloudObjectStorageInstance ¶
func (a *API) CreateCloudObjectStorageInstance(storageName string, resourceGroup string) (string, error)
CreateCloudObjectStorageInstance creates a cloud object storage instance
func (*API) ListCloudObjectStorageInstances ¶
ListCloudObjectStorageInstances list all available cloud object storage instances of particular servicetype
func (*API) NewS3Client ¶
NewS3Client accepts apikey, instanceid of the IBM Cloud Object Storage instance and returns the s3 client
type Client ¶
type Client struct { *bluemixsession.Session ResourceClientV2 controllerv2.ResourceServiceInstanceRepository ResourceClientV1 controller.ResourceServiceInstanceRepository ResourceServiceKey controller.ResourceServiceKeyRepository ResCatalogAPI catalog.ResourceCatalogRepository ResGroupAPI management.ResourceGroupRepository }
Client used to interact with the IBMCloud apis
Click to show internal directories.
Click to hide internal directories.