Documentation ¶
Index ¶
- func AllDrivers() map[string]ICloudSAMLLoginDriver
- func GetMetadata(driver ICloudSAMLLoginDriver) ([]byte, error)
- func InitDB() error
- func Register(driver ICloudSAMLLoginDriver)
- func UnRegister(entityId string)
- type ICloudSAMLLoginDriver
- type SAMLProviderResourceBase
- type SAMLProviderResourceBaseManager
- type SCloudDelegate
- type SCloudaccount
- func (self *SCloudaccount) GetCloudDelegaes(ctx context.Context) ([]SCloudDelegate, error)
- func (self *SCloudaccount) GetCloudaccountByProvider(provider string) ([]SCloudaccount, error)
- func (self *SCloudaccount) GetCloudgroupcaches() ([]SCloudgroupcache, error)
- func (self *SCloudaccount) GetCloudgroups() ([]SCloudgroup, error)
- func (self *SCloudaccount) GetCloudpolicies() ([]SCloudpolicy, error)
- func (self *SCloudaccount) GetCloudpolicycaches(policyIds []string, cloudproviderId string) ([]SCloudpolicycache, error)
- func (self *SCloudaccount) GetCloudproviderId() string
- func (self *SCloudaccount) GetCloudproviders() ([]SCloudprovider, error)
- func (self *SCloudaccount) GetCloudroles() ([]SCloudrole, error)
- func (self *SCloudaccount) GetClouduserAccountName(name string) (string, string)
- func (self *SCloudaccount) GetCloudusers() ([]SClouduser, error)
- func (self *SCloudaccount) GetCustomCloudpolicies() ([]SCloudpolicy, error)
- func (self *SCloudaccount) GetCustomPolicyByExternalId(id string) (*SCloudpolicy, error)
- func (self SCloudaccount) GetExternalId() string
- func (self SCloudaccount) GetGlobalId() string
- func (self *SCloudaccount) GetICloudprovider() ([]SCloudprovider, error)
- func (self *SCloudaccount) GetLocalCloudroles(userId, groupId string, spId string, grouped bool) ([]SCloudrole, error)
- func (self *SCloudaccount) GetOrCreateCloudgroup(ctx context.Context, userCred mcclient.TokenCredential, ...) (*SCloudgroup, error)
- func (self *SCloudaccount) GetProvider() (cloudprovider.ICloudProvider, error)
- func (self *SCloudaccount) GetProviderFactory() (cloudprovider.ICloudProviderFactory, error)
- func (self *SCloudaccount) GetSAMLProviders() ([]SSAMLProvider, error)
- func (self *SCloudaccount) GetSamlusers() ([]SSamluser, error)
- func (self *SCloudaccount) GetSystemCloudpolicies() ([]SCloudpolicy, error)
- func (self *SCloudaccount) GetSystemPolicyByExternalId(id string) (*SCloudpolicy, error)
- func (self *SCloudaccount) GetUserCloudgroups(userCred mcclient.TokenCredential) ([]string, []string, error)
- func (self *SCloudaccount) InviteAzureUser(ctx context.Context, userCred mcclient.TokenCredential, domain string) (string, error)
- func (self *SCloudaccount) IsSAMLProviderValid() (*SSAMLProvider, bool)
- func (self *SCloudaccount) RegisterCloudroles(userId string, grouped bool, spId string) ([]SCloudrole, error)
- func (self *SCloudaccount) RegisterSAMProvider() (*SSAMLProvider, error)
- func (self *SCloudaccount) StartSAMLProviderCreateTask(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudaccount) StartSyncCloudIdResourcesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudaccount) StartSyncCloudrolesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudaccount) StartSyncCloudusersTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudaccount) StartSyncSamlProvidersTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudaccount) StartSystemCloudpolicySyncTask(ctx context.Context, userCred mcclient.TokenCredential, refresh bool, ...) error
- func (self *SCloudaccount) SyncCloudgroupcaches(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudaccount) SyncCloudroles(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SCloudaccount) SyncCloudusers(ctx context.Context, userCred mcclient.TokenCredential, ...) ([]SClouduser, []cloudprovider.IClouduser, compare.SyncResult)
- func (self *SCloudaccount) SyncCustomCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential, clouduser *SClouduser) error
- func (self *SCloudaccount) SyncCustomCloudpoliciesFromCloud(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudaccount) SyncCustomCloudpoliciesToLocal(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SCloudaccount) SyncRoles(userId string, grouped bool) ([]SCloudrole, error)
- func (self *SCloudaccount) SyncSAMLProviders(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SCloudaccount) SyncSystemCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential, clouduser *SClouduser) error
- func (self *SCloudaccount) SyncSystemCloudpoliciesFromCloud(ctx context.Context, userCred mcclient.TokenCredential, refresh bool) error
- type SCloudaccountManager
- func (manager *SCloudaccountManager) FetchAccount(ctx context.Context, id string) (*SCloudaccount, error)
- func (manager *SCloudaccountManager) GetCloudaccounts() ([]SCloudaccount, error)
- func (manager *SCloudaccountManager) GetICloudaccounts() ([]SCloudaccount, error)
- func (manager *SCloudaccountManager) GetResourceCount() ([]db.SScopeResourceCount, error)
- func (manager *SCloudaccountManager) GetSupportCloudIdAccounts() ([]SCloudaccount, error)
- func (manager *SCloudaccountManager) GetSupportCreateCloudgroupAccounts() ([]SCloudaccount, error)
- func (manager *SCloudaccountManager) SyncCloudaccounts(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- func (manager *SCloudaccountManager) SyncCloudidResources(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- func (manager *SCloudaccountManager) SyncCloudidSystemPolicies(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- func (manager *SCloudaccountManager) SyncCloudroles(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- func (manager *SCloudaccountManager) SyncSAMLProviders(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- type SCloudaccountResourceBase
- type SCloudaccountResourceBaseManager
- func (manager *SCloudaccountResourceBaseManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.CloudaccountResourceDetails
- func (manager *SCloudaccountResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- type SCloudgroup
- func (self *SCloudgroup) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudgroup) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroup) GetCloudgroupcacheCount() (int, error)
- func (self *SCloudgroup) GetCloudgroupcacheQuery() *sqlchemy.SQuery
- func (self *SCloudgroup) GetCloudgroupcaches() ([]SCloudgroupcache, error)
- func (self *SCloudgroup) GetCloudpolicies() ([]SCloudpolicy, error)
- func (self *SCloudgroup) GetCloudpolicy(policyId string) (*SCloudpolicy, error)
- func (self *SCloudgroup) GetCloudpolicyCount() (int, error)
- func (self *SCloudgroup) GetCloudpolicyQuery() *sqlchemy.SQuery
- func (self *SCloudgroup) GetClouduser(userId string) (*SClouduser, error)
- func (self *SCloudgroup) GetClouduserCount() (int, error)
- func (self *SCloudgroup) GetClouduserQuery() *sqlchemy.SQuery
- func (self *SCloudgroup) GetCloudusers() ([]SClouduser, error)
- func (self *SCloudgroup) GetCustomCloudpolicies() ([]SCloudpolicy, error)
- func (self *SCloudgroup) GetProviderFactory() (cloudprovider.ICloudProviderFactory, error)
- func (self *SCloudgroup) GetSamlusers() ([]SSamluser, error)
- func (self *SCloudgroup) GetSystemCloudpolicies() ([]SCloudpolicy, error)
- func (self *SCloudgroup) IsEqual(system, custom []cloudprovider.ICloudpolicy) (bool, error)
- func (self *SCloudgroup) PerformAddUser(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudgroup) PerformAttachPolicy(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudgroup) PerformDetachPolicy(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudgroup) PerformRemoveUser(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudgroup) PerformSetPolicies(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudgroup) PerformSetUsers(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudgroup) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudgroup) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SCloudgroup) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroup) StartCloudgroupDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudgroup) StartCloudgroupSyncPoliciesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroup) StartCloudgroupSyncUsersTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroup) StartCloudgroupSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroup) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.CloudgroupUpdateInput, error)
- type SCloudgroupJointsBase
- type SCloudgroupJointsManager
- func (manager *SCloudgroupJointsManager) FetchCustomizeColumns(ctx context.Context, groupCred mcclient.TokenCredential, ...) []api.CloudgroupJointResourceDetails
- func (manager *SCloudgroupJointsManager) GetMasterFieldName() string
- func (manager *SCloudgroupJointsManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, groupCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupJointsManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, groupCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupJointsManager) OrderByExtraFields(ctx context.Context, q *sqlchemy.SQuery, groupCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- type SCloudgroupManager
- func (manager *SCloudgroupManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.CloudgroupDetails
- func (manager *SCloudgroupManager) FetchUniqValues(ctx context.Context, data jsonutils.JSONObject) jsonutils.JSONObject
- func (manager *SCloudgroupManager) FilterByUniqValues(q *sqlchemy.SQuery, values jsonutils.JSONObject) *sqlchemy.SQuery
- func (manager *SCloudgroupManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.CloudgroupCreateInput, error)
- type SCloudgroupPolicy
- func (self *SCloudgroupPolicy) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudgroupPolicy) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupPolicy) Detach(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupPolicy) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- type SCloudgroupPolicyManager
- func (manager *SCloudgroupPolicyManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.CloudgroupPolicyDetails
- func (manager *SCloudgroupPolicyManager) GetSlaveFieldName() string
- func (manager *SCloudgroupPolicyManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupPolicyManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupPolicyManager) OrderByExtraFields(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupPolicyManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- type SCloudgroupResourceBase
- type SCloudgroupResourceBaseManager
- func (manager *SCloudgroupResourceBaseManager) FetchCustomizeColumns(ctx context.Context, groupCred mcclient.TokenCredential, ...) []api.CloudgroupResourceDetails
- func (manager *SCloudgroupResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, groupCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- type SCloudgroupUser
- func (self *SCloudgroupUser) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudgroupUser) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupUser) Detach(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupUser) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- type SCloudgroupUserManager
- func (manager *SCloudgroupUserManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.CloudgroupUserDetails
- func (manager *SCloudgroupUserManager) GetSlaveFieldName() string
- func (manager *SCloudgroupUserManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupUserManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupUserManager) OrderByExtraFields(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupUserManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- type SCloudgroupcache
- func (self *SCloudgroupcache) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudgroupcache) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupcache) GetCloudgroup() (*SCloudgroup, error)
- func (self *SCloudgroupcache) GetCloudusers() ([]SClouduser, error)
- func (self *SCloudgroupcache) GetICloudgroup() (cloudprovider.ICloudgroup, error)
- func (self *SCloudgroupcache) GetOrCreateICloudgroup(ctx context.Context, userCred mcclient.TokenCredential) (cloudprovider.ICloudgroup, error)
- func (self *SCloudgroupcache) GetOwnerId() mcclient.IIdentityProvider
- func (self *SCloudgroupcache) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudgroupcache) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupcache) StartCloudgroupcacheDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroupcache) StartCloudgroupcacheSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroupcache) SyncCloudusersForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupcache) SyncCustomCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupcache) SyncSystemCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudgroupcache) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.CloudgroupUpdateInput, error)
- type SCloudgroupcacheManager
- func (manager *SCloudgroupcacheManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.CloudgroupcacheDetails
- func (manager *SCloudgroupcacheManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudgroupcacheManager) Register(group *SCloudgroup, account *SCloudaccount) (*SCloudgroupcache, error)
- func (manager *SCloudgroupcacheManager) ResourceScope() rbacutils.TRbacScope
- func (manager *SCloudgroupcacheManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.CloudgroupcacheCreateInput, error)
- type SCloudpolicy
- func (self *SCloudpolicy) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudpolicy) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudpolicy) GetCloudgroups() ([]SCloudgroup, error)
- func (self *SCloudpolicy) GetCloudpolicycaches() ([]SCloudpolicycache, error)
- func (self *SCloudpolicy) GetCloudusers() ([]SClouduser, error)
- func (self SCloudpolicy) GetGlobalId() string
- func (self *SCloudpolicy) PerformAssignGroup(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudpolicy) PerformLock(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudpolicy) PerformRevokeGroup(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudpolicy) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudpolicy) PerformUnlock(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudpolicy) PostUpdate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SCloudpolicy) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudpolicy) StartCloudpolicyDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudpolicy) StartCloudpolicyUpdateTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudpolicy) SyncWithCloudpolicy(ctx context.Context, userCred mcclient.TokenCredential, iPolicy SCloudpolicy) error
- func (self *SCloudpolicy) ValidateDeleteCondition(ctx context.Context, info jsonutils.JSONObject) error
- func (self *SCloudpolicy) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.CloudpolicyUpdateInput, error)
- func (self *SCloudpolicy) ValidateUse() error
- type SCloudpolicyManager
- func (manager *SCloudpolicyManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.CloudpolicyDetails
- func (manager *SCloudpolicyManager) GetIVirtualModelManager() db.IVirtualModelManager
- func (manager *SCloudpolicyManager) GetResourceCount() ([]db.SScopeResourceCount, error)
- func (manager *SCloudpolicyManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudpolicyManager) OrderByExtraFields(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudpolicyManager) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*sqlchemy.SQuery, error)
- func (manager *SCloudpolicyManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.CloudpolicyCreateInput, error)
- type SCloudpolicyResourceBase
- type SCloudpolicyResourceBaseManager
- func (manager *SCloudpolicyResourceBaseManager) FetchCustomizeColumns(ctx context.Context, policyCred mcclient.TokenCredential, ...) []api.CloudpolicyResourceDetails
- func (manager *SCloudpolicyResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, policyCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- type SCloudpolicycache
- type SCloudpolicycacheManager
- func (manager *SCloudpolicycacheManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.CloudpolicycacheDetails
- func (manager *SCloudpolicycacheManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SCloudpolicycacheManager) Register(ctx context.Context, accountId, providerId, policyId string) (*SCloudpolicycache, error)
- type SCloudprovider
- func (self *SCloudprovider) GetCloudaccount() (*SCloudaccount, error)
- func (self SCloudprovider) GetExternalId() string
- func (self SCloudprovider) GetGlobalId() string
- func (self *SCloudprovider) GetProvider() (cloudprovider.ICloudProvider, error)
- func (self *SCloudprovider) GetProviderFactory() (cloudprovider.ICloudProviderFactory, error)
- func (self *SCloudprovider) SyncCustomCloudpoliciesForCloud(ctx context.Context, clouduser *SClouduser) error
- func (self *SCloudprovider) SyncCustomCloudpoliciesFromCloud(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudprovider) SyncSystemCloudpoliciesForCloud(ctx context.Context, clouduser *SClouduser) error
- type SCloudproviderManager
- type SCloudproviderResourceBase
- type SCloudproviderResourceBaseManager
- func (manager *SCloudproviderResourceBaseManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.CloudproviderResourceDetails
- func (manager *SCloudproviderResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- type SCloudrole
- func (self *SCloudrole) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudrole) GetCloudpolicies() ([]SCloudpolicy, error)
- func (self *SCloudrole) GetICloudrole() (cloudprovider.ICloudrole, error)
- func (self *SCloudrole) PerformPurge(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SCloudrole) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudrole) StartCloudroleDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, purge bool, ...) error
- func (self *SCloudrole) SyncRoles() error
- type SCloudroleManager
- type SClouduser
- func (self *SClouduser) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SClouduser) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SClouduser) GetCloudgorupPoliciesQuery(policyType string) *sqlchemy.SQuery
- func (self *SClouduser) GetCloudgroupCount() (int, error)
- func (self *SClouduser) GetCloudgroupPolicies() ([]SCloudpolicy, error)
- func (self *SClouduser) GetCloudgroupQuery() *sqlchemy.SQuery
- func (self *SClouduser) GetCloudgroupcaches() ([]SCloudgroupcache, error)
- func (self *SClouduser) GetCloudgroups() ([]SCloudgroup, error)
- func (self *SClouduser) GetCloudpolicies(providerId string) ([]SCloudpolicy, error)
- func (self *SClouduser) GetCloudpolicy(policyId string, providerId string) ([]SCloudpolicy, error)
- func (self *SClouduser) GetCloudpolicyCount() (int, error)
- func (self *SClouduser) GetCloudpolicyQuery(providerId string) *sqlchemy.SQuery
- func (self *SClouduser) GetClouduserPolicies() ([]SClouduserPolicy, error)
- func (self *SClouduser) GetCustomCloudgroupPolicies() ([]SCloudpolicy, error)
- func (self *SClouduser) GetCustomCloudpolicies(cloudproviderId string) ([]SCloudpolicy, error)
- func (self *SClouduser) GetCustomCloudpolicycaches(cloudproviderId string) ([]SCloudpolicycache, error)
- func (self *SClouduser) GetDetailsAccessKeys(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) GetIClouduser() (cloudprovider.IClouduser, error)
- func (self *SClouduser) GetPassword() (string, error)
- func (self *SClouduser) GetSystemCloudgroupPolicies() ([]SCloudpolicy, error)
- func (self *SClouduser) GetSystemCloudpolicies(cloudproviderId string) ([]SCloudpolicy, error)
- func (self *SClouduser) PerformAttachPolicy(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformChangeOwner(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformCreateAccessKey(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformDeleteAccessKey(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformDetachPolicy(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformJoinGroup(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformLeaveGroup(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformResetPassword(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformSetGroups(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformSetPolicies(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformSync(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SClouduser) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SClouduser) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SClouduser) SavePassword(password string) error
- func (self *SClouduser) StartClouduserDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SClouduser) StartClouduserResetPasswordTask(ctx context.Context, userCred mcclient.TokenCredential, password string, ...) error
- func (self *SClouduser) StartClouduserSyncGroupsTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SClouduser) StartClouduserSyncPoliciesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SClouduser) StartClouduserSyncTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SClouduser) StartClouduserSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SClouduser) SyncCloudgroups(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SClouduser) SyncCustomCloudpolicies(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SClouduser) SyncCustomCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SClouduser) SyncSystemCloudpolicies(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SClouduser) SyncSystemCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SClouduser) SyncWithClouduser(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SClouduser) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.ClouduserUpdateInput, error)
- type SClouduserJointsBase
- type SClouduserJointsManager
- func (manager *SClouduserJointsManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.ClouduserJointResourceDetails
- func (manager *SClouduserJointsManager) GetMasterFieldName() string
- func (manager *SClouduserJointsManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SClouduserJointsManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SClouduserJointsManager) OrderByExtraFields(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- type SClouduserManager
- func (manager *SClouduserManager) EnableGenerateName() bool
- func (manager *SClouduserManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.ClouduserDetails
- func (manager *SClouduserManager) FetchUniqValues(ctx context.Context, data jsonutils.JSONObject) jsonutils.JSONObject
- func (manager *SClouduserManager) FilterByUniqValues(q *sqlchemy.SQuery, values jsonutils.JSONObject) *sqlchemy.SQuery
- func (manager *SClouduserManager) GetIVirtualModelManager() db.IVirtualModelManager
- func (manager *SClouduserManager) GetResourceCount() ([]db.SScopeResourceCount, error)
- func (manager *SClouduserManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SClouduserManager) OrderByExtraFields(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SClouduserManager) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*sqlchemy.SQuery, error)
- func (manager *SClouduserManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.ClouduserCreateInput, error)
- type SClouduserPolicy
- func (self *SClouduserPolicy) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SClouduserPolicy) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SClouduserPolicy) Detach(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SClouduserPolicy) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- type SClouduserPolicyManager
- func (manager *SClouduserPolicyManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.ClouduserPolicyDetails
- func (manager *SClouduserPolicyManager) GetSlaveFieldName() string
- func (manager *SClouduserPolicyManager) InitializeData() error
- func (manager *SClouduserPolicyManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SClouduserPolicyManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SClouduserPolicyManager) OrderByExtraFields(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SClouduserPolicyManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- type SClouduserResourceBase
- type SClouduserResourceBaseManager
- func (manager *SClouduserResourceBaseManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.ClouduserResourceDetails
- func (manager *SClouduserResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- type SHuaweiSAMLDriver
- func (d *SHuaweiSAMLDriver) GetEntityID() string
- func (d *SHuaweiSAMLDriver) GetIdpInitiatedLoginData(ctx context.Context, userCred mcclient.TokenCredential, cloudAccountId string, ...) (samlutils.SSAMLIdpInitiatedLoginData, error)
- func (d *SHuaweiSAMLDriver) GetMetadataFilename() string
- func (d *SHuaweiSAMLDriver) GetMetadataUrl() string
- func (d *SHuaweiSAMLDriver) GetSpInitiatedLoginData(ctx context.Context, userCred mcclient.TokenCredential, cloudAccountId string, ...) (samlutils.SSAMLSpInitiatedLoginData, error)
- type SSAMLProvider
- func (self *SSAMLProvider) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SSAMLProvider) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SSAMLProvider) GetMetadataDocument() (samlutils.EntityDescriptor, error)
- func (self *SSAMLProvider) IsNeedUpldateMetadata() bool
- func (self *SSAMLProvider) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SSAMLProvider) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SSAMLProvider) StartSAMLProviderCreateTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SSAMLProvider) StartSAMLProviderDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SSAMLProvider) StartSAMLProviderSyncTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SSAMLProvider) StartSAMLProviderUpdateMetadataTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SSAMLProvider) SyncWithCloudSAMLProvider(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- type SSAMLProviderManager
- func (manager *SSAMLProviderManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.SAMLProviderDetails
- func (manager *SSAMLProviderManager) FetchUniqValues(ctx context.Context, data jsonutils.JSONObject) jsonutils.JSONObject
- func (manager *SSAMLProviderManager) FilterByUniqValues(q *sqlchemy.SQuery, values jsonutils.JSONObject) *sqlchemy.SQuery
- func (manager *SSAMLProviderManager) GetIVirtualModelManager() db.IVirtualModelManager
- func (manager *SSAMLProviderManager) GetResourceCount() ([]db.SScopeResourceCount, error)
- func (manager *SSAMLProviderManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SSAMLProviderManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.SAMLProviderCreateInput, error)
- type SSamluser
- type SSamluserManager
- func (manager *SSamluserManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []api.SamluserDetails
- func (manager *SSamluserManager) FetchUniqValues(ctx context.Context, data jsonutils.JSONObject) jsonutils.JSONObject
- func (manager *SSamluserManager) FilterByUniqValues(q *sqlchemy.SQuery, values jsonutils.JSONObject) *sqlchemy.SQuery
- func (manager *SSamluserManager) GetIVirtualModelManager() db.IVirtualModelManager
- func (manager *SSamluserManager) GetResourceCount() ([]db.SScopeResourceCount, error)
- func (manager *SSamluserManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (manager *SSamluserManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.SamluserCreateInput, error)
- type SamlInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllDrivers ¶
func AllDrivers() map[string]ICloudSAMLLoginDriver
func GetMetadata ¶
func GetMetadata(driver ICloudSAMLLoginDriver) ([]byte, error)
func Register ¶
func Register(driver ICloudSAMLLoginDriver)
func UnRegister ¶
func UnRegister(entityId string)
Types ¶
type ICloudSAMLLoginDriver ¶
type ICloudSAMLLoginDriver interface { GetEntityID() string GetMetadataFilename() string GetMetadataUrl() string GetIdpInitiatedLoginData(ctx context.Context, userCred mcclient.TokenCredential, cloudAccountId string, sp *idp.SSAMLServiceProvider, redirectUrl string) (samlutils.SSAMLIdpInitiatedLoginData, error) GetSpInitiatedLoginData(ctx context.Context, userCred mcclient.TokenCredential, cloudAccoutId string, sp *idp.SSAMLServiceProvider) (samlutils.SSAMLSpInitiatedLoginData, error) }
func FindDriver ¶
func FindDriver(entityId string) ICloudSAMLLoginDriver
type SAMLProviderResourceBase ¶
type SAMLProviderResourceBase struct {
SAMLProviderId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" json:"saml_provider_id"`
}
func (*SAMLProviderResourceBase) GetSAMLProvider ¶
func (self *SAMLProviderResourceBase) GetSAMLProvider() (*SSAMLProvider, error)
type SAMLProviderResourceBaseManager ¶
type SAMLProviderResourceBaseManager struct { }
type SCloudDelegate ¶
type SCloudDelegate struct { Id string Name string Enabled bool Status string SyncStatus string AccessUrl string Account string Secret string Provider string Brand string ReadOnly bool Options struct { cloudprovider.SHCSOEndpoints } ProxySetting proxyapi.SProxySetting }
func (*SCloudDelegate) GetProvider ¶
func (account *SCloudDelegate) GetProvider() (cloudprovider.ICloudProvider, error)
type SCloudaccount ¶
type SCloudaccount struct { db.SStandaloneResourceBase db.SDomainizedResourceBase AccountId string `width:"128" charset:"utf8" nullable:"true" list:"domain" create:"domain_optional"` Provider string `width:"64" charset:"ascii" list:"domain"` Brand string `width:"64" charset:"utf8" nullable:"true" list:"domain"` IamLoginUrl string `width:"512" charset:"ascii"` SAMLAuth tristate.TriState `list:"domain" default:"false"` AccessUrl string `width:"64" charset:"ascii" nullable:"true" list:"domain" update:"domain" create:"domain_optional"` ReadOnly bool `default:"false" create:"domain_optional" list:"domain" update:"domain"` }
func (*SCloudaccount) GetCloudDelegaes ¶
func (self *SCloudaccount) GetCloudDelegaes(ctx context.Context) ([]SCloudDelegate, error)
func (*SCloudaccount) GetCloudaccountByProvider ¶
func (self *SCloudaccount) GetCloudaccountByProvider(provider string) ([]SCloudaccount, error)
func (*SCloudaccount) GetCloudgroupcaches ¶
func (self *SCloudaccount) GetCloudgroupcaches() ([]SCloudgroupcache, error)
func (*SCloudaccount) GetCloudgroups ¶
func (self *SCloudaccount) GetCloudgroups() ([]SCloudgroup, error)
func (*SCloudaccount) GetCloudpolicies ¶
func (self *SCloudaccount) GetCloudpolicies() ([]SCloudpolicy, error)
func (*SCloudaccount) GetCloudpolicycaches ¶
func (self *SCloudaccount) GetCloudpolicycaches(policyIds []string, cloudproviderId string) ([]SCloudpolicycache, error)
func (*SCloudaccount) GetCloudproviderId ¶
func (self *SCloudaccount) GetCloudproviderId() string
func (*SCloudaccount) GetCloudproviders ¶
func (self *SCloudaccount) GetCloudproviders() ([]SCloudprovider, error)
func (*SCloudaccount) GetCloudroles ¶
func (self *SCloudaccount) GetCloudroles() ([]SCloudrole, error)
func (*SCloudaccount) GetClouduserAccountName ¶
func (self *SCloudaccount) GetClouduserAccountName(name string) (string, string)
func (*SCloudaccount) GetCloudusers ¶
func (self *SCloudaccount) GetCloudusers() ([]SClouduser, error)
func (*SCloudaccount) GetCustomCloudpolicies ¶
func (self *SCloudaccount) GetCustomCloudpolicies() ([]SCloudpolicy, error)
func (*SCloudaccount) GetCustomPolicyByExternalId ¶
func (self *SCloudaccount) GetCustomPolicyByExternalId(id string) (*SCloudpolicy, error)
func (SCloudaccount) GetExternalId ¶
func (self SCloudaccount) GetExternalId() string
func (SCloudaccount) GetGlobalId ¶
func (self SCloudaccount) GetGlobalId() string
func (*SCloudaccount) GetICloudprovider ¶
func (self *SCloudaccount) GetICloudprovider() ([]SCloudprovider, error)
func (*SCloudaccount) GetLocalCloudroles ¶
func (self *SCloudaccount) GetLocalCloudroles(userId, groupId string, spId string, grouped bool) ([]SCloudrole, error)
func (*SCloudaccount) GetOrCreateCloudgroup ¶
func (self *SCloudaccount) GetOrCreateCloudgroup(ctx context.Context, userCred mcclient.TokenCredential, iGroup cloudprovider.ICloudgroup) (*SCloudgroup, error)
func (*SCloudaccount) GetProvider ¶
func (self *SCloudaccount) GetProvider() (cloudprovider.ICloudProvider, error)
func (*SCloudaccount) GetProviderFactory ¶
func (self *SCloudaccount) GetProviderFactory() (cloudprovider.ICloudProviderFactory, error)
func (*SCloudaccount) GetSAMLProviders ¶
func (self *SCloudaccount) GetSAMLProviders() ([]SSAMLProvider, error)
func (*SCloudaccount) GetSamlusers ¶
func (self *SCloudaccount) GetSamlusers() ([]SSamluser, error)
func (*SCloudaccount) GetSystemCloudpolicies ¶
func (self *SCloudaccount) GetSystemCloudpolicies() ([]SCloudpolicy, error)
func (*SCloudaccount) GetSystemPolicyByExternalId ¶
func (self *SCloudaccount) GetSystemPolicyByExternalId(id string) (*SCloudpolicy, error)
func (*SCloudaccount) GetUserCloudgroups ¶
func (self *SCloudaccount) GetUserCloudgroups(userCred mcclient.TokenCredential) ([]string, []string, error)
func (*SCloudaccount) InviteAzureUser ¶
func (self *SCloudaccount) InviteAzureUser(ctx context.Context, userCred mcclient.TokenCredential, domain string) (string, error)
func (*SCloudaccount) IsSAMLProviderValid ¶
func (self *SCloudaccount) IsSAMLProviderValid() (*SSAMLProvider, bool)
func (*SCloudaccount) RegisterCloudroles ¶
func (self *SCloudaccount) RegisterCloudroles(userId string, grouped bool, spId string) ([]SCloudrole, error)
func (*SCloudaccount) RegisterSAMProvider ¶
func (self *SCloudaccount) RegisterSAMProvider() (*SSAMLProvider, error)
func (*SCloudaccount) StartSAMLProviderCreateTask ¶
func (self *SCloudaccount) StartSAMLProviderCreateTask(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudaccount) StartSyncCloudIdResourcesTask ¶
func (self *SCloudaccount) StartSyncCloudIdResourcesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudaccount) StartSyncCloudrolesTask ¶
func (self *SCloudaccount) StartSyncCloudrolesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudaccount) StartSyncCloudusersTask ¶
func (self *SCloudaccount) StartSyncCloudusersTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudaccount) StartSyncSamlProvidersTask ¶
func (self *SCloudaccount) StartSyncSamlProvidersTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudaccount) StartSystemCloudpolicySyncTask ¶
func (self *SCloudaccount) StartSystemCloudpolicySyncTask(ctx context.Context, userCred mcclient.TokenCredential, refresh bool, parentTaskId string) error
func (*SCloudaccount) SyncCloudgroupcaches ¶
func (self *SCloudaccount) SyncCloudgroupcaches(ctx context.Context, userCred mcclient.TokenCredential, iGroups []cloudprovider.ICloudgroup) error
func (*SCloudaccount) SyncCloudroles ¶
func (self *SCloudaccount) SyncCloudroles(ctx context.Context, userCred mcclient.TokenCredential, exts []cloudprovider.ICloudrole) compare.SyncResult
func (*SCloudaccount) SyncCloudusers ¶
func (self *SCloudaccount) SyncCloudusers(ctx context.Context, userCred mcclient.TokenCredential, iUsers []cloudprovider.IClouduser) ([]SClouduser, []cloudprovider.IClouduser, compare.SyncResult)
func (*SCloudaccount) SyncCustomCloudpoliciesForCloud ¶
func (self *SCloudaccount) SyncCustomCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential, clouduser *SClouduser) error
func (*SCloudaccount) SyncCustomCloudpoliciesFromCloud ¶
func (self *SCloudaccount) SyncCustomCloudpoliciesFromCloud(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudaccount) SyncCustomCloudpoliciesToLocal ¶
func (self *SCloudaccount) SyncCustomCloudpoliciesToLocal(ctx context.Context, userCred mcclient.TokenCredential, iPolicies []cloudprovider.ICloudpolicy, cloudproviderId string) compare.SyncResult
func (*SCloudaccount) SyncRoles ¶
func (self *SCloudaccount) SyncRoles(userId string, grouped bool) ([]SCloudrole, error)
func (*SCloudaccount) SyncSAMLProviders ¶
func (self *SCloudaccount) SyncSAMLProviders(ctx context.Context, userCred mcclient.TokenCredential, samls []cloudprovider.ICloudSAMLProvider) compare.SyncResult
func (*SCloudaccount) SyncSystemCloudpoliciesForCloud ¶
func (self *SCloudaccount) SyncSystemCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential, clouduser *SClouduser) error
func (*SCloudaccount) SyncSystemCloudpoliciesFromCloud ¶
func (self *SCloudaccount) SyncSystemCloudpoliciesFromCloud(ctx context.Context, userCred mcclient.TokenCredential, refresh bool) error
type SCloudaccountManager ¶
type SCloudaccountManager struct {
db.SDomainLevelResourceBaseManager
}
+onecloud:swagger-gen-ignore
var CloudaccountManager *SCloudaccountManager
func (*SCloudaccountManager) FetchAccount ¶
func (manager *SCloudaccountManager) FetchAccount(ctx context.Context, id string) (*SCloudaccount, error)
func (*SCloudaccountManager) GetCloudaccounts ¶
func (manager *SCloudaccountManager) GetCloudaccounts() ([]SCloudaccount, error)
func (*SCloudaccountManager) GetICloudaccounts ¶
func (manager *SCloudaccountManager) GetICloudaccounts() ([]SCloudaccount, error)
func (*SCloudaccountManager) GetResourceCount ¶
func (manager *SCloudaccountManager) GetResourceCount() ([]db.SScopeResourceCount, error)
func (*SCloudaccountManager) GetSupportCloudIdAccounts ¶
func (manager *SCloudaccountManager) GetSupportCloudIdAccounts() ([]SCloudaccount, error)
func (*SCloudaccountManager) GetSupportCreateCloudgroupAccounts ¶
func (manager *SCloudaccountManager) GetSupportCreateCloudgroupAccounts() ([]SCloudaccount, error)
func (*SCloudaccountManager) SyncCloudaccounts ¶
func (manager *SCloudaccountManager) SyncCloudaccounts(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
func (*SCloudaccountManager) SyncCloudidResources ¶
func (manager *SCloudaccountManager) SyncCloudidResources(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
func (*SCloudaccountManager) SyncCloudidSystemPolicies ¶
func (manager *SCloudaccountManager) SyncCloudidSystemPolicies(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
func (*SCloudaccountManager) SyncCloudroles ¶
func (manager *SCloudaccountManager) SyncCloudroles(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
func (*SCloudaccountManager) SyncSAMLProviders ¶
func (manager *SCloudaccountManager) SyncSAMLProviders(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
type SCloudaccountResourceBase ¶
type SCloudaccountResourceBase struct { // 云账号Id CloudaccountId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" json:"cloudaccount_id"` }
func (*SCloudaccountResourceBase) GetCloudaccount ¶
func (self *SCloudaccountResourceBase) GetCloudaccount() (*SCloudaccount, error)
type SCloudaccountResourceBaseManager ¶
type SCloudaccountResourceBaseManager struct { }
func (*SCloudaccountResourceBaseManager) FetchCustomizeColumns ¶
func (manager *SCloudaccountResourceBaseManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudaccountResourceDetails
func (*SCloudaccountResourceBaseManager) ListItemFilter ¶
func (manager *SCloudaccountResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudaccountResourceListInput) (*sqlchemy.SQuery, error)
type SCloudgroup ¶
type SCloudgroup struct { db.SStatusInfrasResourceBase Provider string `width:"64" charset:"ascii" list:"domain" create:"required"` }
func (*SCloudgroup) CustomizeDelete ¶
func (self *SCloudgroup) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
删除权限组
func (*SCloudgroup) Delete ¶
func (self *SCloudgroup) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroup) GetCloudgroupcacheCount ¶
func (self *SCloudgroup) GetCloudgroupcacheCount() (int, error)
func (*SCloudgroup) GetCloudgroupcacheQuery ¶
func (self *SCloudgroup) GetCloudgroupcacheQuery() *sqlchemy.SQuery
func (*SCloudgroup) GetCloudgroupcaches ¶
func (self *SCloudgroup) GetCloudgroupcaches() ([]SCloudgroupcache, error)
func (*SCloudgroup) GetCloudpolicies ¶
func (self *SCloudgroup) GetCloudpolicies() ([]SCloudpolicy, error)
func (*SCloudgroup) GetCloudpolicy ¶
func (self *SCloudgroup) GetCloudpolicy(policyId string) (*SCloudpolicy, error)
func (*SCloudgroup) GetCloudpolicyCount ¶
func (self *SCloudgroup) GetCloudpolicyCount() (int, error)
func (*SCloudgroup) GetCloudpolicyQuery ¶
func (self *SCloudgroup) GetCloudpolicyQuery() *sqlchemy.SQuery
func (*SCloudgroup) GetClouduser ¶
func (self *SCloudgroup) GetClouduser(userId string) (*SClouduser, error)
func (*SCloudgroup) GetClouduserCount ¶
func (self *SCloudgroup) GetClouduserCount() (int, error)
func (*SCloudgroup) GetClouduserQuery ¶
func (self *SCloudgroup) GetClouduserQuery() *sqlchemy.SQuery
func (*SCloudgroup) GetCloudusers ¶
func (self *SCloudgroup) GetCloudusers() ([]SClouduser, error)
func (*SCloudgroup) GetCustomCloudpolicies ¶
func (self *SCloudgroup) GetCustomCloudpolicies() ([]SCloudpolicy, error)
func (*SCloudgroup) GetProviderFactory ¶
func (self *SCloudgroup) GetProviderFactory() (cloudprovider.ICloudProviderFactory, error)
func (*SCloudgroup) GetSamlusers ¶
func (self *SCloudgroup) GetSamlusers() ([]SSamluser, error)
func (*SCloudgroup) GetSystemCloudpolicies ¶
func (self *SCloudgroup) GetSystemCloudpolicies() ([]SCloudpolicy, error)
func (*SCloudgroup) IsEqual ¶
func (self *SCloudgroup) IsEqual(system, custom []cloudprovider.ICloudpolicy) (bool, error)
func (*SCloudgroup) PerformAddUser ¶
func (self *SCloudgroup) PerformAddUser(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupAddUserInput) (jsonutils.JSONObject, error)
向权限组加入用户 权限组状态必须为: available
func (*SCloudgroup) PerformAttachPolicy ¶
func (self *SCloudgroup) PerformAttachPolicy(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupAttachPolicyInput) (jsonutils.JSONObject, error)
向权限组添加权限 权限组状态必须为: available
func (*SCloudgroup) PerformDetachPolicy ¶
func (self *SCloudgroup) PerformDetachPolicy(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupDetachPolicyInput) (jsonutils.JSONObject, error)
从权限组移除权限 权限组状态必须为: available
func (*SCloudgroup) PerformRemoveUser ¶
func (self *SCloudgroup) PerformRemoveUser(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupRemoveUserInput) (jsonutils.JSONObject, error)
从权限组移除用户 权限组状态必须为: available
func (*SCloudgroup) PerformSetPolicies ¶
func (self *SCloudgroup) PerformSetPolicies(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupSetPoliciesInput) (jsonutils.JSONObject, error)
设置权限组添权限(全量覆盖) 权限组状态必须为: available
func (*SCloudgroup) PerformSetUsers ¶
func (self *SCloudgroup) PerformSetUsers(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupSetUsersInput) (jsonutils.JSONObject, error)
设置权限组用户(全量覆盖) 权限组状态必须为: available
func (*SCloudgroup) PerformSyncstatus ¶
func (self *SCloudgroup) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupSyncstatusInput) (jsonutils.JSONObject, error)
恢复权限组状态
func (*SCloudgroup) PostCreate ¶
func (self *SCloudgroup) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject)
func (*SCloudgroup) RealDelete ¶
func (self *SCloudgroup) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroup) StartCloudgroupDeleteTask ¶
func (self *SCloudgroup) StartCloudgroupDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, parentTaskId string) error
func (*SCloudgroup) StartCloudgroupSyncPoliciesTask ¶
func (self *SCloudgroup) StartCloudgroupSyncPoliciesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroup) StartCloudgroupSyncUsersTask ¶
func (self *SCloudgroup) StartCloudgroupSyncUsersTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroup) StartCloudgroupSyncstatusTask ¶
func (self *SCloudgroup) StartCloudgroupSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroup) ValidateUpdateData ¶
func (self *SCloudgroup) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupUpdateInput) (api.CloudgroupUpdateInput, error)
更新权限组
type SCloudgroupJointsBase ¶
type SCloudgroupJointsBase struct { db.SJointResourceBase // 用户组Id CloudgroupId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" index:"true" json:"cloudgroup_id"` }
func (*SCloudgroupJointsBase) ValidateUpdateData ¶
func (self *SCloudgroupJointsBase) ValidateUpdateData( ctx context.Context, groupCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupJointBaseUpdateInput, ) (api.CloudgroupJointBaseUpdateInput, error)
type SCloudgroupJointsManager ¶
type SCloudgroupJointsManager struct {
db.SJointResourceBaseManager
}
func NewCloudgroupJointsManager ¶
func NewCloudgroupJointsManager(dt interface{}, tableName string, keyword string, keywordPlural string, slave db.IVirtualModelManager) SCloudgroupJointsManager
func (*SCloudgroupJointsManager) FetchCustomizeColumns ¶
func (manager *SCloudgroupJointsManager) FetchCustomizeColumns( ctx context.Context, groupCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudgroupJointResourceDetails
func (*SCloudgroupJointsManager) GetMasterFieldName ¶
func (manager *SCloudgroupJointsManager) GetMasterFieldName() string
func (*SCloudgroupJointsManager) ListItemExportKeys ¶
func (manager *SCloudgroupJointsManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, groupCred mcclient.TokenCredential, keys stringutils2.SSortedStrings, ) (*sqlchemy.SQuery, error)
func (*SCloudgroupJointsManager) ListItemFilter ¶
func (manager *SCloudgroupJointsManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, groupCred mcclient.TokenCredential, query api.CloudgroupJointsListInput, ) (*sqlchemy.SQuery, error)
func (*SCloudgroupJointsManager) OrderByExtraFields ¶
func (manager *SCloudgroupJointsManager) OrderByExtraFields( ctx context.Context, q *sqlchemy.SQuery, groupCred mcclient.TokenCredential, query api.CloudgroupJointsListInput, ) (*sqlchemy.SQuery, error)
type SCloudgroupManager ¶
type SCloudgroupManager struct {
db.SStatusInfrasResourceBaseManager
}
var CloudgroupManager *SCloudgroupManager
func (*SCloudgroupManager) FetchCustomizeColumns ¶
func (manager *SCloudgroupManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudgroupDetails
获取权限组详情
func (*SCloudgroupManager) FetchUniqValues ¶
func (manager *SCloudgroupManager) FetchUniqValues(ctx context.Context, data jsonutils.JSONObject) jsonutils.JSONObject
func (*SCloudgroupManager) FilterByUniqValues ¶
func (manager *SCloudgroupManager) FilterByUniqValues(q *sqlchemy.SQuery, values jsonutils.JSONObject) *sqlchemy.SQuery
func (*SCloudgroupManager) ListItemFilter ¶
func (manager *SCloudgroupManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudgroupListInput) (*sqlchemy.SQuery, error)
权限组列表
func (*SCloudgroupManager) ValidateCreateData ¶
func (manager *SCloudgroupManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input api.CloudgroupCreateInput) (api.CloudgroupCreateInput, error)
创建权限组
type SCloudgroupPolicy ¶
type SCloudgroupPolicy struct { SCloudgroupJointsBase SCloudpolicyResourceBase }
func (*SCloudgroupPolicy) CustomizeDelete ¶
func (self *SCloudgroupPolicy) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
+onecloud:swagger-gen-ignore
func (*SCloudgroupPolicy) Delete ¶
func (self *SCloudgroupPolicy) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroupPolicy) Detach ¶
func (self *SCloudgroupPolicy) Detach(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroupPolicy) ValidateUpdateData ¶
func (self *SCloudgroupPolicy) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input jsonutils.JSONObject) (jsonutils.JSONObject, error)
+onecloud:swagger-gen-ignore
type SCloudgroupPolicyManager ¶
type SCloudgroupPolicyManager struct { SCloudgroupJointsManager SCloudpolicyResourceBaseManager }
+onecloud:swagger-gen-ignore
var CloudgroupPolicyManager *SCloudgroupPolicyManager
func (*SCloudgroupPolicyManager) FetchCustomizeColumns ¶
func (manager *SCloudgroupPolicyManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudgroupPolicyDetails
用户组中权限详情
func (*SCloudgroupPolicyManager) GetSlaveFieldName ¶
func (manager *SCloudgroupPolicyManager) GetSlaveFieldName() string
func (*SCloudgroupPolicyManager) ListItemExportKeys ¶
func (manager *SCloudgroupPolicyManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, keys stringutils2.SSortedStrings, ) (*sqlchemy.SQuery, error)
func (*SCloudgroupPolicyManager) ListItemFilter ¶
func (manager *SCloudgroupPolicyManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudgroupPolicyListInput, ) (*sqlchemy.SQuery, error)
用户组中权限列表
func (*SCloudgroupPolicyManager) OrderByExtraFields ¶
func (manager *SCloudgroupPolicyManager) OrderByExtraFields( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudgroupPolicyListInput, ) (*sqlchemy.SQuery, error)
func (*SCloudgroupPolicyManager) ValidateCreateData ¶
func (manager *SCloudgroupPolicyManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject) (jsonutils.JSONObject, error)
+onecloud:swagger-gen-ignore
type SCloudgroupResourceBase ¶
type SCloudgroupResourceBase struct {
CloudgroupId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required"`
}
func (*SCloudgroupResourceBase) GetCloudgroup ¶
func (self *SCloudgroupResourceBase) GetCloudgroup() (*SCloudgroup, error)
type SCloudgroupResourceBaseManager ¶
type SCloudgroupResourceBaseManager struct { }
func (*SCloudgroupResourceBaseManager) FetchCustomizeColumns ¶
func (manager *SCloudgroupResourceBaseManager) FetchCustomizeColumns( ctx context.Context, groupCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudgroupResourceDetails
func (*SCloudgroupResourceBaseManager) ListItemFilter ¶
func (manager *SCloudgroupResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, groupCred mcclient.TokenCredential, query api.CloudgroupResourceListInput) (*sqlchemy.SQuery, error)
type SCloudgroupUser ¶
type SCloudgroupUser struct { SCloudgroupJointsBase SClouduserResourceBase }
func (*SCloudgroupUser) CustomizeDelete ¶
func (self *SCloudgroupUser) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
+onecloud:swagger-gen-ignore
func (*SCloudgroupUser) Delete ¶
func (self *SCloudgroupUser) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroupUser) Detach ¶
func (self *SCloudgroupUser) Detach(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroupUser) ValidateUpdateData ¶
func (self *SCloudgroupUser) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input jsonutils.JSONObject) (jsonutils.JSONObject, error)
+onecloud:swagger-gen-ignore
type SCloudgroupUserManager ¶
type SCloudgroupUserManager struct { SCloudgroupJointsManager SClouduserResourceBaseManager }
+onecloud:swagger-gen-ignore
var CloudgroupUserManager *SCloudgroupUserManager
func (*SCloudgroupUserManager) FetchCustomizeColumns ¶
func (manager *SCloudgroupUserManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudgroupUserDetails
获取用户组中用户详情
func (*SCloudgroupUserManager) GetSlaveFieldName ¶
func (manager *SCloudgroupUserManager) GetSlaveFieldName() string
func (*SCloudgroupUserManager) ListItemExportKeys ¶
func (manager *SCloudgroupUserManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, keys stringutils2.SSortedStrings, ) (*sqlchemy.SQuery, error)
func (*SCloudgroupUserManager) ListItemFilter ¶
func (manager *SCloudgroupUserManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudgroupUserListInput, ) (*sqlchemy.SQuery, error)
用户组中用户列表
func (*SCloudgroupUserManager) OrderByExtraFields ¶
func (manager *SCloudgroupUserManager) OrderByExtraFields( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudgroupUserListInput, ) (*sqlchemy.SQuery, error)
func (*SCloudgroupUserManager) ValidateCreateData ¶
func (manager *SCloudgroupUserManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject) (jsonutils.JSONObject, error)
+onecloud:swagger-gen-ignore
type SCloudgroupcache ¶
type SCloudgroupcache struct { db.SStatusStandaloneResourceBase db.SExternalizedResourceBase SCloudaccountResourceBase // 用户组Id CloudgroupId string `width:"36" charset:"ascii" nullable:"true" list:"user" index:"true" json:"cloudgroup_id"` }
func (*SCloudgroupcache) CustomizeDelete ¶
func (self *SCloudgroupcache) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
删除权限组缓存
func (*SCloudgroupcache) Delete ¶
func (self *SCloudgroupcache) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroupcache) GetCloudgroup ¶
func (self *SCloudgroupcache) GetCloudgroup() (*SCloudgroup, error)
func (*SCloudgroupcache) GetCloudusers ¶
func (self *SCloudgroupcache) GetCloudusers() ([]SClouduser, error)
func (*SCloudgroupcache) GetICloudgroup ¶
func (self *SCloudgroupcache) GetICloudgroup() (cloudprovider.ICloudgroup, error)
func (*SCloudgroupcache) GetOrCreateICloudgroup ¶
func (self *SCloudgroupcache) GetOrCreateICloudgroup(ctx context.Context, userCred mcclient.TokenCredential) (cloudprovider.ICloudgroup, error)
func (*SCloudgroupcache) GetOwnerId ¶
func (self *SCloudgroupcache) GetOwnerId() mcclient.IIdentityProvider
func (*SCloudgroupcache) PerformSyncstatus ¶
func (self *SCloudgroupcache) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupSyncstatusInput) (jsonutils.JSONObject, error)
同步权限组缓存状态
func (*SCloudgroupcache) RealDelete ¶
func (self *SCloudgroupcache) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroupcache) StartCloudgroupcacheDeleteTask ¶
func (self *SCloudgroupcache) StartCloudgroupcacheDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroupcache) StartCloudgroupcacheSyncstatusTask ¶
func (self *SCloudgroupcache) StartCloudgroupcacheSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroupcache) SyncCloudusersForCloud ¶
func (self *SCloudgroupcache) SyncCloudusersForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
将本地的用户推送到云上(覆盖云上设置)
func (*SCloudgroupcache) SyncCustomCloudpoliciesForCloud ¶
func (self *SCloudgroupcache) SyncCustomCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudgroupcache) SyncSystemCloudpoliciesForCloud ¶
func (self *SCloudgroupcache) SyncSystemCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
将本地的权限推送到云上(覆盖云上设置)
func (*SCloudgroupcache) ValidateUpdateData ¶
func (self *SCloudgroupcache) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupUpdateInput) (api.CloudgroupUpdateInput, error)
+onecloud:swagger-gen-ignore
type SCloudgroupcacheManager ¶
type SCloudgroupcacheManager struct { db.SStatusStandaloneResourceBaseManager db.SExternalizedResourceBaseManager SCloudaccountResourceBaseManager }
var CloudgroupcacheManager *SCloudgroupcacheManager
func (*SCloudgroupcacheManager) FetchCustomizeColumns ¶
func (manager *SCloudgroupcacheManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudgroupcacheDetails
获取权限组缓存详情
func (*SCloudgroupcacheManager) ListItemFilter ¶
func (manager *SCloudgroupcacheManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudgroupcacheListInput) (*sqlchemy.SQuery, error)
公有云权限组缓存
func (*SCloudgroupcacheManager) Register ¶
func (manager *SCloudgroupcacheManager) Register(group *SCloudgroup, account *SCloudaccount) (*SCloudgroupcache, error)
func (*SCloudgroupcacheManager) ResourceScope ¶
func (manager *SCloudgroupcacheManager) ResourceScope() rbacutils.TRbacScope
func (*SCloudgroupcacheManager) ValidateCreateData ¶
func (manager *SCloudgroupcacheManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input api.CloudgroupcacheCreateInput) (api.CloudgroupcacheCreateInput, error)
+onecloud:swagger-gen-ignore
type SCloudpolicy ¶
type SCloudpolicy struct { db.SStatusInfrasResourceBase db.SExternalizedResourceBase // 权限类型 // // | 权限类型 | 说明 | // |---------------|----------------------| // | system | 平台内置权限 | // | custom | 用户自定义权限 | PolicyType string `width:"16" charset:"ascii" list:"domain" default:"custom"` // 平台 // // | 云平台 | 说明 | // |----------|---------------------------------------------| // | Google | 支持 | // | Aliyun | 支持 | // | Huawei | 支持 | // | Azure | 支持 | // | 腾讯云 | 支持 | Provider string `width:"64" charset:"ascii" list:"domain" create:"domain_required"` // 策略内容 Document *jsonutils.JSONDict `length:"long" charset:"ascii" list:"domain" update:"domain" create:"domain_required"` // 是否锁定, 若锁定后, 此策略不允许被绑定到用户或权限组, 仅管理员可以设置是否锁定 Locked tristate.TriState `get:"user" create:"optional" list:"user" default:"false"` CloudEnv string `width:"64" charset:"ascii" list:"domain" create:"domain_required"` }
func (*SCloudpolicy) CustomizeDelete ¶
func (self *SCloudpolicy) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
删除自定义权限
func (*SCloudpolicy) Delete ¶
func (self *SCloudpolicy) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudpolicy) GetCloudgroups ¶
func (self *SCloudpolicy) GetCloudgroups() ([]SCloudgroup, error)
func (*SCloudpolicy) GetCloudpolicycaches ¶
func (self *SCloudpolicy) GetCloudpolicycaches() ([]SCloudpolicycache, error)
func (*SCloudpolicy) GetCloudusers ¶
func (self *SCloudpolicy) GetCloudusers() ([]SClouduser, error)
func (SCloudpolicy) GetGlobalId ¶
func (self SCloudpolicy) GetGlobalId() string
func (*SCloudpolicy) PerformAssignGroup ¶
func (self *SCloudpolicy) PerformAssignGroup(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudpolicyAssignGroupInput) (jsonutils.JSONObject, error)
将权限加入权限组
func (*SCloudpolicy) PerformLock ¶
func (self *SCloudpolicy) PerformLock(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudpolicyAssignGroupInput) (jsonutils.JSONObject, error)
锁定权限(禁止使用此权限)
func (*SCloudpolicy) PerformRevokeGroup ¶
func (self *SCloudpolicy) PerformRevokeGroup(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudpolicyRevokeGroupInput) (jsonutils.JSONObject, error)
将权限从权限组中移除
func (*SCloudpolicy) PerformSyncstatus ¶
func (self *SCloudpolicy) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudgroupSyncstatusInput) (jsonutils.JSONObject, error)
恢复权限组状态
func (*SCloudpolicy) PerformUnlock ¶
func (self *SCloudpolicy) PerformUnlock(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudpolicyAssignGroupInput) (jsonutils.JSONObject, error)
解锁权限(允许使用此权限)
func (*SCloudpolicy) PostUpdate ¶
func (self *SCloudpolicy) PostUpdate(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject)
func (*SCloudpolicy) RealDelete ¶
func (self *SCloudpolicy) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudpolicy) StartCloudpolicyDeleteTask ¶
func (self *SCloudpolicy) StartCloudpolicyDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudpolicy) StartCloudpolicyUpdateTask ¶
func (self *SCloudpolicy) StartCloudpolicyUpdateTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudpolicy) SyncWithCloudpolicy ¶
func (self *SCloudpolicy) SyncWithCloudpolicy(ctx context.Context, userCred mcclient.TokenCredential, iPolicy SCloudpolicy) error
func (*SCloudpolicy) ValidateDeleteCondition ¶
func (self *SCloudpolicy) ValidateDeleteCondition(ctx context.Context, info jsonutils.JSONObject) error
func (*SCloudpolicy) ValidateUpdateData ¶
func (self *SCloudpolicy) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudpolicyUpdateInput) (api.CloudpolicyUpdateInput, error)
更新策略(仅限自定义)
func (*SCloudpolicy) ValidateUse ¶
func (self *SCloudpolicy) ValidateUse() error
type SCloudpolicyManager ¶
type SCloudpolicyManager struct { db.SStatusInfrasResourceBaseManager db.SExternalizedResourceBaseManager }
var CloudpolicyManager *SCloudpolicyManager
func (*SCloudpolicyManager) FetchCustomizeColumns ¶
func (manager *SCloudpolicyManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudpolicyDetails
获取公有云权限详情
func (*SCloudpolicyManager) GetIVirtualModelManager ¶
func (manager *SCloudpolicyManager) GetIVirtualModelManager() db.IVirtualModelManager
func (*SCloudpolicyManager) GetResourceCount ¶
func (manager *SCloudpolicyManager) GetResourceCount() ([]db.SScopeResourceCount, error)
func (*SCloudpolicyManager) ListItemFilter ¶
func (manager *SCloudpolicyManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudpolicyListInput) (*sqlchemy.SQuery, error)
公有云权限列表
func (*SCloudpolicyManager) OrderByExtraFields ¶
func (manager *SCloudpolicyManager) OrderByExtraFields( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudpolicyListInput, ) (*sqlchemy.SQuery, error)
func (*SCloudpolicyManager) QueryDistinctExtraField ¶
func (*SCloudpolicyManager) ValidateCreateData ¶
func (manager *SCloudpolicyManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input api.CloudpolicyCreateInput) (api.CloudpolicyCreateInput, error)
创建自定义策略
type SCloudpolicyResourceBase ¶
type SCloudpolicyResourceBase struct { // 权限Id CloudpolicyId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" json:"cloudpolicy_id"` }
type SCloudpolicyResourceBaseManager ¶
type SCloudpolicyResourceBaseManager struct { }
func (*SCloudpolicyResourceBaseManager) FetchCustomizeColumns ¶
func (manager *SCloudpolicyResourceBaseManager) FetchCustomizeColumns( ctx context.Context, policyCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudpolicyResourceDetails
func (*SCloudpolicyResourceBaseManager) ListItemFilter ¶
func (manager *SCloudpolicyResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, policyCred mcclient.TokenCredential, query api.CloudpolicyResourceListInput) (*sqlchemy.SQuery, error)
type SCloudpolicycache ¶
type SCloudpolicycache struct { db.SStatusStandaloneResourceBase db.SExternalizedResourceBase SCloudaccountResourceBase SCloudproviderResourceBase // 权限Id CloudpolicyId string `width:"36" charset:"ascii" nullable:"true" list:"user" index:"true" json:"cloudpolicy_id"` }
func (*SCloudpolicycache) GetCloudpolicy ¶
func (self *SCloudpolicycache) GetCloudpolicy() (*SCloudpolicy, error)
func (*SCloudpolicycache) GetCloudprovider ¶
func (self *SCloudpolicycache) GetCloudprovider() (*SCloudprovider, error)
func (*SCloudpolicycache) GetProvider ¶
func (self *SCloudpolicycache) GetProvider() (cloudprovider.ICloudProvider, error)
type SCloudpolicycacheManager ¶
type SCloudpolicycacheManager struct { db.SStatusStandaloneResourceBaseManager db.SExternalizedResourceBaseManager SCloudaccountResourceBaseManager SCloudproviderResourceBaseManager }
var CloudpolicycacheManager *SCloudpolicycacheManager
func (*SCloudpolicycacheManager) FetchCustomizeColumns ¶
func (manager *SCloudpolicycacheManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudpolicycacheDetails
获取公有云权限缓存详情
func (*SCloudpolicycacheManager) ListItemFilter ¶
func (manager *SCloudpolicycacheManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudpolicycacheListInput) (*sqlchemy.SQuery, error)
公有云权限缓存列表
func (*SCloudpolicycacheManager) Register ¶
func (manager *SCloudpolicycacheManager) Register(ctx context.Context, accountId, providerId, policyId string) (*SCloudpolicycache, error)
type SCloudprovider ¶
type SCloudprovider struct { db.SStandaloneResourceBase Provider string `width:"64" charset:"ascii" list:"domain"` CloudaccountId string `width:"36" charset:"ascii" nullable:"false" list:"user"` }
func (*SCloudprovider) GetCloudaccount ¶
func (self *SCloudprovider) GetCloudaccount() (*SCloudaccount, error)
func (SCloudprovider) GetExternalId ¶
func (self SCloudprovider) GetExternalId() string
func (SCloudprovider) GetGlobalId ¶
func (self SCloudprovider) GetGlobalId() string
func (*SCloudprovider) GetProvider ¶
func (self *SCloudprovider) GetProvider() (cloudprovider.ICloudProvider, error)
func (*SCloudprovider) GetProviderFactory ¶
func (self *SCloudprovider) GetProviderFactory() (cloudprovider.ICloudProviderFactory, error)
func (*SCloudprovider) SyncCustomCloudpoliciesForCloud ¶
func (self *SCloudprovider) SyncCustomCloudpoliciesForCloud(ctx context.Context, clouduser *SClouduser) error
func (*SCloudprovider) SyncCustomCloudpoliciesFromCloud ¶
func (self *SCloudprovider) SyncCustomCloudpoliciesFromCloud(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudprovider) SyncSystemCloudpoliciesForCloud ¶
func (self *SCloudprovider) SyncSystemCloudpoliciesForCloud(ctx context.Context, clouduser *SClouduser) error
type SCloudproviderManager ¶
type SCloudproviderManager struct {
db.SStandaloneResourceBaseManager
}
+onecloud:swagger-gen-ignore
var CloudproviderManager *SCloudproviderManager
func (*SCloudproviderManager) FetchProvider ¶
func (manager *SCloudproviderManager) FetchProvider(ctx context.Context, id string) (*SCloudprovider, error)
type SCloudproviderResourceBase ¶
type SCloudproviderResourceBase struct { // 子订阅Id CloudproviderId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"optional" json:"cloudprovider_id"` }
type SCloudproviderResourceBaseManager ¶
type SCloudproviderResourceBaseManager struct { }
func (*SCloudproviderResourceBaseManager) FetchCustomizeColumns ¶
func (manager *SCloudproviderResourceBaseManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudproviderResourceDetails
func (*SCloudproviderResourceBaseManager) ListItemFilter ¶
func (manager *SCloudproviderResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudproviderResourceListInput) (*sqlchemy.SQuery, error)
type SCloudrole ¶
type SCloudrole struct { db.SEnabledStatusInfrasResourceBase db.SExternalizedResourceBase SCloudaccountResourceBase SAMLProviderResourceBase SCloudgroupResourceBase Document *jsonutils.JSONDict `length:"long" charset:"ascii" list:"domain" update:"domain" create:"domain_required"` OwnerId string `width:"128" charset:"ascii" index:"true" list:"user" nullable:"false" create:"optional"` }
func (*SCloudrole) CustomizeDelete ¶
func (self *SCloudrole) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
删除公有云角色
func (*SCloudrole) GetCloudpolicies ¶
func (self *SCloudrole) GetCloudpolicies() ([]SCloudpolicy, error)
func (*SCloudrole) GetICloudrole ¶
func (self *SCloudrole) GetICloudrole() (cloudprovider.ICloudrole, error)
func (*SCloudrole) PerformPurge ¶
func (self *SCloudrole) PerformPurge(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.CloudrolePurgeInput) (jsonutils.JSONObject, error)
清除角色(不删除云上资源)
func (*SCloudrole) RealDelete ¶
func (self *SCloudrole) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudrole) StartCloudroleDeleteTask ¶
func (self *SCloudrole) StartCloudroleDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, purge bool, parentTaskId string) error
func (*SCloudrole) SyncRoles ¶
func (self *SCloudrole) SyncRoles() error
type SCloudroleManager ¶
type SCloudroleManager struct { db.SStatusInfrasResourceBaseManager db.SExternalizedResourceBaseManager SCloudaccountResourceBaseManager SAMLProviderResourceBaseManager SCloudgroupResourceBaseManager }
var CloudroleManager *SCloudroleManager
func (*SCloudroleManager) FetchCustomizeColumns ¶
func (manager *SCloudroleManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.CloudroleDetails
获取公有云角色详情
func (*SCloudroleManager) ListItemFilter ¶
func (manager *SCloudroleManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.CloudroleListInput) (*sqlchemy.SQuery, error)
公有云角色列表
type SClouduser ¶
type SClouduser struct { db.SStatusDomainLevelUserResourceBase db.SExternalizedResourceBase SCloudaccountResourceBase Secret string `length:"0" charset:"ascii" nullable:"true" list:"user" create:"domain_optional"` // 是否可以控制台登录 IsConsoleLogin tristate.TriState `default:"false" list:"user" create:"optional"` // 手机号码 MobilePhone string `width:"36" charset:"ascii" nullable:"true" list:"user" create:"domain_optional"` // 邮箱地址 Email string `width:"36" charset:"ascii" list:"user" create:"domain_optional"` }
func (*SClouduser) CustomizeDelete ¶
func (self *SClouduser) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
删除公有云用户
func (*SClouduser) Delete ¶
func (self *SClouduser) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SClouduser) GetCloudgorupPoliciesQuery ¶
func (self *SClouduser) GetCloudgorupPoliciesQuery(policyType string) *sqlchemy.SQuery
func (*SClouduser) GetCloudgroupCount ¶
func (self *SClouduser) GetCloudgroupCount() (int, error)
func (*SClouduser) GetCloudgroupPolicies ¶
func (self *SClouduser) GetCloudgroupPolicies() ([]SCloudpolicy, error)
func (*SClouduser) GetCloudgroupQuery ¶
func (self *SClouduser) GetCloudgroupQuery() *sqlchemy.SQuery
func (*SClouduser) GetCloudgroupcaches ¶
func (self *SClouduser) GetCloudgroupcaches() ([]SCloudgroupcache, error)
func (*SClouduser) GetCloudgroups ¶
func (self *SClouduser) GetCloudgroups() ([]SCloudgroup, error)
func (*SClouduser) GetCloudpolicies ¶
func (self *SClouduser) GetCloudpolicies(providerId string) ([]SCloudpolicy, error)
func (*SClouduser) GetCloudpolicy ¶
func (self *SClouduser) GetCloudpolicy(policyId string, providerId string) ([]SCloudpolicy, error)
func (*SClouduser) GetCloudpolicyCount ¶
func (self *SClouduser) GetCloudpolicyCount() (int, error)
func (*SClouduser) GetCloudpolicyQuery ¶
func (self *SClouduser) GetCloudpolicyQuery(providerId string) *sqlchemy.SQuery
func (*SClouduser) GetClouduserPolicies ¶
func (self *SClouduser) GetClouduserPolicies() ([]SClouduserPolicy, error)
func (*SClouduser) GetCustomCloudgroupPolicies ¶
func (self *SClouduser) GetCustomCloudgroupPolicies() ([]SCloudpolicy, error)
func (*SClouduser) GetCustomCloudpolicies ¶
func (self *SClouduser) GetCustomCloudpolicies(cloudproviderId string) ([]SCloudpolicy, error)
func (*SClouduser) GetCustomCloudpolicycaches ¶
func (self *SClouduser) GetCustomCloudpolicycaches(cloudproviderId string) ([]SCloudpolicycache, error)
func (*SClouduser) GetDetailsAccessKeys ¶
func (self *SClouduser) GetDetailsAccessKeys(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SClouduser) GetIClouduser ¶
func (self *SClouduser) GetIClouduser() (cloudprovider.IClouduser, error)
func (*SClouduser) GetPassword ¶
func (self *SClouduser) GetPassword() (string, error)
func (*SClouduser) GetSystemCloudgroupPolicies ¶
func (self *SClouduser) GetSystemCloudgroupPolicies() ([]SCloudpolicy, error)
func (*SClouduser) GetSystemCloudpolicies ¶
func (self *SClouduser) GetSystemCloudpolicies(cloudproviderId string) ([]SCloudpolicy, error)
func (*SClouduser) PerformAttachPolicy ¶
func (self *SClouduser) PerformAttachPolicy(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserAttachPolicyInput) (jsonutils.JSONObject, error)
绑定用户权限 用户状态必须为: available
func (*SClouduser) PerformChangeOwner ¶
func (self *SClouduser) PerformChangeOwner(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserChangeOwnerInput) (jsonutils.JSONObject, error)
变更子账号所属本地用户
func (*SClouduser) PerformCreateAccessKey ¶
func (self *SClouduser) PerformCreateAccessKey(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserCreateAccessKeyInput) (jsonutils.JSONObject, error)
func (*SClouduser) PerformDeleteAccessKey ¶
func (self *SClouduser) PerformDeleteAccessKey(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserDeleteAccessKeyInput) (jsonutils.JSONObject, error)
func (*SClouduser) PerformDetachPolicy ¶
func (self *SClouduser) PerformDetachPolicy(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserDetachPolicyInput) (jsonutils.JSONObject, error)
解绑用户权限 用户状态必须为: available
func (*SClouduser) PerformJoinGroup ¶
func (self *SClouduser) PerformJoinGroup(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserJoinGroupInput) (jsonutils.JSONObject, error)
将用户加入权限组 用户状态必须为: available
func (*SClouduser) PerformLeaveGroup ¶
func (self *SClouduser) PerformLeaveGroup(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserLeaveGroupInput) (jsonutils.JSONObject, error)
将用户从权限组中移除 用户状态必须为: available
func (*SClouduser) PerformResetPassword ¶
func (self *SClouduser) PerformResetPassword(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserResetPasswordInput) (jsonutils.JSONObject, error)
重置用户密码 用户状态必须为: available
func (*SClouduser) PerformSetGroups ¶
func (self *SClouduser) PerformSetGroups(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserSetGroupsInput) (jsonutils.JSONObject, error)
设置用户权限组列表(全量覆盖) 用户状态必须为: available
func (*SClouduser) PerformSetPolicies ¶
func (self *SClouduser) PerformSetPolicies(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserSetPoliciesInput) (jsonutils.JSONObject, error)
设置用户权限列表(全量覆盖) 用户状态必须为: available
func (*SClouduser) PerformSync ¶
func (self *SClouduser) PerformSync(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserSyncInput) (jsonutils.JSONObject, error)
同步用户权限和权限组到云上 用户状态必须为: available
func (*SClouduser) PerformSyncstatus ¶
func (self *SClouduser) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserSyncstatusInput) (jsonutils.JSONObject, error)
同步用户状态
func (*SClouduser) PostCreate ¶
func (self *SClouduser) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject)
func (*SClouduser) RealDelete ¶
func (self *SClouduser) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SClouduser) SavePassword ¶
func (self *SClouduser) SavePassword(password string) error
func (*SClouduser) StartClouduserDeleteTask ¶
func (self *SClouduser) StartClouduserDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, parentTaskId string) error
func (*SClouduser) StartClouduserResetPasswordTask ¶
func (self *SClouduser) StartClouduserResetPasswordTask(ctx context.Context, userCred mcclient.TokenCredential, password string, parentTaskId string) error
func (*SClouduser) StartClouduserSyncGroupsTask ¶
func (self *SClouduser) StartClouduserSyncGroupsTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SClouduser) StartClouduserSyncPoliciesTask ¶
func (self *SClouduser) StartClouduserSyncPoliciesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SClouduser) StartClouduserSyncTask ¶
func (self *SClouduser) StartClouduserSyncTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SClouduser) StartClouduserSyncstatusTask ¶
func (self *SClouduser) StartClouduserSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SClouduser) SyncCloudgroups ¶
func (self *SClouduser) SyncCloudgroups(ctx context.Context, userCred mcclient.TokenCredential, iGroups []cloudprovider.ICloudgroup) compare.SyncResult
func (*SClouduser) SyncCustomCloudpolicies ¶
func (self *SClouduser) SyncCustomCloudpolicies(ctx context.Context, userCred mcclient.TokenCredential, iPolicies []cloudprovider.ICloudpolicy, cloudproviderId string) compare.SyncResult
func (*SClouduser) SyncCustomCloudpoliciesForCloud ¶
func (self *SClouduser) SyncCustomCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SClouduser) SyncSystemCloudpolicies ¶
func (self *SClouduser) SyncSystemCloudpolicies(ctx context.Context, userCred mcclient.TokenCredential, iPolicies []cloudprovider.ICloudpolicy, cloudproviderId string) compare.SyncResult
func (*SClouduser) SyncSystemCloudpoliciesForCloud ¶
func (self *SClouduser) SyncSystemCloudpoliciesForCloud(ctx context.Context, userCred mcclient.TokenCredential) error
将本地的权限推送到云上(覆盖云上设置)
func (*SClouduser) SyncWithClouduser ¶
func (self *SClouduser) SyncWithClouduser(ctx context.Context, userCred mcclient.TokenCredential, iUser cloudprovider.IClouduser) error
func (*SClouduser) ValidateUpdateData ¶
func (self *SClouduser) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserUpdateInput) (api.ClouduserUpdateInput, error)
+onecloud:swagger-gen-ignore
type SClouduserJointsBase ¶
type SClouduserJointsBase struct { db.SJointResourceBase SClouduserResourceBase }
func (*SClouduserJointsBase) GetClouduser ¶
func (self *SClouduserJointsBase) GetClouduser() (*SClouduser, error)
func (*SClouduserJointsBase) ValidateUpdateData ¶
func (self *SClouduserJointsBase) ValidateUpdateData( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.ClouduserJointBaseUpdateInput, ) (api.ClouduserJointBaseUpdateInput, error)
type SClouduserJointsManager ¶
type SClouduserJointsManager struct { db.SJointResourceBaseManager SClouduserResourceBaseManager }
func NewClouduserJointsManager ¶
func NewClouduserJointsManager(dt interface{}, tableName string, keyword string, keywordPlural string, slave db.IVirtualModelManager) SClouduserJointsManager
func (*SClouduserJointsManager) FetchCustomizeColumns ¶
func (manager *SClouduserJointsManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.ClouduserJointResourceDetails
func (*SClouduserJointsManager) GetMasterFieldName ¶
func (manager *SClouduserJointsManager) GetMasterFieldName() string
func (*SClouduserJointsManager) ListItemExportKeys ¶
func (manager *SClouduserJointsManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, keys stringutils2.SSortedStrings, ) (*sqlchemy.SQuery, error)
func (*SClouduserJointsManager) ListItemFilter ¶
func (manager *SClouduserJointsManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.ClouduserJointsListInput, ) (*sqlchemy.SQuery, error)
func (*SClouduserJointsManager) OrderByExtraFields ¶
func (manager *SClouduserJointsManager) OrderByExtraFields( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.ClouduserJointsListInput, ) (*sqlchemy.SQuery, error)
type SClouduserManager ¶
type SClouduserManager struct { db.SStatusDomainLevelUserResourceBaseManager db.SExternalizedResourceBaseManager SCloudaccountResourceBaseManager }
var ClouduserManager *SClouduserManager
func (*SClouduserManager) EnableGenerateName ¶
func (manager *SClouduserManager) EnableGenerateName() bool
func (*SClouduserManager) FetchCustomizeColumns ¶
func (manager *SClouduserManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.ClouduserDetails
获取公有云用户详情
func (*SClouduserManager) FetchUniqValues ¶
func (manager *SClouduserManager) FetchUniqValues(ctx context.Context, data jsonutils.JSONObject) jsonutils.JSONObject
func (*SClouduserManager) FilterByUniqValues ¶
func (manager *SClouduserManager) FilterByUniqValues(q *sqlchemy.SQuery, values jsonutils.JSONObject) *sqlchemy.SQuery
func (*SClouduserManager) GetIVirtualModelManager ¶
func (manager *SClouduserManager) GetIVirtualModelManager() db.IVirtualModelManager
func (*SClouduserManager) GetResourceCount ¶
func (manager *SClouduserManager) GetResourceCount() ([]db.SScopeResourceCount, error)
func (*SClouduserManager) ListItemFilter ¶
func (manager *SClouduserManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.ClouduserListInput) (*sqlchemy.SQuery, error)
公有云用户列表
func (*SClouduserManager) OrderByExtraFields ¶
func (manager *SClouduserManager) OrderByExtraFields( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.ClouduserListInput, ) (*sqlchemy.SQuery, error)
func (*SClouduserManager) QueryDistinctExtraField ¶
func (*SClouduserManager) ValidateCreateData ¶
func (manager *SClouduserManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input api.ClouduserCreateInput) (api.ClouduserCreateInput, error)
创建公有云用户
type SClouduserPolicy ¶
type SClouduserPolicy struct { SClouduserJointsBase SCloudproviderResourceBase SCloudpolicyResourceBase }
func (*SClouduserPolicy) CustomizeDelete ¶
func (self *SClouduserPolicy) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
+onecloud:swagger-gen-ignore
func (*SClouduserPolicy) Delete ¶
func (self *SClouduserPolicy) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SClouduserPolicy) Detach ¶
func (self *SClouduserPolicy) Detach(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SClouduserPolicy) ValidateUpdateData ¶
func (self *SClouduserPolicy) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input jsonutils.JSONObject) (jsonutils.JSONObject, error)
+onecloud:swagger-gen-ignore
type SClouduserPolicyManager ¶
type SClouduserPolicyManager struct { SClouduserJointsManager SCloudproviderResourceBaseManager SCloudpolicyResourceBaseManager }
+onecloud:swagger-gen-ignore
var ClouduserPolicyManager *SClouduserPolicyManager
func (*SClouduserPolicyManager) FetchCustomizeColumns ¶
func (manager *SClouduserPolicyManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.ClouduserPolicyDetails
获取公有云用户权限详情
func (*SClouduserPolicyManager) GetSlaveFieldName ¶
func (manager *SClouduserPolicyManager) GetSlaveFieldName() string
func (*SClouduserPolicyManager) InitializeData ¶
func (manager *SClouduserPolicyManager) InitializeData() error
func (*SClouduserPolicyManager) ListItemExportKeys ¶
func (manager *SClouduserPolicyManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, keys stringutils2.SSortedStrings, ) (*sqlchemy.SQuery, error)
func (*SClouduserPolicyManager) ListItemFilter ¶
func (manager *SClouduserPolicyManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.ClouduserPolicyListInput, ) (*sqlchemy.SQuery, error)
公有云用户权限列表
func (*SClouduserPolicyManager) OrderByExtraFields ¶
func (manager *SClouduserPolicyManager) OrderByExtraFields( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.ClouduserPolicyListInput, ) (*sqlchemy.SQuery, error)
func (*SClouduserPolicyManager) ValidateCreateData ¶
func (manager *SClouduserPolicyManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject) (jsonutils.JSONObject, error)
+onecloud:swagger-gen-ignore
type SClouduserResourceBase ¶
type SClouduserResourceBase struct {
ClouduserId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required"`
}
type SClouduserResourceBaseManager ¶
type SClouduserResourceBaseManager struct { }
func (*SClouduserResourceBaseManager) FetchCustomizeColumns ¶
func (manager *SClouduserResourceBaseManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.ClouduserResourceDetails
func (*SClouduserResourceBaseManager) ListItemFilter ¶
func (manager *SClouduserResourceBaseManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.ClouduserResourceListInput) (*sqlchemy.SQuery, error)
type SHuaweiSAMLDriver ¶
func (*SHuaweiSAMLDriver) GetEntityID ¶
func (d *SHuaweiSAMLDriver) GetEntityID() string
func (*SHuaweiSAMLDriver) GetIdpInitiatedLoginData ¶
func (d *SHuaweiSAMLDriver) GetIdpInitiatedLoginData(ctx context.Context, userCred mcclient.TokenCredential, cloudAccountId string, sp *idp.SSAMLServiceProvider, redirectUrl string) (samlutils.SSAMLIdpInitiatedLoginData, error)
func (*SHuaweiSAMLDriver) GetMetadataFilename ¶
func (d *SHuaweiSAMLDriver) GetMetadataFilename() string
func (*SHuaweiSAMLDriver) GetMetadataUrl ¶
func (d *SHuaweiSAMLDriver) GetMetadataUrl() string
func (*SHuaweiSAMLDriver) GetSpInitiatedLoginData ¶
func (d *SHuaweiSAMLDriver) GetSpInitiatedLoginData(ctx context.Context, userCred mcclient.TokenCredential, cloudAccountId string, sp *idp.SSAMLServiceProvider) (samlutils.SSAMLSpInitiatedLoginData, error)
type SSAMLProvider ¶
type SSAMLProvider struct { db.SStatusInfrasResourceBase db.SExternalizedResourceBase SCloudaccountResourceBase EntityId string `get:"domain" create:"domain_optional" list:"domain"` MetadataDocument string `get:"domain" create:"domain_optional"` AuthUrl string `width:"512" charset:"ascii" get:"domain" list:"domain"` }
func (*SSAMLProvider) CustomizeDelete ¶
func (self *SSAMLProvider) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
删除
func (*SSAMLProvider) Delete ¶
func (self *SSAMLProvider) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SSAMLProvider) GetMetadataDocument ¶
func (self *SSAMLProvider) GetMetadataDocument() (samlutils.EntityDescriptor, error)
func (*SSAMLProvider) IsNeedUpldateMetadata ¶
func (self *SSAMLProvider) IsNeedUpldateMetadata() bool
func (*SSAMLProvider) PostCreate ¶
func (self *SSAMLProvider) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject)
func (*SSAMLProvider) RealDelete ¶
func (self *SSAMLProvider) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SSAMLProvider) StartSAMLProviderCreateTask ¶
func (self *SSAMLProvider) StartSAMLProviderCreateTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SSAMLProvider) StartSAMLProviderDeleteTask ¶
func (self *SSAMLProvider) StartSAMLProviderDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, parentTaskId string) error
func (*SSAMLProvider) StartSAMLProviderSyncTask ¶
func (self *SSAMLProvider) StartSAMLProviderSyncTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SSAMLProvider) StartSAMLProviderUpdateMetadataTask ¶
func (self *SSAMLProvider) StartSAMLProviderUpdateMetadataTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SSAMLProvider) SyncWithCloudSAMLProvider ¶
func (self *SSAMLProvider) SyncWithCloudSAMLProvider(ctx context.Context, userCred mcclient.TokenCredential, ext cloudprovider.ICloudSAMLProvider) error
type SSAMLProviderManager ¶
type SSAMLProviderManager struct { db.SStatusInfrasResourceBaseManager db.SExternalizedResourceBaseManager SCloudaccountResourceBaseManager }
var SAMLProviderManager *SSAMLProviderManager
func (*SSAMLProviderManager) FetchCustomizeColumns ¶
func (manager *SSAMLProviderManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.SAMLProviderDetails
func (*SSAMLProviderManager) FetchUniqValues ¶
func (manager *SSAMLProviderManager) FetchUniqValues(ctx context.Context, data jsonutils.JSONObject) jsonutils.JSONObject
func (*SSAMLProviderManager) FilterByUniqValues ¶
func (manager *SSAMLProviderManager) FilterByUniqValues(q *sqlchemy.SQuery, values jsonutils.JSONObject) *sqlchemy.SQuery
func (*SSAMLProviderManager) GetIVirtualModelManager ¶
func (manager *SSAMLProviderManager) GetIVirtualModelManager() db.IVirtualModelManager
func (*SSAMLProviderManager) GetResourceCount ¶
func (manager *SSAMLProviderManager) GetResourceCount() ([]db.SScopeResourceCount, error)
func (*SSAMLProviderManager) ListItemFilter ¶
func (manager *SSAMLProviderManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.SAMLProviderListInput) (*sqlchemy.SQuery, error)
公有云身份提供商列表
func (*SSAMLProviderManager) ValidateCreateData ¶
func (manager *SSAMLProviderManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input api.SAMLProviderCreateInput) (api.SAMLProviderCreateInput, error)
创建云账号的身份提供商
type SSamluser ¶
type SSamluser struct { db.SStatusDomainLevelUserResourceBase db.SExternalizedResourceBase SCloudgroupResourceBase SCloudaccountResourceBase // 邮箱地址 Email string `width:"36" charset:"ascii" nullable:"true" list:"user" create:"domain_optional"` }
func (*SSamluser) SyncAzureGroup ¶
type SSamluserManager ¶
type SSamluserManager struct { db.SStatusDomainLevelUserResourceBaseManager db.SExternalizedResourceBaseManager SCloudgroupResourceBaseManager SCloudaccountResourceBaseManager }
var SamluserManager *SSamluserManager
func (*SSamluserManager) FetchCustomizeColumns ¶
func (manager *SSamluserManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []api.SamluserDetails
func (*SSamluserManager) FetchUniqValues ¶
func (manager *SSamluserManager) FetchUniqValues(ctx context.Context, data jsonutils.JSONObject) jsonutils.JSONObject
func (*SSamluserManager) FilterByUniqValues ¶
func (manager *SSamluserManager) FilterByUniqValues(q *sqlchemy.SQuery, values jsonutils.JSONObject) *sqlchemy.SQuery
func (*SSamluserManager) GetIVirtualModelManager ¶
func (manager *SSamluserManager) GetIVirtualModelManager() db.IVirtualModelManager
func (*SSamluserManager) GetResourceCount ¶
func (manager *SSamluserManager) GetResourceCount() ([]db.SScopeResourceCount, error)
func (*SSamluserManager) ListItemFilter ¶
func (manager *SSamluserManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query api.SamluserListInput) (*sqlchemy.SQuery, error)
SAML认证用户列表
func (*SSamluserManager) ValidateCreateData ¶
func (manager *SSamluserManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input api.SamluserCreateInput) (api.SamluserCreateInput, error)
创建SAML认证用户
type SamlInstance ¶
type SamlInstance func() *idp.SSAMLIdpInstance
var (
SamlIdpInstance SamlInstance = nil
)
Source Files ¶
- cloudaccount.go
- cloudaccountresource.go
- cloudgroup.go
- cloudgroup_policies.go
- cloudgroup_users.go
- cloudgroupcaches.go
- cloudgroupjoints.go
- cloudgroupresource.go
- cloudpolicy.go
- cloudpolicycaches.go
- cloudpolicyresource.go
- cloudprovider.go
- cloudproviderresource.go
- cloudrole.go
- clouduser.go
- clouduser_policies.go
- clouduserjoints.go
- clouduserresource.go
- doc.go
- huawei_driver.go
- huawei_facgory.go
- initdb.go
- saml_provider.go
- samldriver.go
- samlproviderresource.go
- samluser.go