Documentation ¶
Overview ¶
Package iam defines the IAM service of BCE. It contains the model sub package to implement the concrete request and response of the IAM user/accessKey/policy API
Index ¶
- Constants
- func NewBodyFromStruct(args interface{}) (*bce.Body, error)
- type Client
- func (c *Client) AddUserToGroup(userName string, groupName string) error
- func (c *Client) AttachPolicyToGroup(args *api.AttachPolicyToGroupArgs) error
- func (c *Client) AttachPolicyToRole(args *api.AttachPolicyToRoleArgs) error
- func (c *Client) AttachPolicyToUser(args *api.AttachPolicyToUserArgs) error
- func (c *Client) CreateAccessKey(userName string) (*api.CreateAccessKeyResult, error)
- func (c *Client) CreateGroup(args *api.CreateGroupArgs) (*api.CreateGroupResult, error)
- func (c *Client) CreatePolicy(args *api.CreatePolicyArgs) (*api.CreatePolicyResult, error)
- func (c *Client) CreateRole(args *api.CreateRoleArgs) (*api.CreateRoleResult, error)
- func (c *Client) CreateUser(args *api.CreateUserArgs) (*api.CreateUserResult, error)
- func (c *Client) DeleteAccessKey(userName, accessKeyId string) error
- func (c *Client) DeleteGroup(name string) error
- func (c *Client) DeletePolicy(name string) error
- func (c *Client) DeleteRole(roleName string) error
- func (c *Client) DeleteUser(name string) error
- func (c *Client) DeleteUserFromGroup(userName string, groupName string) error
- func (c *Client) DeleteUserLoginProfile(name string) error
- func (c *Client) DetachPolicyFromGroup(args *api.DetachPolicyFromGroupArgs) error
- func (c *Client) DetachPolicyFromRole(args *api.DetachPolicyToRoleArgs) error
- func (c *Client) DetachPolicyFromUser(args *api.DetachPolicyFromUserArgs) error
- func (c *Client) DisableAccessKey(userName, accessKeyId string) (*api.UpdateAccessKeyResult, error)
- func (c *Client) EnableAccessKey(userName, accessKeyId string) (*api.UpdateAccessKeyResult, error)
- func (c *Client) GetGroup(name string) (*api.GetGroupResult, error)
- func (c *Client) GetPolicy(name, policyType string) (*api.GetPolicyResult, error)
- func (c *Client) GetRole(roleName string) (*api.GetRoleResult, error)
- func (c *Client) GetUser(name string) (*api.GetUserResult, error)
- func (c *Client) GetUserLoginProfile(name string) (*api.GetUserLoginProfileResult, error)
- func (c *Client) ListAccessKey(userName string) (*api.ListAccessKeyResult, error)
- func (c *Client) ListGroup() (*api.ListGroupResult, error)
- func (c *Client) ListGroupAttachedPolicies(name string) (*api.ListPolicyResult, error)
- func (c *Client) ListGroupsForUser(name string) (*api.ListGroupsForUserResult, error)
- func (c *Client) ListPolicy(nameFilter, policyType string) (*api.ListPolicyResult, error)
- func (c *Client) ListPolicyAttachedEntities(policyId string) (*api.ListPolicyAttachedEntityResult, error)
- func (c *Client) ListRole() (*api.ListRoleResult, error)
- func (c *Client) ListRoleAttachedPolicies(name string) (*api.ListPolicyResult, error)
- func (c *Client) ListUser() (*api.ListUserResult, error)
- func (c *Client) ListUserAttachedPolicies(name string) (*api.ListPolicyResult, error)
- func (c *Client) ListUsersInGroup(name string) (*api.ListUsersInGroupResult, error)
- func (c *Client) SubUserUpdate(userName string, args *api.UpdateSubUserArgs) (*api.UpdateUserResult, error)
- func (c *Client) UpdateGroup(name string, args *api.UpdateGroupArgs) (*api.UpdateGroupResult, error)
- func (c *Client) UpdateRole(roleName string, args *api.UpdateRoleArgs) (*api.UpdateRoleResult, error)
- func (c *Client) UpdateUser(name string, args *api.UpdateUserArgs) (*api.UpdateUserResult, error)
- func (c *Client) UpdateUserLoginProfile(name string, args *api.UpdateUserLoginProfileArgs) (*api.UpdateUserLoginProfileResult, error)
- func (c *Client) UserOperationMfaSwitch(args *api.UserSwitchMfaArgs) error
Constants ¶
View Source
const (
DEFAULT_SERVICE_DOMAIN = "iam." + bce.DEFAULT_REGION + ".baidubce.com"
)
Variables ¶
This section is empty.
Functions ¶
func NewBodyFromStruct ¶
Types ¶
type Client ¶
Client of IAM service is a kind of BceClient, so derived from BceClient
func NewClientWithEndpoint ¶
func (*Client) AddUserToGroup ¶
func (*Client) AttachPolicyToGroup ¶
func (c *Client) AttachPolicyToGroup(args *api.AttachPolicyToGroupArgs) error
func (*Client) AttachPolicyToRole ¶ added in v0.9.137
func (c *Client) AttachPolicyToRole(args *api.AttachPolicyToRoleArgs) error
func (*Client) AttachPolicyToUser ¶
func (c *Client) AttachPolicyToUser(args *api.AttachPolicyToUserArgs) error
func (*Client) CreateAccessKey ¶ added in v0.9.137
func (c *Client) CreateAccessKey(userName string) (*api.CreateAccessKeyResult, error)
func (*Client) CreateGroup ¶
func (c *Client) CreateGroup(args *api.CreateGroupArgs) (*api.CreateGroupResult, error)
func (*Client) CreatePolicy ¶
func (c *Client) CreatePolicy(args *api.CreatePolicyArgs) (*api.CreatePolicyResult, error)
func (*Client) CreateRole ¶ added in v0.9.137
func (c *Client) CreateRole(args *api.CreateRoleArgs) (*api.CreateRoleResult, error)
func (*Client) CreateUser ¶
func (c *Client) CreateUser(args *api.CreateUserArgs) (*api.CreateUserResult, error)
func (*Client) DeleteAccessKey ¶ added in v0.9.137
func (*Client) DeleteGroup ¶
func (*Client) DeletePolicy ¶
func (*Client) DeleteRole ¶ added in v0.9.137
func (*Client) DeleteUser ¶
func (*Client) DeleteUserFromGroup ¶
func (*Client) DeleteUserLoginProfile ¶
func (*Client) DetachPolicyFromGroup ¶
func (c *Client) DetachPolicyFromGroup(args *api.DetachPolicyFromGroupArgs) error
func (*Client) DetachPolicyFromRole ¶ added in v0.9.137
func (c *Client) DetachPolicyFromRole(args *api.DetachPolicyToRoleArgs) error
func (*Client) DetachPolicyFromUser ¶
func (c *Client) DetachPolicyFromUser(args *api.DetachPolicyFromUserArgs) error
func (*Client) DisableAccessKey ¶ added in v0.9.137
func (c *Client) DisableAccessKey(userName, accessKeyId string) (*api.UpdateAccessKeyResult, error)
func (*Client) EnableAccessKey ¶ added in v0.9.137
func (c *Client) EnableAccessKey(userName, accessKeyId string) (*api.UpdateAccessKeyResult, error)
func (*Client) GetPolicy ¶
func (c *Client) GetPolicy(name, policyType string) (*api.GetPolicyResult, error)
func (*Client) GetRole ¶ added in v0.9.137
func (c *Client) GetRole(roleName string) (*api.GetRoleResult, error)
func (*Client) GetUserLoginProfile ¶
func (c *Client) GetUserLoginProfile(name string) (*api.GetUserLoginProfileResult, error)
func (*Client) ListAccessKey ¶ added in v0.9.137
func (c *Client) ListAccessKey(userName string) (*api.ListAccessKeyResult, error)
func (*Client) ListGroupAttachedPolicies ¶
func (c *Client) ListGroupAttachedPolicies(name string) (*api.ListPolicyResult, error)
func (*Client) ListGroupsForUser ¶
func (c *Client) ListGroupsForUser(name string) (*api.ListGroupsForUserResult, error)
func (*Client) ListPolicy ¶
func (c *Client) ListPolicy(nameFilter, policyType string) (*api.ListPolicyResult, error)
func (*Client) ListPolicyAttachedEntities ¶ added in v0.9.175
func (c *Client) ListPolicyAttachedEntities(policyId string) (*api.ListPolicyAttachedEntityResult, error)
func (*Client) ListRole ¶ added in v0.9.137
func (c *Client) ListRole() (*api.ListRoleResult, error)
func (*Client) ListRoleAttachedPolicies ¶ added in v0.9.137
func (c *Client) ListRoleAttachedPolicies(name string) (*api.ListPolicyResult, error)
func (*Client) ListUserAttachedPolicies ¶
func (c *Client) ListUserAttachedPolicies(name string) (*api.ListPolicyResult, error)
func (*Client) ListUsersInGroup ¶
func (c *Client) ListUsersInGroup(name string) (*api.ListUsersInGroupResult, error)
func (*Client) SubUserUpdate ¶ added in v0.9.144
func (c *Client) SubUserUpdate(userName string, args *api.UpdateSubUserArgs) (*api.UpdateUserResult, error)
func (*Client) UpdateGroup ¶
func (c *Client) UpdateGroup(name string, args *api.UpdateGroupArgs) (*api.UpdateGroupResult, error)
func (*Client) UpdateRole ¶ added in v0.9.137
func (c *Client) UpdateRole(roleName string, args *api.UpdateRoleArgs) (*api.UpdateRoleResult, error)
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(name string, args *api.UpdateUserArgs) (*api.UpdateUserResult, error)
func (*Client) UpdateUserLoginProfile ¶
func (c *Client) UpdateUserLoginProfile(name string, args *api.UpdateUserLoginProfileArgs) ( *api.UpdateUserLoginProfileResult, error)
func (*Client) UserOperationMfaSwitch ¶ added in v0.9.144
func (c *Client) UserOperationMfaSwitch(args *api.UserSwitchMfaArgs) error
Click to show internal directories.
Click to hide internal directories.