Documentation ¶
Index ¶
- Constants
- func AddUserToGroup(cli bce.Client, userName string, groupName string) error
- func AttachPolicyToGroup(cli bce.Client, args *AttachPolicyToGroupArgs) error
- func AttachPolicyToUser(cli bce.Client, args *AttachPolicyToUserArgs) error
- func DeleteGroup(cli bce.Client, name string) error
- func DeletePolicy(cli bce.Client, name string) 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 DetachPolicyFromUser(cli bce.Client, args *DetachPolicyFromUserArgs) error
- type Acl
- type AclEntry
- type AttachPolicyToGroupArgs
- type AttachPolicyToUserArgs
- type CreateGroupArgs
- type CreateGroupResult
- type CreatePolicyArgs
- type CreatePolicyResult
- type CreateUserArgs
- type CreateUserResult
- type DetachPolicyFromGroupArgs
- type DetachPolicyFromUserArgs
- type GetGroupResult
- type GetPolicyResult
- type GetUserLoginProfileResult
- type GetUserResult
- type GroupModel
- type ListGroupResult
- type ListGroupsForUserResult
- type ListPolicyResult
- type ListUserResult
- type ListUsersInGroupResult
- type LoginProfileModel
- type PolicyModel
- type UpdateGroupArgs
- type UpdateGroupResult
- type UpdateUserArgs
- type UpdateUserLoginProfileArgs
- type UpdateUserLoginProfileResult
- type UpdateUserResult
- type UserModel
Constants ¶
View Source
const ( URI_PREFIX = "/v1" URI_USER = "/user" URI_GROUP = "/group" URI_POLICY = "/policy" POLICY_TYPE_SYSTEM = "System" POLICY_TYPE_CUSTOM = "Custom" )
Variables ¶
This section is empty.
Functions ¶
func AttachPolicyToGroup ¶
func AttachPolicyToGroup(cli bce.Client, args *AttachPolicyToGroupArgs) error
func AttachPolicyToUser ¶
func AttachPolicyToUser(cli bce.Client, args *AttachPolicyToUserArgs) error
func DeleteUserFromGroup ¶
func DetachPolicyFromGroup ¶
func DetachPolicyFromGroup(cli bce.Client, args *DetachPolicyFromGroupArgs) error
func DetachPolicyFromUser ¶
func DetachPolicyFromUser(cli bce.Client, args *DetachPolicyFromUserArgs) error
Types ¶
type AttachPolicyToGroupArgs ¶
type AttachPolicyToUserArgs ¶
type CreateGroupArgs ¶
type CreatePolicyArgs ¶
type CreateUserArgs ¶
type GetGroupResult ¶
type GetGroupResult GroupModel
type GetPolicyResult ¶
type GetPolicyResult PolicyModel
type GetUserLoginProfileResult ¶
type GetUserLoginProfileResult LoginProfileModel
func GetUserLoginProfile ¶
func GetUserLoginProfile(cli bce.Client, name string) (*GetUserLoginProfileResult, error)
type GetUserResult ¶
type GetUserResult UserModel
type GroupModel ¶
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 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 ListUserAttachedPolicies ¶
func ListUserAttachedPolicies(cli bce.Client, name string) (*ListPolicyResult, error)
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"` EnabledLoginMfa bool `json:"enabledLoginMfa"` LoginMfaType string `json:"loginMfaType,omitempty"` ThirdPartyType bool `json:"thirdPartyType,omitempty"` ThirdPartyAccount bool `json:"thirdPartyAccount,omitempty"` }
type PolicyModel ¶
type UpdateGroupArgs ¶
type UpdateUserArgs ¶
type UpdateUserLoginProfileArgs ¶
type UpdateUserLoginProfileArgs LoginProfileModel
type UpdateUserLoginProfileResult ¶
type UpdateUserLoginProfileResult LoginProfileModel
func UpdateUserLoginProfile ¶
Click to show internal directories.
Click to hide internal directories.