Documentation ¶
Index ¶
- Constants
- func AddUserToGroup(cli bce.Client, userName string, groupName string) error
- func AttachPolicyToGroup(cli bce.Client, args *AttachPolicyToGroupArgs) error
- func AttachPolicyToRole(cli bce.Client, args *AttachPolicyToRoleArgs) error
- func AttachPolicyToUser(cli bce.Client, args *AttachPolicyToUserArgs) error
- func DeleteAccessKey(cli bce.Client, userName, accessKeyId string) error
- func DeleteGroup(cli bce.Client, name string) error
- func DeletePolicy(cli bce.Client, name string) error
- func DeleteRole(cli bce.Client, roleName string) error
- func DeleteSubUserIdp(cli bce.Client) error
- func DeleteUser(cli bce.Client, name string) error
- func DeleteUserFromGroup(cli bce.Client, userName string, groupName string) error
- func DeleteUserLoginProfile(cli bce.Client, name string) error
- func DetachPolicyFromGroup(cli bce.Client, args *DetachPolicyFromGroupArgs) error
- func DetachPolicyFromRole(cli bce.Client, args *DetachPolicyToRoleArgs) error
- func DetachPolicyFromUser(cli bce.Client, args *DetachPolicyFromUserArgs) error
- func UserOperationMfaSwitch(cli bce.Client, body *bce.Body) error
- type AccessKeyModel
- type Acl
- type AclEntry
- type AttachPolicyToGroupArgs
- type AttachPolicyToRoleArgs
- type AttachPolicyToUserArgs
- type CreateAccessKeyResult
- type CreateGroupArgs
- type CreateGroupResult
- type CreatePolicyArgs
- type CreatePolicyResult
- type CreateRoleArgs
- type CreateRoleResult
- type CreateUserArgs
- type CreateUserResult
- type DetachPolicyFromGroupArgs
- type DetachPolicyFromUserArgs
- type DetachPolicyToRoleArgs
- type GetGroupResult
- type GetPolicyResult
- type GetRoleResult
- type GetUserLoginProfileResult
- type GetUserResult
- type Grantee
- type GroupModel
- type IdpWithStatus
- type ListAccessKeyResult
- type ListGroupResult
- type ListGroupsForUserResult
- type ListPolicyAttachedEntityResult
- type ListPolicyResult
- func ListGroupAttachedPolicies(cli bce.Client, name string) (*ListPolicyResult, error)
- func ListPolicy(cli bce.Client, nameFilter, policyType string) (*ListPolicyResult, error)
- func ListRoleAttachedPolicies(cli bce.Client, roleName string) (*ListPolicyResult, error)
- func ListUserAttachedPolicies(cli bce.Client, name string) (*ListPolicyResult, error)
- type ListRoleResult
- type ListUserResult
- type ListUsersInGroupResult
- type LoginProfileModel
- type PolicyAttachedEntity
- type PolicyModel
- type RoleModel
- type UpdateAccessKeyResult
- type UpdateGroupArgs
- type UpdateGroupResult
- type UpdatePolicyArgs
- type UpdatePolicyResult
- type UpdateRoleArgs
- type UpdateRoleResult
- type UpdateSubUserArgs
- type UpdateSubUserIdpRequest
- type UpdateUserArgs
- type UpdateUserLoginProfileArgs
- type UpdateUserLoginProfileResult
- type UpdateUserResult
- type UserModel
- type UserSwitchMfaArgs
Constants ¶
View Source
const ( URI_PREFIX = "/v1" URI_USER = "/user" URI_GROUP = "/group" URI_POLICY = "/policy" URI_ENTITY = "/entity" URI_ACCESSKEY = "/accesskey" URI_ROLE = "/role" SUB_USER = "/subUser" POLICY_TYPE_SYSTEM = "System" POLICY_TYPE_CUSTOM = "Custom" ACCESSKEY_STATUS_ENABLE = "enable" ACCESSKEY_STATUS_DISABLE = "disable" )
Variables ¶
This section is empty.
Functions ¶
func AttachPolicyToGroup ¶
func AttachPolicyToGroup(cli bce.Client, args *AttachPolicyToGroupArgs) error
func AttachPolicyToRole ¶ added in v0.9.137
func AttachPolicyToRole(cli bce.Client, args *AttachPolicyToRoleArgs) error
func AttachPolicyToUser ¶
func AttachPolicyToUser(cli bce.Client, args *AttachPolicyToUserArgs) error
func DeleteAccessKey ¶ added in v0.9.137
func DeleteSubUserIdp ¶ added in v0.9.192
func DeleteUserFromGroup ¶
func DetachPolicyFromGroup ¶
func DetachPolicyFromGroup(cli bce.Client, args *DetachPolicyFromGroupArgs) error
func DetachPolicyFromRole ¶ added in v0.9.137
func DetachPolicyFromRole(cli bce.Client, args *DetachPolicyToRoleArgs) error
func DetachPolicyFromUser ¶
func DetachPolicyFromUser(cli bce.Client, args *DetachPolicyFromUserArgs) error
Types ¶
type AccessKeyModel ¶ added in v0.9.137
type AttachPolicyToGroupArgs ¶
type AttachPolicyToRoleArgs ¶ added in v0.9.137
type AttachPolicyToUserArgs ¶
type CreateAccessKeyResult ¶ added in v0.9.137
type CreateAccessKeyResult AccessKeyModel
func CreateAccessKey ¶ added in v0.9.137
func CreateAccessKey(cli bce.Client, userName string) (*CreateAccessKeyResult, error)
type CreateGroupArgs ¶
type CreatePolicyArgs ¶
type CreateRoleArgs ¶ added in v0.9.137
type CreateRoleResult ¶ added in v0.9.137
type CreateRoleResult RoleModel
func CreateRole ¶ added in v0.9.137
type CreateUserArgs ¶
type DetachPolicyToRoleArgs ¶ added in v0.9.137
type GetGroupResult ¶
type GetGroupResult GroupModel
type GetPolicyResult ¶
type GetPolicyResult PolicyModel
type GetRoleResult ¶ added in v0.9.137
type GetRoleResult RoleModel
type GetUserLoginProfileResult ¶
type GetUserLoginProfileResult LoginProfileModel
func GetUserLoginProfile ¶
func GetUserLoginProfile(cli bce.Client, name string) (*GetUserLoginProfileResult, error)
type GetUserResult ¶
type GetUserResult UserModel
type GroupModel ¶
type IdpWithStatus ¶ added in v0.9.192
type IdpWithStatus struct { Status string `json:"status,omitempty"` AuxiliaryDomain string `json:"auxiliaryDomain,omitempty"` DomainId string `json:"domainId,omitempty"` EncodeMetadata string `json:"encodeMetadata,omitempty"` FileName string `json:"fileName,omitempty"` CreateTime time.Time `json:"createTime,omitempty"` UpdateTime time.Time `json:"updateTime,omitempty"` }
func GetSubUserIdpConfig ¶ added in v0.9.192
func GetSubUserIdpConfig(cli bce.Client) (*IdpWithStatus, error)
func UpdateSubUserIdp ¶ added in v0.9.192
func UpdateSubUserIdpStatus ¶ added in v0.9.192
func UpdateSubUserIdpStatus(cli bce.Client, status string) (*IdpWithStatus, error)
type ListAccessKeyResult ¶ added in v0.9.137
type ListAccessKeyResult struct {
AccessKeys []AccessKeyModel `json:"accessKeys"`
}
func ListAccessKey ¶ added in v0.9.137
func ListAccessKey(cli bce.Client, userName string) (*ListAccessKeyResult, error)
type ListGroupResult ¶
type ListGroupResult struct {
Groups []GroupModel `json:"groups"`
}
type ListGroupsForUserResult ¶
type ListGroupsForUserResult ListGroupResult
func ListGroupsForUser ¶
func ListGroupsForUser(cli bce.Client, name string) (*ListGroupsForUserResult, error)
type ListPolicyAttachedEntityResult ¶ added in v0.9.175
type ListPolicyAttachedEntityResult struct {
PolicyAttachedEntities []PolicyAttachedEntity `json:"entities"`
}
func ListPolicyAttachedEntities ¶ added in v0.9.175
func ListPolicyAttachedEntities(cli bce.Client, policyId string) (*ListPolicyAttachedEntityResult, error)
type ListPolicyResult ¶
type ListPolicyResult struct {
Policies []PolicyModel `json:"policies"`
}
func ListGroupAttachedPolicies ¶
func ListGroupAttachedPolicies(cli bce.Client, name string) (*ListPolicyResult, error)
func ListPolicy ¶
func ListPolicy(cli bce.Client, nameFilter, policyType string) (*ListPolicyResult, error)
func ListRoleAttachedPolicies ¶ added in v0.9.137
func ListRoleAttachedPolicies(cli bce.Client, roleName string) (*ListPolicyResult, error)
func ListUserAttachedPolicies ¶
func ListUserAttachedPolicies(cli bce.Client, name string) (*ListPolicyResult, error)
type ListRoleResult ¶ added in v0.9.137
type ListRoleResult struct {
Roles []RoleModel `json:"roles"`
}
type ListUserResult ¶
type ListUserResult struct {
Users []UserModel `json:"users"`
}
type ListUsersInGroupResult ¶
type ListUsersInGroupResult ListUserResult
func ListUsersInGroup ¶
func ListUsersInGroup(cli bce.Client, name string) (*ListUsersInGroupResult, error)
type LoginProfileModel ¶
type LoginProfileModel struct { Password string `json:"password,omitempty"` NeedResetPassword bool `json:"needResetPassword"` EnabledLogin bool `json:"enabledLogin"` EnabledLoginMfa bool `json:"enabledLoginMfa"` LoginMfaType string `json:"loginMfaType,omitempty"` ThirdPartyType bool `json:"thirdPartyType,omitempty"` ThirdPartyAccount bool `json:"thirdPartyAccount,omitempty"` }
type PolicyAttachedEntity ¶ added in v0.9.175
type PolicyModel ¶
type UpdateAccessKeyResult ¶ added in v0.9.137
type UpdateAccessKeyResult AccessKeyModel
func DisableAccessKey ¶ added in v0.9.137
func DisableAccessKey(cli bce.Client, userName, accessKeyId string) (*UpdateAccessKeyResult, error)
func EnableAccessKey ¶ added in v0.9.137
func EnableAccessKey(cli bce.Client, userName, accessKeyId string) (*UpdateAccessKeyResult, error)
type UpdateGroupArgs ¶
type UpdatePolicyArgs ¶ added in v0.9.197
type UpdatePolicyResult ¶ added in v0.9.197
type UpdatePolicyResult PolicyModel
func UpdatePolicy ¶ added in v0.9.197
type UpdateRoleArgs ¶ added in v0.9.137
type UpdateRoleResult ¶ added in v0.9.137
type UpdateRoleResult RoleModel
func UpdateRole ¶ added in v0.9.137
type UpdateSubUserArgs ¶ added in v0.9.144
type UpdateSubUserIdpRequest ¶ added in v0.9.192
type UpdateUserArgs ¶
type UpdateUserLoginProfileArgs ¶
type UpdateUserLoginProfileArgs LoginProfileModel
type UpdateUserLoginProfileResult ¶
type UpdateUserLoginProfileResult LoginProfileModel
func UpdateUserLoginProfile ¶
type UpdateUserResult ¶
type UpdateUserResult UserModel
func SubUserUpdate ¶ added in v0.9.144
func UpdateUser ¶
type UserSwitchMfaArgs ¶ added in v0.9.144
Click to show internal directories.
Click to hide internal directories.