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) AttachPolicyToUser(args *api.AttachPolicyToUserArgs) error
- func (c *Client) CreateGroup(args *api.CreateGroupArgs) (*api.CreateGroupResult, error)
- func (c *Client) CreatePolicy(args *api.CreatePolicyArgs) (*api.CreatePolicyResult, error)
- func (c *Client) CreateUser(args *api.CreateUserArgs) (*api.CreateUserResult, error)
- func (c *Client) DeleteGroup(name string) error
- func (c *Client) DeletePolicy(name 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) DetachPolicyFromUser(args *api.DetachPolicyFromUserArgs) error
- func (c *Client) GetGroup(name string) (*api.GetGroupResult, error)
- func (c *Client) GetPolicy(name, policyType string) (*api.GetPolicyResult, error)
- func (c *Client) GetUser(name string) (*api.GetUserResult, error)
- func (c *Client) GetUserLoginProfile(name string) (*api.GetUserLoginProfileResult, 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) 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) UpdateGroup(name string, args *api.UpdateGroupArgs) (*api.UpdateGroupResult, 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)
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) AttachPolicyToUser ¶
func (c *Client) AttachPolicyToUser(args *api.AttachPolicyToUserArgs) 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) CreateUser ¶
func (c *Client) CreateUser(args *api.CreateUserArgs) (*api.CreateUserResult, error)
func (*Client) DeleteGroup ¶
func (*Client) DeletePolicy ¶
func (*Client) DeleteUser ¶
func (*Client) DeleteUserFromGroup ¶
func (*Client) DeleteUserLoginProfile ¶
func (*Client) DetachPolicyFromGroup ¶
func (c *Client) DetachPolicyFromGroup(args *api.DetachPolicyFromGroupArgs) error
func (*Client) DetachPolicyFromUser ¶
func (c *Client) DetachPolicyFromUser(args *api.DetachPolicyFromUserArgs) error
func (*Client) GetPolicy ¶
func (c *Client) GetPolicy(name, policyType string) (*api.GetPolicyResult, error)
func (*Client) GetUserLoginProfile ¶
func (c *Client) GetUserLoginProfile(name string) (*api.GetUserLoginProfileResult, 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) ListUserAttachedPolicies ¶
func (c *Client) ListUserAttachedPolicies(name string) (*api.ListPolicyResult, error)
func (*Client) ListUsersInGroup ¶
func (c *Client) ListUsersInGroup(name string) (*api.ListUsersInGroupResult, error)
func (*Client) UpdateGroup ¶
func (c *Client) UpdateGroup(name string, args *api.UpdateGroupArgs) (*api.UpdateGroupResult, 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)
Click to show internal directories.
Click to hide internal directories.