iam

package
v0.9.51 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

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

View Source
const (
	DEFAULT_SERVICE_DOMAIN = "iam." + bce.DEFAULT_REGION + ".baidubce.com"
)

Variables

This section is empty.

Functions

func NewBodyFromStruct

func NewBodyFromStruct(args interface{}) (*bce.Body, error)

Types

type Client

type Client struct {
	*bce.BceClient
}

Client of IAM service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk string) (*Client, error)

func NewClientWithEndpoint

func NewClientWithEndpoint(ak, sk, endpoint string) (*Client, error)

func (*Client) AddUserToGroup

func (c *Client) AddUserToGroup(userName string, groupName string) error

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 (c *Client) DeleteGroup(name string) error

func (*Client) DeletePolicy

func (c *Client) DeletePolicy(name string) error

func (*Client) DeleteUser

func (c *Client) DeleteUser(name string) error

func (*Client) DeleteUserFromGroup

func (c *Client) DeleteUserFromGroup(userName string, groupName string) error

func (*Client) DeleteUserLoginProfile

func (c *Client) DeleteUserLoginProfile(name string) error

func (*Client) DetachPolicyFromGroup

func (c *Client) DetachPolicyFromGroup(args *api.DetachPolicyFromGroupArgs) error

func (*Client) DetachPolicyFromUser

func (c *Client) DetachPolicyFromUser(args *api.DetachPolicyFromUserArgs) error

func (*Client) GetGroup

func (c *Client) GetGroup(name string) (*api.GetGroupResult, error)

func (*Client) GetPolicy

func (c *Client) GetPolicy(name, policyType string) (*api.GetPolicyResult, error)

func (*Client) GetUser

func (c *Client) GetUser(name string) (*api.GetUserResult, error)

func (*Client) GetUserLoginProfile

func (c *Client) GetUserLoginProfile(name string) (*api.GetUserLoginProfileResult, error)

func (*Client) ListGroup

func (c *Client) ListGroup() (*api.ListGroupResult, 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) ListUser

func (c *Client) ListUser() (*api.ListUserResult, 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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