Documentation
¶
Index ¶
- type AlertPoliciesInterface
- func (_m *AlertPoliciesInterface) Create(ctx context.Context, payload model.AlertPolicy) (*model.AlertPolicy, error)
- func (_m *AlertPoliciesInterface) Delete(ctx context.Context, policyName string) error
- func (_m *AlertPoliciesInterface) Get(ctx context.Context, policyName string) (*model.AlertPolicy, error)
- func (_m *AlertPoliciesInterface) List(ctx context.Context, params map[string]string) (*model.AlertPolicies, error)
- func (_m *AlertPoliciesInterface) Update(ctx context.Context, payload model.AlertPolicy, policyName string) (*model.AlertPolicy, error)
- type BucketsInterface
- func (_m *BucketsInterface) Create(ctx context.Context, createParam model.Bucket) (*model.Bucket, error)
- func (_m *BucketsInterface) Delete(ctx context.Context, name string, namespace string, emptyBucket bool) error
- func (_m *BucketsInterface) DeletePolicy(ctx context.Context, bucketName string, param map[string]string) error
- func (_m *BucketsInterface) DeleteQuota(ctx context.Context, bucketName string, namespace string) error
- func (_m *BucketsInterface) Get(ctx context.Context, name string, params map[string]string) (*model.Bucket, error)
- func (_m *BucketsInterface) GetPolicy(ctx context.Context, bucketName string, param map[string]string) (string, error)
- func (_m *BucketsInterface) GetQuota(ctx context.Context, bucketName string, namespace string) (*model.BucketQuotaInfo, error)
- func (_m *BucketsInterface) List(ctx context.Context, params map[string]string) (*model.BucketList, error)
- func (_m *BucketsInterface) UpdatePolicy(ctx context.Context, bucketName string, policy string, param map[string]string) error
- func (_m *BucketsInterface) UpdateQuota(ctx context.Context, bucketQuota model.BucketQuotaUpdate) error
- type CRRInterface
- func (_m *CRRInterface) Get(ctx context.Context, destObjectScale string, destObjectStore string, ...) (*model.CRR, error)
- func (_m *CRRInterface) PauseReplication(ctx context.Context, destObjectScale string, destObjectStore string, ...) error
- func (_m *CRRInterface) ResumeReplication(ctx context.Context, destObjectScale string, destObjectStore string, ...) error
- func (_m *CRRInterface) SuspendReplication(ctx context.Context, destObjectScale string, destObjectStore string, ...) error
- func (_m *CRRInterface) ThrottleReplication(ctx context.Context, destObjectScale string, destObjectStore string, ...) error
- func (_m *CRRInterface) UnthrottleReplication(ctx context.Context, destObjectScale string, destObjectStore string, ...) error
- type ClientSet
- func (_m *ClientSet) AlertPolicies() api.AlertPoliciesInterface
- func (_m *ClientSet) Buckets() api.BucketsInterface
- func (_m *ClientSet) CRR() api.CRRInterface
- func (_m *ClientSet) FederatedObjectStores() api.FederatedObjectStoresInterface
- func (_m *ClientSet) ObjectMt() api.ObjmtInterface
- func (_m *ClientSet) ObjectUser() api.ObjectUserInterface
- func (_m *ClientSet) Status() api.StatusInterface
- func (_m *ClientSet) Tenants() api.TenantsInterface
- type FederatedObjectStoresInterface
- type ObjectUserInterface
- func (_m *ObjectUserInterface) CreateSecret(ctx context.Context, uid string, req model.ObjectUserSecretKeyCreateReq, ...) (*model.ObjectUserSecretKeyCreateRes, error)
- func (_m *ObjectUserInterface) DeleteSecret(ctx context.Context, uid string, req model.ObjectUserSecretKeyDeleteReq, ...) error
- func (_m *ObjectUserInterface) GetInfo(ctx context.Context, uid string, params map[string]string) (*model.ObjectUserInfo, error)
- func (_m *ObjectUserInterface) GetSecret(ctx context.Context, uid string, params map[string]string) (*model.ObjectUserSecret, error)
- func (_m *ObjectUserInterface) List(ctx context.Context, params map[string]string) (*model.ObjectUserList, error)
- type ObjmtInterface
- func (_m *ObjmtInterface) GetAccountBillingInfo(ctx context.Context, ids []string, params map[string]string) (*model.AccountBillingInfoList, error)
- func (_m *ObjmtInterface) GetAccountBillingSample(ctx context.Context, ids []string, params map[string]string) (*model.AccountBillingSampleList, error)
- func (_m *ObjmtInterface) GetBucketBillingInfo(ctx context.Context, account string, ids []string, params map[string]string) (*model.BucketBillingInfoList, error)
- func (_m *ObjmtInterface) GetBucketBillingPerf(ctx context.Context, account string, ids []string, params map[string]string) (*model.BucketPerfDataList, error)
- func (_m *ObjmtInterface) GetBucketBillingSample(ctx context.Context, account string, ids []string, params map[string]string) (*model.BucketBillingSampleList, error)
- func (_m *ObjmtInterface) GetReplicationInfo(ctx context.Context, account string, replicationPairs [][]string, ...) (*model.BucketReplicationInfoList, error)
- func (_m *ObjmtInterface) GetReplicationSample(ctx context.Context, account string, replicationPairs [][]string, ...) (*model.BucketReplicationSampleList, error)
- func (_m *ObjmtInterface) GetStoreBillingInfo(ctx context.Context, params map[string]string) (*model.StoreBillingInfoList, error)
- func (_m *ObjmtInterface) GetStoreBillingSample(ctx context.Context, params map[string]string) (*model.StoreBillingSampleList, error)
- func (_m *ObjmtInterface) GetStoreReplicationData(ctx context.Context, ids []string, params map[string]string) (*model.StoreReplicationDataList, error)
- type StatusInterface
- type TenantsInterface
- func (_m *TenantsInterface) Create(ctx context.Context, payload model.TenantCreate) (*model.Tenant, error)
- func (_m *TenantsInterface) Delete(ctx context.Context, name string) error
- func (_m *TenantsInterface) DeleteQuota(ctx context.Context, name string) error
- func (_m *TenantsInterface) Get(ctx context.Context, name string, params map[string]string) (*model.Tenant, error)
- func (_m *TenantsInterface) GetQuota(ctx context.Context, name string, params map[string]string) (*model.TenantQuota, error)
- func (_m *TenantsInterface) List(ctx context.Context, params map[string]string) (*model.TenantList, error)
- func (_m *TenantsInterface) SetQuota(ctx context.Context, name string, payload model.TenantQuotaSet) error
- func (_m *TenantsInterface) Update(ctx context.Context, payload model.TenantUpdate, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertPoliciesInterface ¶
AlertPoliciesInterface is an autogenerated mock type for the AlertPoliciesInterface type
func NewAlertPoliciesInterface ¶
func NewAlertPoliciesInterface(t mockConstructorTestingTNewAlertPoliciesInterface) *AlertPoliciesInterface
NewAlertPoliciesInterface creates a new instance of AlertPoliciesInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AlertPoliciesInterface) Create ¶
func (_m *AlertPoliciesInterface) Create(ctx context.Context, payload model.AlertPolicy) (*model.AlertPolicy, error)
Create provides a mock function with given fields: ctx, payload
func (*AlertPoliciesInterface) Delete ¶
func (_m *AlertPoliciesInterface) Delete(ctx context.Context, policyName string) error
Delete provides a mock function with given fields: ctx, policyName
func (*AlertPoliciesInterface) Get ¶
func (_m *AlertPoliciesInterface) Get(ctx context.Context, policyName string) (*model.AlertPolicy, error)
Get provides a mock function with given fields: ctx, policyName
func (*AlertPoliciesInterface) List ¶
func (_m *AlertPoliciesInterface) List(ctx context.Context, params map[string]string) (*model.AlertPolicies, error)
List provides a mock function with given fields: ctx, params
func (*AlertPoliciesInterface) Update ¶
func (_m *AlertPoliciesInterface) Update(ctx context.Context, payload model.AlertPolicy, policyName string) (*model.AlertPolicy, error)
Update provides a mock function with given fields: ctx, payload, policyName
type BucketsInterface ¶
BucketsInterface is an autogenerated mock type for the BucketsInterface type
func NewBucketsInterface ¶
func NewBucketsInterface(t mockConstructorTestingTNewBucketsInterface) *BucketsInterface
NewBucketsInterface creates a new instance of BucketsInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BucketsInterface) Create ¶
func (_m *BucketsInterface) Create(ctx context.Context, createParam model.Bucket) (*model.Bucket, error)
Create provides a mock function with given fields: ctx, createParam
func (*BucketsInterface) Delete ¶
func (_m *BucketsInterface) Delete(ctx context.Context, name string, namespace string, emptyBucket bool) error
Delete provides a mock function with given fields: ctx, name, namespace, emptyBucket
func (*BucketsInterface) DeletePolicy ¶
func (_m *BucketsInterface) DeletePolicy(ctx context.Context, bucketName string, param map[string]string) error
DeletePolicy provides a mock function with given fields: ctx, bucketName, param
func (*BucketsInterface) DeleteQuota ¶
func (_m *BucketsInterface) DeleteQuota(ctx context.Context, bucketName string, namespace string) error
DeleteQuota provides a mock function with given fields: ctx, bucketName, namespace
func (*BucketsInterface) Get ¶
func (_m *BucketsInterface) Get(ctx context.Context, name string, params map[string]string) (*model.Bucket, error)
Get provides a mock function with given fields: ctx, name, params
func (*BucketsInterface) GetPolicy ¶
func (_m *BucketsInterface) GetPolicy(ctx context.Context, bucketName string, param map[string]string) (string, error)
GetPolicy provides a mock function with given fields: ctx, bucketName, param
func (*BucketsInterface) GetQuota ¶
func (_m *BucketsInterface) GetQuota(ctx context.Context, bucketName string, namespace string) (*model.BucketQuotaInfo, error)
GetQuota provides a mock function with given fields: ctx, bucketName, namespace
func (*BucketsInterface) List ¶
func (_m *BucketsInterface) List(ctx context.Context, params map[string]string) (*model.BucketList, error)
List provides a mock function with given fields: ctx, params
func (*BucketsInterface) UpdatePolicy ¶
func (_m *BucketsInterface) UpdatePolicy(ctx context.Context, bucketName string, policy string, param map[string]string) error
UpdatePolicy provides a mock function with given fields: ctx, bucketName, policy, param
func (*BucketsInterface) UpdateQuota ¶
func (_m *BucketsInterface) UpdateQuota(ctx context.Context, bucketQuota model.BucketQuotaUpdate) error
UpdateQuota provides a mock function with given fields: ctx, bucketQuota
type CRRInterface ¶
CRRInterface is an autogenerated mock type for the CRRInterface type
func NewCRRInterface ¶
func NewCRRInterface(t mockConstructorTestingTNewCRRInterface) *CRRInterface
NewCRRInterface creates a new instance of CRRInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CRRInterface) Get ¶
func (_m *CRRInterface) Get(ctx context.Context, destObjectScale string, destObjectStore string, param map[string]string) (*model.CRR, error)
Get provides a mock function with given fields: ctx, destObjectScale, destObjectStore, param
func (*CRRInterface) PauseReplication ¶
func (_m *CRRInterface) PauseReplication(ctx context.Context, destObjectScale string, destObjectStore string, param map[string]string) error
PauseReplication provides a mock function with given fields: ctx, destObjectScale, destObjectStore, param
func (*CRRInterface) ResumeReplication ¶
func (_m *CRRInterface) ResumeReplication(ctx context.Context, destObjectScale string, destObjectStore string, param map[string]string) error
ResumeReplication provides a mock function with given fields: ctx, destObjectScale, destObjectStore, param
func (*CRRInterface) SuspendReplication ¶
func (_m *CRRInterface) SuspendReplication(ctx context.Context, destObjectScale string, destObjectStore string, param map[string]string) error
SuspendReplication provides a mock function with given fields: ctx, destObjectScale, destObjectStore, param
func (*CRRInterface) ThrottleReplication ¶
func (_m *CRRInterface) ThrottleReplication(ctx context.Context, destObjectScale string, destObjectStore string, param map[string]string) error
ThrottleReplication provides a mock function with given fields: ctx, destObjectScale, destObjectStore, param
func (*CRRInterface) UnthrottleReplication ¶
func (_m *CRRInterface) UnthrottleReplication(ctx context.Context, destObjectScale string, destObjectStore string, param map[string]string) error
UnthrottleReplication provides a mock function with given fields: ctx, destObjectScale, destObjectStore, param
type ClientSet ¶
ClientSet is an autogenerated mock type for the ClientSet type
func NewClientSet ¶
func NewClientSet(t mockConstructorTestingTNewClientSet) *ClientSet
NewClientSet creates a new instance of ClientSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientSet) AlertPolicies ¶
func (_m *ClientSet) AlertPolicies() api.AlertPoliciesInterface
AlertPolicies provides a mock function with given fields:
func (*ClientSet) Buckets ¶
func (_m *ClientSet) Buckets() api.BucketsInterface
Buckets provides a mock function with given fields:
func (*ClientSet) CRR ¶
func (_m *ClientSet) CRR() api.CRRInterface
CRR provides a mock function with given fields:
func (*ClientSet) FederatedObjectStores ¶
func (_m *ClientSet) FederatedObjectStores() api.FederatedObjectStoresInterface
FederatedObjectStores provides a mock function with given fields:
func (*ClientSet) ObjectMt ¶
func (_m *ClientSet) ObjectMt() api.ObjmtInterface
ObjectMt provides a mock function with given fields:
func (*ClientSet) ObjectUser ¶
func (_m *ClientSet) ObjectUser() api.ObjectUserInterface
ObjectUser provides a mock function with given fields:
func (*ClientSet) Status ¶
func (_m *ClientSet) Status() api.StatusInterface
Status provides a mock function with given fields:
func (*ClientSet) Tenants ¶
func (_m *ClientSet) Tenants() api.TenantsInterface
Tenants provides a mock function with given fields:
type FederatedObjectStoresInterface ¶
FederatedObjectStoresInterface is an autogenerated mock type for the FederatedObjectStoresInterface type
func NewFederatedObjectStoresInterface ¶
func NewFederatedObjectStoresInterface(t mockConstructorTestingTNewFederatedObjectStoresInterface) *FederatedObjectStoresInterface
NewFederatedObjectStoresInterface creates a new instance of FederatedObjectStoresInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FederatedObjectStoresInterface) List ¶
func (_m *FederatedObjectStoresInterface) List(ctx context.Context, params map[string]string) (*model.FederatedObjectStoreList, error)
List provides a mock function with given fields: ctx, params
type ObjectUserInterface ¶
ObjectUserInterface is an autogenerated mock type for the ObjectUserInterface type
func NewObjectUserInterface ¶
func NewObjectUserInterface(t mockConstructorTestingTNewObjectUserInterface) *ObjectUserInterface
NewObjectUserInterface creates a new instance of ObjectUserInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ObjectUserInterface) CreateSecret ¶
func (_m *ObjectUserInterface) CreateSecret(ctx context.Context, uid string, req model.ObjectUserSecretKeyCreateReq, params map[string]string) (*model.ObjectUserSecretKeyCreateRes, error)
CreateSecret provides a mock function with given fields: ctx, uid, req, params
func (*ObjectUserInterface) DeleteSecret ¶
func (_m *ObjectUserInterface) DeleteSecret(ctx context.Context, uid string, req model.ObjectUserSecretKeyDeleteReq, params map[string]string) error
DeleteSecret provides a mock function with given fields: ctx, uid, req, params
func (*ObjectUserInterface) GetInfo ¶
func (_m *ObjectUserInterface) GetInfo(ctx context.Context, uid string, params map[string]string) (*model.ObjectUserInfo, error)
GetInfo provides a mock function with given fields: ctx, uid, params
func (*ObjectUserInterface) GetSecret ¶
func (_m *ObjectUserInterface) GetSecret(ctx context.Context, uid string, params map[string]string) (*model.ObjectUserSecret, error)
GetSecret provides a mock function with given fields: ctx, uid, params
func (*ObjectUserInterface) List ¶
func (_m *ObjectUserInterface) List(ctx context.Context, params map[string]string) (*model.ObjectUserList, error)
List provides a mock function with given fields: ctx, params
type ObjmtInterface ¶
ObjmtInterface is an autogenerated mock type for the ObjmtInterface type
func NewObjmtInterface ¶
func NewObjmtInterface(t mockConstructorTestingTNewObjmtInterface) *ObjmtInterface
NewObjmtInterface creates a new instance of ObjmtInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ObjmtInterface) GetAccountBillingInfo ¶
func (_m *ObjmtInterface) GetAccountBillingInfo(ctx context.Context, ids []string, params map[string]string) (*model.AccountBillingInfoList, error)
GetAccountBillingInfo provides a mock function with given fields: ctx, ids, params
func (*ObjmtInterface) GetAccountBillingSample ¶
func (_m *ObjmtInterface) GetAccountBillingSample(ctx context.Context, ids []string, params map[string]string) (*model.AccountBillingSampleList, error)
GetAccountBillingSample provides a mock function with given fields: ctx, ids, params
func (*ObjmtInterface) GetBucketBillingInfo ¶
func (_m *ObjmtInterface) GetBucketBillingInfo(ctx context.Context, account string, ids []string, params map[string]string) (*model.BucketBillingInfoList, error)
GetBucketBillingInfo provides a mock function with given fields: ctx, account, ids, params
func (*ObjmtInterface) GetBucketBillingPerf ¶
func (_m *ObjmtInterface) GetBucketBillingPerf(ctx context.Context, account string, ids []string, params map[string]string) (*model.BucketPerfDataList, error)
GetBucketBillingPerf provides a mock function with given fields: ctx, account, ids, params
func (*ObjmtInterface) GetBucketBillingSample ¶
func (_m *ObjmtInterface) GetBucketBillingSample(ctx context.Context, account string, ids []string, params map[string]string) (*model.BucketBillingSampleList, error)
GetBucketBillingSample provides a mock function with given fields: ctx, account, ids, params
func (*ObjmtInterface) GetReplicationInfo ¶
func (_m *ObjmtInterface) GetReplicationInfo(ctx context.Context, account string, replicationPairs [][]string, params map[string]string) (*model.BucketReplicationInfoList, error)
GetReplicationInfo provides a mock function with given fields: ctx, account, replicationPairs, params
func (*ObjmtInterface) GetReplicationSample ¶
func (_m *ObjmtInterface) GetReplicationSample(ctx context.Context, account string, replicationPairs [][]string, params map[string]string) (*model.BucketReplicationSampleList, error)
GetReplicationSample provides a mock function with given fields: ctx, account, replicationPairs, params
func (*ObjmtInterface) GetStoreBillingInfo ¶
func (_m *ObjmtInterface) GetStoreBillingInfo(ctx context.Context, params map[string]string) (*model.StoreBillingInfoList, error)
GetStoreBillingInfo provides a mock function with given fields: ctx, params
func (*ObjmtInterface) GetStoreBillingSample ¶
func (_m *ObjmtInterface) GetStoreBillingSample(ctx context.Context, params map[string]string) (*model.StoreBillingSampleList, error)
GetStoreBillingSample provides a mock function with given fields: ctx, params
func (*ObjmtInterface) GetStoreReplicationData ¶
func (_m *ObjmtInterface) GetStoreReplicationData(ctx context.Context, ids []string, params map[string]string) (*model.StoreReplicationDataList, error)
GetStoreReplicationData provides a mock function with given fields: ctx, ids, params
type StatusInterface ¶
StatusInterface is an autogenerated mock type for the StatusInterface type
func NewStatusInterface ¶
func NewStatusInterface(t mockConstructorTestingTNewStatusInterface) *StatusInterface
NewStatusInterface creates a new instance of StatusInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StatusInterface) GetRebuildStatus ¶
func (_m *StatusInterface) GetRebuildStatus(ctx context.Context, objStoreName string, ssPodName string, ssPodNameSpace string, level string, params map[string]string) (*model.RebuildInfo, error)
GetRebuildStatus provides a mock function with given fields: ctx, objStoreName, ssPodName, ssPodNameSpace, level, params
type TenantsInterface ¶
TenantsInterface is an autogenerated mock type for the TenantsInterface type
func NewTenantsInterface ¶
func NewTenantsInterface(t mockConstructorTestingTNewTenantsInterface) *TenantsInterface
NewTenantsInterface creates a new instance of TenantsInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TenantsInterface) Create ¶
func (_m *TenantsInterface) Create(ctx context.Context, payload model.TenantCreate) (*model.Tenant, error)
Create provides a mock function with given fields: ctx, payload
func (*TenantsInterface) Delete ¶
func (_m *TenantsInterface) Delete(ctx context.Context, name string) error
Delete provides a mock function with given fields: ctx, name
func (*TenantsInterface) DeleteQuota ¶
func (_m *TenantsInterface) DeleteQuota(ctx context.Context, name string) error
DeleteQuota provides a mock function with given fields: ctx, name
func (*TenantsInterface) Get ¶
func (_m *TenantsInterface) Get(ctx context.Context, name string, params map[string]string) (*model.Tenant, error)
Get provides a mock function with given fields: ctx, name, params
func (*TenantsInterface) GetQuota ¶
func (_m *TenantsInterface) GetQuota(ctx context.Context, name string, params map[string]string) (*model.TenantQuota, error)
GetQuota provides a mock function with given fields: ctx, name, params
func (*TenantsInterface) List ¶
func (_m *TenantsInterface) List(ctx context.Context, params map[string]string) (*model.TenantList, error)
List provides a mock function with given fields: ctx, params
func (*TenantsInterface) SetQuota ¶
func (_m *TenantsInterface) SetQuota(ctx context.Context, name string, payload model.TenantQuotaSet) error
SetQuota provides a mock function with given fields: ctx, name, payload
func (*TenantsInterface) Update ¶
func (_m *TenantsInterface) Update(ctx context.Context, payload model.TenantUpdate, name string) error
Update provides a mock function with given fields: ctx, payload, name