Documentation ¶
Index ¶
- type EmptyResultErr
- type ResponseErr
- type SDK
- func (sdk SDK) BucketCORS(opts ...func(params *buckets.GetStorageBucketCORSHTTPParams)) (string, error)
- func (sdk SDK) BucketsList(opts ...func(params *buckets.StorageListBucketsHTTPParams)) ([]models.BucketDto, error)
- func (sdk SDK) CreateBucket(opts ...func(params *buckets.StorageBucketCreateHTTPParams)) error
- func (sdk SDK) CreateBucketCORS(opts ...func(params *buckets.StorageBucketCORSCreateHTTPParams)) error
- func (sdk SDK) CreateBucketLifecycle(opts ...func(params *buckets.StorageBucketLifecycleCreateHTTPParams)) error
- func (sdk SDK) CreateBucketPolicy(opts ...func(params *buckets.StorageBucketPolicyCreateHTTPParams)) error
- func (sdk SDK) CreateStorage(opts ...func(params *storages.StorageCreateHTTPParams)) (*models.Storage, error)
- func (sdk SDK) DeleteBucket(opts ...func(params *buckets.StorageBucketRemoveHTTPParams)) error
- func (sdk SDK) DeleteBucketLifecycle(opts ...func(params *buckets.StorageBucketLifecycleDeleteHTTPParams)) error
- func (sdk SDK) DeleteStorage(opts ...func(params *storages.StorageDeleteHTTPParams)) error
- func (sdk SDK) LocationsList(opts ...func(params *locations.LocationListHTTPParams)) ([]models.ClientLocationRes, error)
- func (sdk SDK) StoragesList(opts ...func(params *storages.StorageListHTTPV2Params)) ([]models.Storage, error)
- func (sdk SDK) UpdatestoragesCredentials(opts ...func(params *storages.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 EdgeCenter Storage API
func NewSDK ¶
NewSDK constructor of storage api swagger client wrapper see UI of your data here https://api.edgecenter.ru/storage apiHost = https://api.edgecenter.ru apiBasePath = /storage
func (SDK) BucketCORS ¶
func (sdk SDK) BucketCORS(opts ...func(params *buckets.GetStorageBucketCORSHTTPParams)) (string, error)
BucketCORS getter for EdgeCenter Storage API
func (SDK) BucketsList ¶
func (sdk SDK) BucketsList(opts ...func(params *buckets.StorageListBucketsHTTPParams)) ([]models.BucketDto, error)
BucketsList getter for EdgeCenter Storage API same result like on UI here https://https://api.edgecenter.ru/storage/bucket/{storageID}
func (SDK) CreateBucket ¶
func (sdk SDK) CreateBucket(opts ...func(params *buckets.StorageBucketCreateHTTPParams)) error
CreateBucket writer for EdgeCenter Storage API
func (SDK) CreateBucketCORS ¶
func (sdk SDK) CreateBucketCORS(opts ...func(params *buckets.StorageBucketCORSCreateHTTPParams)) error
CreateBucketCORS writer for EdgeCenter Storage API
func (SDK) CreateBucketLifecycle ¶
func (sdk SDK) CreateBucketLifecycle(opts ...func(params *buckets.StorageBucketLifecycleCreateHTTPParams)) error
CreateBucketLifecycle writer for EdgeCenter Storage API
func (SDK) CreateBucketPolicy ¶
func (sdk SDK) CreateBucketPolicy(opts ...func(params *buckets.StorageBucketPolicyCreateHTTPParams)) error
CreateBucketPolicy writer for EdgeCenter Storage API
func (SDK) CreateStorage ¶
func (sdk SDK) CreateStorage(opts ...func(params *storages.StorageCreateHTTPParams)) (*models.Storage, error)
CreateStorage writer for EdgeCenter Storage API
func (SDK) DeleteBucket ¶
func (sdk SDK) DeleteBucket(opts ...func(params *buckets.StorageBucketRemoveHTTPParams)) error
DeleteBucket writer for EdgeCenter Storage API
func (SDK) DeleteBucketLifecycle ¶
func (sdk SDK) DeleteBucketLifecycle(opts ...func(params *buckets.StorageBucketLifecycleDeleteHTTPParams)) error
DeleteBucketLifecycle writer for EdgeCenter Storage API
func (SDK) DeleteStorage ¶
func (sdk SDK) DeleteStorage(opts ...func(params *storages.StorageDeleteHTTPParams)) error
DeleteStorage writer for EdgeCenter Storage API be noticed that delete action is async in ec end service
func (SDK) LocationsList ¶ added in v0.2.0
func (sdk SDK) LocationsList(opts ...func(params *locations.LocationListHTTPParams)) ([]models.ClientLocationRes, error)
LocationsList getter for EdgeCenter Storage API
func (SDK) StoragesList ¶
func (sdk SDK) StoragesList(opts ...func(params *storages.StorageListHTTPV2Params)) ([]models.Storage, error)
StoragesList getter for EdgeCenter Storage API same result like on UI here https://api.edgecenter.ru/storage/list
func (SDK) UpdatestoragesCredentials ¶ added in v0.2.0
func (sdk SDK) UpdatestoragesCredentials( opts ...func(params *storages.StorageUpdateCredentialsHTTPParams)) (*models.Credentials, error)
UpdateStorageCredentials writer for EdgeCenter 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