Documentation ¶
Index ¶
- func AllDrivers() map[string]ICloudSAMLLoginDriver
- func GetMetadata(driver ICloudSAMLLoginDriver) ([]byte, error)
- func InitDB() error
- func Register(driver ICloudSAMLLoginDriver)
- func RegisterProviderDriver(driver IProviderDriver)
- func UnRegister(entityId string)
- type ICloudSAMLLoginDriver
- type IProviderDriver
- type SAMLProviderResourceBase
- type SAMLProviderResourceBaseManager
- type SCloudaccount
- func (self *SCloudaccount) GetCloudgroups(managerId string) ([]SCloudgroup, error)
- func (self *SCloudaccount) GetCloudpolicies(managerId string) ([]SCloudpolicy, error)
- func (self *SCloudaccount) GetCloudproviderId() string
- func (self *SCloudaccount) GetCloudproviders() ([]SCloudprovider, error)
- func (self *SCloudaccount) GetCloudroles(managerId string) ([]SCloudrole, error)
- func (self *SCloudaccount) GetCloudusers(managerId string) ([]SClouduser, error)
- func (self *SCloudaccount) GetDriver() (IProviderDriver, error)
- func (self *SCloudaccount) GetProvider() (cloudprovider.ICloudProvider, error)
- func (self *SCloudaccount) GetSAMLProviders(managerId string) ([]SSAMLProvider, error)
- func (self *SCloudaccount) GetSamlProvider() (*SSAMLProvider, error)
- func (self *SCloudaccount) GetSamlusers() ([]SSamluser, error)
- func (self *SCloudaccount) IsSAMLProviderValid() (*SSAMLProvider, bool)
- func (self *SCloudaccount) RegisterSAMProvider() (*SSAMLProvider, error)
- func (self *SCloudaccount) StartSAMLProviderCreateTask(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudaccount) StartSyncCloudaccountResourcesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudaccount) SyncCloudgroups(ctx context.Context, userCred mcclient.TokenCredential, ...) ([]SCloudgroup, []cloudprovider.ICloudgroup, compare.SyncResult)
- 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) SyncPolicies(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SCloudaccount) SyncSAMLProviders(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- type SCloudaccountManager
- func (m *SCloudaccountManager) FetchAccount(id string) (*SCloudaccount, error)
- func (manager *SCloudaccountManager) GetCloudaccounts() ([]SCloudaccount, error)
- func (manager *SCloudaccountManager) GetResourceCount() ([]db.SScopeResourceCount, error)
- func (m *SCloudaccountManager) OnAdd(obj *jsonutils.JSONDict)
- func (m *SCloudaccountManager) OnDelete(obj *jsonutils.JSONDict)
- func (m *SCloudaccountManager) OnUpdate(oldObj, newObj *jsonutils.JSONDict)
- func (m *SCloudaccountManager) StartWatchSAMLInRegion() error
- func (manager *SCloudaccountManager) SyncCloudaccountResources(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) GetCloudpolicies() ([]SCloudpolicy, error)
- func (self *SCloudgroup) GetCloudpolicy(policyId string) (*SCloudpolicy, error)
- func (self *SCloudgroup) GetCloudpolicyCount() (int, error)
- func (self *SCloudgroup) GetCloudpolicyQuery() *sqlchemy.SQuery
- func (group *SCloudgroup) GetCloudprovider() (*SCloudprovider, error)
- func (self *SCloudgroup) GetCloudroles() ([]SCloudrole, error)
- 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) GetDetailsSaml(ctx context.Context, userCred mcclient.TokenCredential, ...) (*api.GetCloudaccountSamlOutput, error)
- func (group *SCloudgroup) GetICloudgroup() (cloudprovider.ICloudgroup, error)
- func (self *SCloudgroup) GetProvider() (cloudprovider.ICloudProvider, error)
- func (self *SCloudgroup) GetSamlProvider() (*SSAMLProvider, error)
- func (self *SCloudgroup) GetSamlusers() ([]SSamluser, 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) StartCloudgroupSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroup) StartCreateTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroup) StartDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroup) StartSetPoliciesTask(ctx context.Context, userCred mcclient.TokenCredential, add, del []api.SPolicy, ...) error
- func (self *SCloudgroup) StartSetUsersTask(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudgroup) StartSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SCloudgroup) SyncCloudpolicies(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SCloudgroup) SyncCloudusers(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SCloudgroup) SyncPolicies(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SCloudgroup) SyncUsers(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (group *SCloudgroup) SyncWithCloudgroup(ctx context.Context, userCred mcclient.TokenCredential, ...) 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) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*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 SCloudpolicy
- func (self *SCloudpolicy) GetCloudprovider() (*SCloudprovider, error)
- func (self SCloudpolicy) GetGlobalId() string
- func (self *SCloudpolicy) GetProvider() (cloudprovider.ICloudProvider, error)
- func (self *SCloudpolicy) SyncWithCloudpolicy(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudpolicy) ValidateDeleteCondition(ctx context.Context, info *api.CloudpolicyDetails) error
- func (self *SCloudpolicy) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*api.CloudpolicyUpdateInput, 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) TotalResourceCount(policyIds []string) (map[string]api.PolicyUsage, 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 SCloudprovider
- func (self *SCloudprovider) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudprovider) GetCloudaccount() (*SCloudaccount, error)
- func (self *SCloudprovider) GetDriver() (IProviderDriver, error)
- func (self *SCloudprovider) GetProvider() (cloudprovider.ICloudProvider, error)
- func (self *SCloudprovider) GetRole(ctx context.Context, userId string) (*SCloudrole, error)
- func (self *SCloudprovider) GetSamlProvider() (*SSAMLProvider, error)
- func (self *SCloudprovider) GetSamlProviders() ([]SSAMLProvider, error)
- func (self *SCloudprovider) GetSamlUser(userId string) (*SSamluser, error)
- func (self *SCloudprovider) StartCloudproviderSyncResourcesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- type SCloudproviderManager
- func (m *SCloudproviderManager) FetchProvier(id string) (*SCloudprovider, error)
- func (manager *SCloudproviderManager) GetCloudproviders() ([]SCloudprovider, error)
- func (m *SCloudproviderManager) OnAdd(obj *jsonutils.JSONDict)
- func (m *SCloudproviderManager) OnDelete(obj *jsonutils.JSONDict)
- func (m *SCloudproviderManager) OnUpdate(oldObj, newObj *jsonutils.JSONDict)
- func (m *SCloudproviderManager) StartWatchInRegion() error
- func (manager *SCloudproviderManager) SyncCloudproviderResources(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- 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) GetCloudprovider() (*SCloudprovider, error)
- func (self *SCloudrole) GetICloudrole() (cloudprovider.ICloudrole, error)
- func (self *SCloudrole) GetProvider() (cloudprovider.ICloudProvider, error)
- func (self *SCloudrole) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SCloudrole) StartCloudroleDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) 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) GetCloudgroup(id string) (*SCloudgroup, error)
- func (self *SClouduser) GetCloudgroupCount() (int, error)
- func (self *SClouduser) GetCloudgroupQuery() *sqlchemy.SQuery
- func (self *SClouduser) GetCloudgroups() ([]SCloudgroup, error)
- func (self *SClouduser) GetCloudpolicies() ([]SCloudpolicy, error)
- func (self *SClouduser) GetCloudpolicy(policyId string) (*SCloudpolicy, error)
- func (self *SClouduser) GetCloudpolicyQuery() *sqlchemy.SQuery
- func (self *SClouduser) GetCloudprovider() (*SCloudprovider, error)
- func (self *SClouduser) GetClouduserPolicies() ([]SClouduserPolicy, 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) GetProvider() (cloudprovider.ICloudProvider, 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) 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) StartClouduserCreateTask(ctx context.Context, userCred mcclient.TokenCredential, notify bool, ...) 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) StartClouduserSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
- func (self *SClouduser) StartSetGroupsTask(ctx context.Context, userCred mcclient.TokenCredential, add, del []api.SGroup, ...) error
- func (self *SClouduser) StartSetPoliciesTask(ctx context.Context, userCred mcclient.TokenCredential, add, del []api.SPolicy, ...) error
- func (self *SClouduser) SyncCloudgroups(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SClouduser) SyncCloudpolicies(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SClouduser) SyncGroups(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- func (self *SClouduser) SyncPolicies(ctx context.Context, userCred mcclient.TokenCredential, ...) compare.SyncResult
- 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 SPolicyUsageCount
- 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) GetCloudprovider() (*SCloudprovider, error)
- func (self *SSAMLProvider) GetISAMLProvider() (cloudprovider.ICloudSAMLProvider, error)
- func (self *SSAMLProvider) GetMetadataDocument() (samlutils.EntityDescriptor, error)
- func (self *SSAMLProvider) GetProvider() (cloudprovider.ICloudProvider, error)
- func (self *SSAMLProvider) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
- func (self *SSAMLProvider) StartSAMLProviderDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, ...) 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)
- 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) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*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 RegisterProviderDriver ¶
func RegisterProviderDriver(driver IProviderDriver)
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 IProviderDriver ¶
type IProviderDriver interface { GetProvider() string RequestSyncCloudaccountResources(ctx context.Context, userCred mcclient.TokenCredential, account *SCloudaccount, provider cloudprovider.ICloudProvider) error RequestSyncCloudproviderResources(ctx context.Context, userCred mcclient.TokenCredential, cp *SCloudprovider, provider cloudprovider.ICloudProvider) error ValidateCreateCloudgroup(ctx context.Context, userCred mcclient.TokenCredential, cp *SCloudprovider, input *api.CloudgroupCreateInput) (*api.CloudgroupCreateInput, error) RequestCreateCloudgroup(ctx context.Context, userCred mcclient.TokenCredential, cp *SCloudprovider, group *SCloudgroup) error ValidateCreateClouduser(ctx context.Context, userCred mcclient.TokenCredential, cp *SCloudprovider, input *api.ClouduserCreateInput) (*api.ClouduserCreateInput, error) RequestCreateClouduser(ctx context.Context, userCred mcclient.TokenCredential, cp *SCloudprovider, user *SClouduser) error RequestCreateSAMLProvider(ctx context.Context, userCred mcclient.TokenCredential, account *SCloudaccount) error RequestCreateRoleForSamlUser(ctx context.Context, userCred mcclient.TokenCredential, account *SCloudaccount, group *SCloudgroup, user *SSamluser) error }
func GetProviderDriver ¶
func GetProviderDriver(provider string) (IProviderDriver, error)
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 { }
+onecloud:swagger-gen-ignore
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) GetCloudgroups ¶
func (self *SCloudaccount) GetCloudgroups(managerId string) ([]SCloudgroup, error)
func (*SCloudaccount) GetCloudpolicies ¶
func (self *SCloudaccount) GetCloudpolicies(managerId string) ([]SCloudpolicy, 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(managerId string) ([]SCloudrole, error)
func (*SCloudaccount) GetCloudusers ¶
func (self *SCloudaccount) GetCloudusers(managerId string) ([]SClouduser, error)
func (*SCloudaccount) GetDriver ¶
func (self *SCloudaccount) GetDriver() (IProviderDriver, error)
func (*SCloudaccount) GetProvider ¶
func (self *SCloudaccount) GetProvider() (cloudprovider.ICloudProvider, error)
func (*SCloudaccount) GetSAMLProviders ¶
func (self *SCloudaccount) GetSAMLProviders(managerId string) ([]SSAMLProvider, error)
func (*SCloudaccount) GetSamlProvider ¶
func (self *SCloudaccount) GetSamlProvider() (*SSAMLProvider, error)
func (*SCloudaccount) GetSamlusers ¶
func (self *SCloudaccount) GetSamlusers() ([]SSamluser, error)
func (*SCloudaccount) IsSAMLProviderValid ¶
func (self *SCloudaccount) IsSAMLProviderValid() (*SSAMLProvider, bool)
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) StartSyncCloudaccountResourcesTask ¶
func (self *SCloudaccount) StartSyncCloudaccountResourcesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudaccount) SyncCloudgroups ¶
func (self *SCloudaccount) SyncCloudgroups(ctx context.Context, userCred mcclient.TokenCredential, iGroups []cloudprovider.ICloudgroup, managerId string) ([]SCloudgroup, []cloudprovider.ICloudgroup, compare.SyncResult)
func (*SCloudaccount) SyncCloudroles ¶
func (self *SCloudaccount) SyncCloudroles(ctx context.Context, userCred mcclient.TokenCredential, exts []cloudprovider.ICloudrole, managerId string) compare.SyncResult
func (*SCloudaccount) SyncCloudusers ¶
func (self *SCloudaccount) SyncCloudusers( ctx context.Context, userCred mcclient.TokenCredential, iUsers []cloudprovider.IClouduser, managerId string, ) ([]SClouduser, []cloudprovider.IClouduser, compare.SyncResult)
func (*SCloudaccount) SyncPolicies ¶
func (self *SCloudaccount) SyncPolicies(ctx context.Context, userCred mcclient.TokenCredential, iPolicies []cloudprovider.ICloudpolicy, managerId string) compare.SyncResult
func (*SCloudaccount) SyncSAMLProviders ¶
func (self *SCloudaccount) SyncSAMLProviders(ctx context.Context, userCred mcclient.TokenCredential, samls []cloudprovider.ICloudSAMLProvider, managerId string) compare.SyncResult
type SCloudaccountManager ¶
type SCloudaccountManager struct {
db.SDomainLevelResourceBaseManager
}
+onecloud:swagger-gen-ignore
var CloudaccountManager *SCloudaccountManager
func (*SCloudaccountManager) FetchAccount ¶
func (m *SCloudaccountManager) FetchAccount(id string) (*SCloudaccount, error)
func (*SCloudaccountManager) GetCloudaccounts ¶
func (manager *SCloudaccountManager) GetCloudaccounts() ([]SCloudaccount, error)
func (*SCloudaccountManager) GetResourceCount ¶
func (manager *SCloudaccountManager) GetResourceCount() ([]db.SScopeResourceCount, error)
func (*SCloudaccountManager) OnAdd ¶
func (m *SCloudaccountManager) OnAdd(obj *jsonutils.JSONDict)
func (*SCloudaccountManager) OnDelete ¶
func (m *SCloudaccountManager) OnDelete(obj *jsonutils.JSONDict)
func (*SCloudaccountManager) OnUpdate ¶
func (m *SCloudaccountManager) OnUpdate(oldObj, newObj *jsonutils.JSONDict)
func (*SCloudaccountManager) StartWatchSAMLInRegion ¶
func (m *SCloudaccountManager) StartWatchSAMLInRegion() error
func (*SCloudaccountManager) SyncCloudaccountResources ¶
func (manager *SCloudaccountManager) SyncCloudaccountResources(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 { }
+onecloud:swagger-gen-ignore
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 db.SExternalizedResourceBase SCloudaccountResourceBase SCloudproviderResourceBase }
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) 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) GetCloudprovider ¶
func (group *SCloudgroup) GetCloudprovider() (*SCloudprovider, error)
func (*SCloudgroup) GetCloudroles ¶
func (self *SCloudgroup) GetCloudroles() ([]SCloudrole, error)
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) GetDetailsSaml ¶
func (self *SCloudgroup) GetDetailsSaml(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject) (*api.GetCloudaccountSamlOutput, error)
func (*SCloudgroup) GetICloudgroup ¶
func (group *SCloudgroup) GetICloudgroup() (cloudprovider.ICloudgroup, error)
func (*SCloudgroup) GetProvider ¶
func (self *SCloudgroup) GetProvider() (cloudprovider.ICloudProvider, error)
func (*SCloudgroup) GetSamlProvider ¶
func (self *SCloudgroup) GetSamlProvider() (*SSAMLProvider, error)
func (*SCloudgroup) GetSamlusers ¶
func (self *SCloudgroup) GetSamlusers() ([]SSamluser, 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) StartCloudgroupSyncstatusTask ¶
func (self *SCloudgroup) StartCloudgroupSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroup) StartCreateTask ¶
func (self *SCloudgroup) StartCreateTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroup) StartDeleteTask ¶
func (self *SCloudgroup) StartDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroup) StartSetPoliciesTask ¶
func (self *SCloudgroup) StartSetPoliciesTask(ctx context.Context, userCred mcclient.TokenCredential, add, del []api.SPolicy, parentTaskId string) error
func (*SCloudgroup) StartSetUsersTask ¶
func (self *SCloudgroup) StartSetUsersTask(ctx context.Context, userCred mcclient.TokenCredential, add, del []api.GroupUser, parentTaskId string) error
func (*SCloudgroup) StartSyncstatusTask ¶
func (self *SCloudgroup) StartSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SCloudgroup) SyncCloudpolicies ¶
func (self *SCloudgroup) SyncCloudpolicies(ctx context.Context, userCred mcclient.TokenCredential, iGroup cloudprovider.ICloudgroup)
func (*SCloudgroup) SyncCloudusers ¶
func (self *SCloudgroup) SyncCloudusers(ctx context.Context, userCred mcclient.TokenCredential, iGroup cloudprovider.ICloudgroup)
func (*SCloudgroup) SyncPolicies ¶
func (self *SCloudgroup) SyncPolicies(ctx context.Context, userCred mcclient.TokenCredential, iPolicies []cloudprovider.ICloudpolicy) compare.SyncResult
func (*SCloudgroup) SyncUsers ¶
func (self *SCloudgroup) SyncUsers(ctx context.Context, userCred mcclient.TokenCredential, iUsers []cloudprovider.IClouduser) compare.SyncResult
func (*SCloudgroup) SyncWithCloudgroup ¶
func (group *SCloudgroup) SyncWithCloudgroup(ctx context.Context, userCred mcclient.TokenCredential, iGroup cloudprovider.ICloudgroup) 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
}
+onecloud:swagger-gen-ignore
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 SCloudaccountResourceBaseManager SCloudproviderResourceBaseManager }
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) QueryDistinctExtraField ¶
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 { }
+onecloud:swagger-gen-ignore
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 SCloudpolicy ¶
type SCloudpolicy struct { db.SStatusInfrasResourceBase db.SExternalizedResourceBase SCloudaccountResourceBase SCloudproviderResourceBase // 权限类型 // // | 权限类型 | 说明 | // |---------------|----------------------| // | system | 平台内置权限 | // | custom | 用户自定义权限 | PolicyType string `width:"16" charset:"ascii" list:"domain" create:"optional" default:"custom"` // 策略内容 Document *jsonutils.JSONDict `length:"long" charset:"utf8" list:"domain" update:"domain" create:"domain_required"` }
func (*SCloudpolicy) GetCloudprovider ¶
func (self *SCloudpolicy) GetCloudprovider() (*SCloudprovider, error)
func (SCloudpolicy) GetGlobalId ¶
func (self SCloudpolicy) GetGlobalId() string
func (*SCloudpolicy) GetProvider ¶
func (self *SCloudpolicy) GetProvider() (cloudprovider.ICloudProvider, error)
func (*SCloudpolicy) SyncWithCloudpolicy ¶
func (self *SCloudpolicy) SyncWithCloudpolicy(ctx context.Context, userCred mcclient.TokenCredential, iPolicy cloudprovider.ICloudpolicy) error
func (*SCloudpolicy) ValidateDeleteCondition ¶
func (self *SCloudpolicy) ValidateDeleteCondition(ctx context.Context, info *api.CloudpolicyDetails) error
func (*SCloudpolicy) ValidateUpdateData ¶
func (self *SCloudpolicy) ValidateUpdateData( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input *api.CloudpolicyUpdateInput, ) (*api.CloudpolicyUpdateInput, error)
+onecloud:swagger-gen-ignore
type SCloudpolicyManager ¶
type SCloudpolicyManager struct { db.SStatusInfrasResourceBaseManager db.SExternalizedResourceBaseManager SCloudaccountResourceBaseManager SCloudproviderResourceBaseManager }
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) TotalResourceCount ¶
func (manager *SCloudpolicyManager) TotalResourceCount(policyIds []string) (map[string]api.PolicyUsage, error)
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)
+onecloud:swagger-gen-ignore
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 { }
+onecloud:swagger-gen-ignore
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 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) Delete ¶
func (self *SCloudprovider) Delete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SCloudprovider) GetCloudaccount ¶
func (self *SCloudprovider) GetCloudaccount() (*SCloudaccount, error)
func (*SCloudprovider) GetDriver ¶
func (self *SCloudprovider) GetDriver() (IProviderDriver, error)
func (*SCloudprovider) GetProvider ¶
func (self *SCloudprovider) GetProvider() (cloudprovider.ICloudProvider, error)
func (*SCloudprovider) GetRole ¶
func (self *SCloudprovider) GetRole(ctx context.Context, userId string) (*SCloudrole, error)
func (*SCloudprovider) GetSamlProvider ¶
func (self *SCloudprovider) GetSamlProvider() (*SSAMLProvider, error)
func (*SCloudprovider) GetSamlProviders ¶
func (self *SCloudprovider) GetSamlProviders() ([]SSAMLProvider, error)
func (*SCloudprovider) GetSamlUser ¶
func (self *SCloudprovider) GetSamlUser(userId string) (*SSamluser, error)
func (*SCloudprovider) StartCloudproviderSyncResourcesTask ¶
func (self *SCloudprovider) StartCloudproviderSyncResourcesTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
type SCloudproviderManager ¶
type SCloudproviderManager struct {
db.SStandaloneResourceBaseManager
}
+onecloud:swagger-gen-ignore
var CloudproviderManager *SCloudproviderManager
func (*SCloudproviderManager) FetchProvier ¶
func (m *SCloudproviderManager) FetchProvier(id string) (*SCloudprovider, error)
func (*SCloudproviderManager) GetCloudproviders ¶
func (manager *SCloudproviderManager) GetCloudproviders() ([]SCloudprovider, error)
func (*SCloudproviderManager) OnAdd ¶
func (m *SCloudproviderManager) OnAdd(obj *jsonutils.JSONDict)
func (*SCloudproviderManager) OnDelete ¶
func (m *SCloudproviderManager) OnDelete(obj *jsonutils.JSONDict)
func (*SCloudproviderManager) OnUpdate ¶
func (m *SCloudproviderManager) OnUpdate(oldObj, newObj *jsonutils.JSONDict)
func (*SCloudproviderManager) StartWatchInRegion ¶
func (m *SCloudproviderManager) StartWatchInRegion() error
func (*SCloudproviderManager) SyncCloudproviderResources ¶
func (manager *SCloudproviderManager) SyncCloudproviderResources(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
type SCloudproviderResourceBase ¶
type SCloudproviderResourceBase struct { // 子订阅Id ManagerId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"optional" json:"manager_id"` }
type SCloudproviderResourceBaseManager ¶
type SCloudproviderResourceBaseManager struct { }
+onecloud:swagger-gen-ignore
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 SCloudproviderResourceBase SAMLProviderResourceBase SCloudgroupResourceBase Document *jsonutils.JSONDict `length:"long" charset:"ascii" list:"domain" update:"domain" create:"domain_required"` }
func (*SCloudrole) CustomizeDelete ¶
func (self *SCloudrole) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
删除公有云角色
func (*SCloudrole) GetCloudprovider ¶
func (self *SCloudrole) GetCloudprovider() (*SCloudprovider, error)
func (*SCloudrole) GetICloudrole ¶
func (self *SCloudrole) GetICloudrole() (cloudprovider.ICloudrole, error)
func (*SCloudrole) GetProvider ¶
func (self *SCloudrole) GetProvider() (cloudprovider.ICloudProvider, 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, parentTaskId string) error
type SCloudroleManager ¶
type SCloudroleManager struct { db.SStatusInfrasResourceBaseManager db.SExternalizedResourceBaseManager SCloudaccountResourceBaseManager SCloudproviderResourceBaseManager 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 SCloudproviderResourceBase 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) GetCloudgroup ¶
func (self *SClouduser) GetCloudgroup(id string) (*SCloudgroup, error)
func (*SClouduser) GetCloudgroupCount ¶
func (self *SClouduser) GetCloudgroupCount() (int, error)
func (*SClouduser) GetCloudgroupQuery ¶
func (self *SClouduser) GetCloudgroupQuery() *sqlchemy.SQuery
func (*SClouduser) GetCloudgroups ¶
func (self *SClouduser) GetCloudgroups() ([]SCloudgroup, error)
func (*SClouduser) GetCloudpolicies ¶
func (self *SClouduser) GetCloudpolicies() ([]SCloudpolicy, error)
func (*SClouduser) GetCloudpolicy ¶
func (self *SClouduser) GetCloudpolicy(policyId string) (*SCloudpolicy, error)
func (*SClouduser) GetCloudpolicyQuery ¶
func (self *SClouduser) GetCloudpolicyQuery() *sqlchemy.SQuery
func (*SClouduser) GetCloudprovider ¶
func (self *SClouduser) GetCloudprovider() (*SCloudprovider, error)
func (*SClouduser) GetClouduserPolicies ¶
func (self *SClouduser) GetClouduserPolicies() ([]SClouduserPolicy, 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) GetProvider ¶
func (self *SClouduser) GetProvider() (cloudprovider.ICloudProvider, 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) 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) StartClouduserCreateTask ¶
func (self *SClouduser) StartClouduserCreateTask(ctx context.Context, userCred mcclient.TokenCredential, notify bool, parentTaskId 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) StartClouduserSyncstatusTask ¶
func (self *SClouduser) StartClouduserSyncstatusTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SClouduser) StartSetGroupsTask ¶
func (self *SClouduser) StartSetGroupsTask(ctx context.Context, userCred mcclient.TokenCredential, add, del []api.SGroup, parentTaskId string) error
func (*SClouduser) StartSetPoliciesTask ¶
func (self *SClouduser) StartSetPoliciesTask(ctx context.Context, userCred mcclient.TokenCredential, add, del []api.SPolicy, parentTaskId string) error
func (*SClouduser) SyncCloudgroups ¶
func (self *SClouduser) SyncCloudgroups(ctx context.Context, userCred mcclient.TokenCredential, iUser cloudprovider.IClouduser)
func (*SClouduser) SyncCloudpolicies ¶
func (self *SClouduser) SyncCloudpolicies(ctx context.Context, userCred mcclient.TokenCredential, iUser cloudprovider.IClouduser)
func (*SClouduser) SyncGroups ¶
func (self *SClouduser) SyncGroups(ctx context.Context, userCred mcclient.TokenCredential, iGroups []cloudprovider.ICloudgroup) compare.SyncResult
func (*SClouduser) SyncPolicies ¶
func (self *SClouduser) SyncPolicies(ctx context.Context, userCred mcclient.TokenCredential, iPolicies []cloudprovider.ICloudpolicy) compare.SyncResult
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 }
+onecloud:swagger-gen-ignore
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 SCloudproviderResourceBaseManager }
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 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 { }
+onecloud:swagger-gen-ignore
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 SPolicyUsageCount ¶
type SPolicyUsageCount struct { Id string api.PolicyUsage }
type SSAMLProvider ¶
type SSAMLProvider struct { db.SStatusInfrasResourceBase db.SExternalizedResourceBase SCloudaccountResourceBase SCloudproviderResourceBase 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) GetCloudprovider ¶
func (self *SSAMLProvider) GetCloudprovider() (*SCloudprovider, error)
func (*SSAMLProvider) GetISAMLProvider ¶
func (self *SSAMLProvider) GetISAMLProvider() (cloudprovider.ICloudSAMLProvider, error)
func (*SSAMLProvider) GetMetadataDocument ¶
func (self *SSAMLProvider) GetMetadataDocument() (samlutils.EntityDescriptor, error)
func (*SSAMLProvider) GetProvider ¶
func (self *SSAMLProvider) GetProvider() (cloudprovider.ICloudProvider, error)
func (*SSAMLProvider) RealDelete ¶
func (self *SSAMLProvider) RealDelete(ctx context.Context, userCred mcclient.TokenCredential) error
func (*SSAMLProvider) StartSAMLProviderDeleteTask ¶
func (self *SSAMLProvider) StartSAMLProviderDeleteTask(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, parentTaskId string) error
func (*SSAMLProvider) SyncWithCloudSAMLProvider ¶
func (self *SSAMLProvider) SyncWithCloudSAMLProvider(ctx context.Context, userCred mcclient.TokenCredential, ext cloudprovider.ICloudSAMLProvider, managerId string) error
type SSAMLProviderManager ¶
type SSAMLProviderManager struct { db.SStatusInfrasResourceBaseManager db.SExternalizedResourceBaseManager SCloudaccountResourceBaseManager SCloudproviderResourceBaseManager }
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)
公有云身份提供商列表
type SSamluser ¶
type SSamluser struct { db.SStatusDomainLevelUserResourceBase SCloudgroupResourceBase // 邮箱地址 Email string `width:"36" charset:"ascii" nullable:"true" list:"user" create:"domain_optional"` CloudroleId string `width:"36" charset:"ascii" nullable:"false" list:"user"` }
func (*SSamluser) PostCreate ¶
func (self *SSamluser) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject)
func (*SSamluser) StartCreateTask ¶
type SSamluserManager ¶
type SSamluserManager struct { db.SStatusDomainLevelUserResourceBaseManager SCloudgroupResourceBaseManager }
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) QueryDistinctExtraField ¶
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
- cloudgroupjoints.go
- cloudgroupresource.go
- cloudpolicy.go
- cloudpolicyresource.go
- cloudprovider.go
- cloudproviderresource.go
- cloudrole.go
- clouduser.go
- clouduser_policies.go
- clouduserjoints.go
- clouduserresource.go
- doc.go
- initdb.go
- providerdriver.go
- purge.go
- saml_provider.go
- samldriver.go
- samlproviderresource.go
- samluser.go