models

package
v0.3.11-8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 40 Imported by: 12

Documentation

Index

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 InitDB

func InitDB() 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

type SCloudgroup

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 (*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

向权限组加入用户 权限组状态必须为: available

func (*SCloudgroup) PerformAttachPolicy

向权限组添加权限 权限组状态必须为: available

func (*SCloudgroup) PerformDetachPolicy

从权限组移除权限 权限组状态必须为: available

func (*SCloudgroup) PerformRemoveUser

从权限组移除用户 权限组状态必须为: available

func (*SCloudgroup) PerformSetPolicies

设置权限组添权限(全量覆盖) 权限组状态必须为: available

func (*SCloudgroup) PerformSetUsers

设置权限组用户(全量覆盖) 权限组状态必须为: available

func (*SCloudgroup) PerformSyncstatus

恢复权限组状态

func (*SCloudgroup) PostCreate

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 (*SCloudgroup) SyncWithCloudgroup

func (group *SCloudgroup) SyncWithCloudgroup(ctx context.Context, userCred mcclient.TokenCredential, iGroup cloudprovider.ICloudgroup) error

func (*SCloudgroup) ValidateUpdateData

更新权限组

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

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 (*SCloudgroupJointsManager) OrderByExtraFields

func (manager *SCloudgroupJointsManager) OrderByExtraFields(
	ctx context.Context,
	q *sqlchemy.SQuery,
	groupCred mcclient.TokenCredential,
	query api.CloudgroupJointsListInput,
) (*sqlchemy.SQuery, error)

type SCloudgroupManager

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 (manager *SCloudgroupManager) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*sqlchemy.SQuery, error)

func (*SCloudgroupManager) ValidateCreateData

创建权限组

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

+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 (*SCloudgroupPolicyManager) ListItemFilter

用户组中权限列表

func (*SCloudgroupPolicyManager) OrderByExtraFields

func (*SCloudgroupPolicyManager) ValidateCreateData

+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

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 (*SCloudgroupUserManager) OrderByExtraFields

func (manager *SCloudgroupUserManager) OrderByExtraFields(
	ctx context.Context,
	q *sqlchemy.SQuery,
	userCred mcclient.TokenCredential,
	query api.CloudgroupUserListInput,
) (*sqlchemy.SQuery, error)

func (*SCloudgroupUserManager) ValidateCreateData

+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

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 (*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 (manager *SCloudpolicyManager) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*sqlchemy.SQuery, error)

func (*SCloudpolicyManager) TotalResourceCount

func (manager *SCloudpolicyManager) TotalResourceCount(policyIds []string) (map[string]api.PolicyUsage, error)

func (*SCloudpolicyManager) ValidateCreateData

+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

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

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

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

绑定用户权限 用户状态必须为: available

func (*SClouduser) PerformChangeOwner

变更子账号所属本地用户

func (*SClouduser) PerformCreateAccessKey

func (*SClouduser) PerformDeleteAccessKey

func (*SClouduser) PerformDetachPolicy

解绑用户权限 用户状态必须为: available

func (*SClouduser) PerformJoinGroup

将用户加入权限组 用户状态必须为: available

func (*SClouduser) PerformLeaveGroup

将用户从权限组中移除 用户状态必须为: available

func (*SClouduser) PerformResetPassword

重置用户密码 用户状态必须为: available

func (*SClouduser) PerformSetGroups

设置用户权限组列表(全量覆盖) 用户状态必须为: available

func (*SClouduser) PerformSetPolicies

设置用户权限列表(全量覆盖) 用户状态必须为: available

func (*SClouduser) PerformSyncstatus

同步用户状态

func (*SClouduser) PostCreate

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

+onecloud:swagger-gen-ignore

type SClouduserJointsBase

type SClouduserJointsBase struct {
	db.SJointResourceBase

	SClouduserResourceBase
}

func (*SClouduserJointsBase) GetClouduser

func (self *SClouduserJointsBase) GetClouduser() (*SClouduser, error)

func (*SClouduserJointsBase) ValidateUpdateData

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 (*SClouduserJointsManager) ListItemFilter

func (*SClouduserJointsManager) OrderByExtraFields

func (manager *SClouduserJointsManager) OrderByExtraFields(
	ctx context.Context,
	q *sqlchemy.SQuery,
	userCred mcclient.TokenCredential,
	query api.ClouduserJointsListInput,
) (*sqlchemy.SQuery, error)

type SClouduserManager

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 (manager *SClouduserManager) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*sqlchemy.SQuery, error)

func (*SClouduserManager) ValidateCreateData

创建公有云用户

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

+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 (*SClouduserPolicyManager) ListItemFilter

公有云用户权限列表

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

+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

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

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

公有云身份提供商列表

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

func (self *SSamluser) StartCreateTask(ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error

type SSamluserManager

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 (manager *SSamluserManager) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*sqlchemy.SQuery, error)

func (*SSamluserManager) ValidateCreateData

创建SAML认证用户

type SamlInstance

type SamlInstance func() *idp.SSAMLIdpInstance
var (
	SamlIdpInstance SamlInstance = nil
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL