Documentation ¶
Index ¶
- type EmptyResultErr
- type ResponseErr
- type SDK
- func (sdk SDK) BucketCORS(opts ...func(params *storage.GetStorageBucketCORSHTTPParams)) (string, error)
- func (sdk SDK) BucketsList(opts ...func(params *storage.StorageListBucketsHTTPParams)) ([]models.BucketDto, error)
- func (sdk SDK) CreateBucket(opts ...func(params *storage.StorageBucketCreateHTTPParams)) error
- func (sdk SDK) CreateBucketCORS(opts ...func(params *storage.StorageBucketCORSCreateHTTPParams)) error
- func (sdk SDK) CreateBucketLifecycle(opts ...func(params *storage.StorageBucketLifecycleCreateHTTPParams)) error
- func (sdk SDK) CreateBucketPolicy(opts ...func(params *storage.StorageBucketPolicyCreateHTTPParams)) error
- func (sdk SDK) CreateKey(opts ...func(*key.KeyCreateHTTPParams)) (*models.Key, error)
- func (sdk SDK) CreateStorage(opts ...func(params *storage.StorageCreateHTTPParams)) (*models.Storage, error)
- func (sdk SDK) DeleteBucket(opts ...func(params *storage.StorageBucketRemoveHTTPParams)) error
- func (sdk SDK) DeleteBucketLifecycle(opts ...func(params *storage.StorageBucketLifecycleDeleteHTTPParams)) error
- func (sdk SDK) DeleteKey(opts ...func(*key.KeyDeleteHTTPParams)) error
- func (sdk SDK) DeleteStorage(opts ...func(params *storage.StorageDeleteHTTPParams)) error
- func (sdk SDK) KeysList(opts ...func(*key.KeyListHTTPV2Params)) ([]models.Key, error)
- func (sdk SDK) LinkKeyToStorage(opts ...func(params *storage.KeyLinkHTTPParams)) error
- func (sdk SDK) ModifyStorage(opts ...func(params *storage.StorageUpdateHTTPParams)) (*models.Storage, error)
- func (sdk SDK) StoragesList(opts ...func(params *storage.StorageListHTTPV2Params)) ([]models.Storage, error)
- func (sdk SDK) UnlinkKeyFromStorage(opts ...func(params *storage.KeyUnlinkHTTPParams)) error
- func (sdk SDK) UpdateStorageCredentials(opts ...func(params *storage.StorageUpdateCredentialsHTTPParams)) (*models.Credentials, error)
- type SdkOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDK ¶
type SDK struct {
// contains filtered or unexported fields
}
SDK for g-core storage api
func NewSDK ¶
NewSDK constructor of storage api swagger client wrapper see UI of your data here https://api.gcorelabs.com/storage apiHost = https://api.gcorelabs.com apiBasePath = /storage
func (SDK) BucketCORS ¶
func (sdk SDK) BucketCORS(opts ...func(params *storage.GetStorageBucketCORSHTTPParams)) (string, error)
BucketCORS getter for g-core storage api
func (SDK) BucketsList ¶
func (sdk SDK) BucketsList(opts ...func(params *storage.StorageListBucketsHTTPParams)) ([]models.BucketDto, error)
BucketsList getter for g-core storage api same result like on UI here https://storage.gcorelabs.com/bucket/{storageID}
func (SDK) CreateBucket ¶
func (sdk SDK) CreateBucket(opts ...func(params *storage.StorageBucketCreateHTTPParams)) error
CreateBucket writer for g-core storage api
func (SDK) CreateBucketCORS ¶
func (sdk SDK) CreateBucketCORS(opts ...func(params *storage.StorageBucketCORSCreateHTTPParams)) error
CreateBucketCORS writer for g-core storage api
func (SDK) CreateBucketLifecycle ¶
func (sdk SDK) CreateBucketLifecycle(opts ...func(params *storage.StorageBucketLifecycleCreateHTTPParams)) error
CreateBucketLifecycle writer for g-core storage api
func (SDK) CreateBucketPolicy ¶
func (sdk SDK) CreateBucketPolicy(opts ...func(params *storage.StorageBucketPolicyCreateHTTPParams)) error
CreateBucketPolicy writer for g-core storage api
func (SDK) CreateKey ¶
func (sdk SDK) CreateKey(opts ...func(*key.KeyCreateHTTPParams)) (*models.Key, error)
CreateKey writer for g-core storage api
func (SDK) CreateStorage ¶
func (sdk SDK) CreateStorage(opts ...func(params *storage.StorageCreateHTTPParams)) (*models.Storage, error)
CreateStorage writer for g-core storage api
func (SDK) DeleteBucket ¶
func (sdk SDK) DeleteBucket(opts ...func(params *storage.StorageBucketRemoveHTTPParams)) error
DeleteBucket writer for g-core storage api
func (SDK) DeleteBucketLifecycle ¶
func (sdk SDK) DeleteBucketLifecycle(opts ...func(params *storage.StorageBucketLifecycleDeleteHTTPParams)) error
DeleteBucketLifecycle writer for g-core storage api
func (SDK) DeleteKey ¶
func (sdk SDK) DeleteKey(opts ...func(*key.KeyDeleteHTTPParams)) error
DeleteKey writer for g-core storage api
func (SDK) DeleteStorage ¶
func (sdk SDK) DeleteStorage(opts ...func(params *storage.StorageDeleteHTTPParams)) error
DeleteStorage writer for g-core storage api be noticed that delete action is async in g-core end service
func (SDK) KeysList ¶
func (sdk SDK) KeysList(opts ...func(*key.KeyListHTTPV2Params)) ([]models.Key, error)
KeysList getter for g-core storage api same result like on UI here https://storage.gcorelabs.com/ssh-key/list
func (SDK) LinkKeyToStorage ¶
func (sdk SDK) LinkKeyToStorage(opts ...func(params *storage.KeyLinkHTTPParams)) error
LinkKeyToStorage writer for g-core storage api
func (SDK) ModifyStorage ¶
func (sdk SDK) ModifyStorage(opts ...func(params *storage.StorageUpdateHTTPParams)) (*models.Storage, error)
ModifyStorage writer for g-core storage api
func (SDK) StoragesList ¶
func (sdk SDK) StoragesList(opts ...func(params *storage.StorageListHTTPV2Params)) ([]models.Storage, error)
StoragesList getter for g-core storage api same result like on UI here https://storage.gcorelabs.com/storage/list
func (SDK) UnlinkKeyFromStorage ¶
func (sdk SDK) UnlinkKeyFromStorage(opts ...func(params *storage.KeyUnlinkHTTPParams)) error
UnlinkKeyFromStorage writer for g-core storage api
func (SDK) UpdateStorageCredentials ¶
func (sdk SDK) UpdateStorageCredentials( opts ...func(params *storage.StorageUpdateCredentialsHTTPParams)) (*models.Credentials, error)
UpdateStorageCredentials writer for g-core storage api
type SdkOpt ¶
type SdkOpt func(sdk *apiCore)
SdkOpt is optional arg for setup apiCore
func WithBearerAuth ¶
WithBearerAuth opt to setup SDK authWriter
func WithPermanentTokenAuth ¶
WithPermanentTokenAuth opt to setup SDK authWriter