Documentation ¶
Index ¶
- Constants
- Variables
- type AccessKey
- type AccessKeyList
- type AccessKeyListResp
- type AccessKeyResp
- type AccessKeyStructure
- type AddedUserList
- type AddedUserListResp
- type AddedUserResp
- type AddedUserStructure
- type AttachedPolicyList
- type AttachedPolicyListResp
- type AttachedPolicyStructure
- type IAM
- func (p *IAM) AddUserToRole(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) AttachRolePolicy(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) CreateAccessKey(query url.Values) (*AccessKeyResp, int, error)
- func (p *IAM) CreatePolicy(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) CreateRole(query url.Values) (*RoleResp, int, error)
- func (p *IAM) CreateUser(query url.Values) (*UserResp, int, error)
- func (p *IAM) DeleteAccessKey(query url.Values) (*AccessKeyResp, int, error)
- func (p *IAM) DeletePolicy(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) DeleteRole(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) DeleteUser(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) DetachRolePolicy(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) GetAPIInfo(api string) *base.ApiInfo
- func (p *IAM) GetPolicy(query url.Values) (*PolicyStructure, int, error)
- func (p *IAM) GetRole(query url.Values) (*RoleResp, int, error)
- func (p *IAM) GetServiceInfo() *base.ServiceInfo
- func (p *IAM) GetUser(query url.Values) (*UserResp, int, error)
- func (p *IAM) ListAccessKeys(query url.Values) (*AccessKeyListResp, int, error)
- func (p *IAM) ListAttachedRolePolicies(query url.Values) (*AttachedPolicyListResp, int, error)
- func (p *IAM) ListPolicies(query url.Values) (*PolicyListResp, int, error)
- func (p *IAM) ListRoles(query url.Values) (*RoleListResp, int, error)
- func (p *IAM) ListRolesForUser(query url.Values) (*RoleListResp, int, error)
- func (p *IAM) ListUsers(query url.Values) (*UserListResp, int, error)
- func (p *IAM) ListUsersForRole(query url.Values) (*AddedUserListResp, int, error)
- func (p *IAM) RemoveUserFromRole(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) SetHost(host string)
- func (p *IAM) SetRegion(region string)
- func (p *IAM) SetSchema(schema string)
- func (p *IAM) UpdateAccessKey(query url.Values) (*AccessKeyResp, int, error)
- func (p *IAM) UpdateRole(query url.Values) (*NullResultResp, int, error)
- type NullResultResp
- type Policy
- type PolicyList
- type PolicyListResp
- type PolicyResp
- type PolicyStructure
- type RoLeList
- type Role
- type RoleListResp
- type RoleResp
- type RoleStructure
- type User
- type UserList
- type UserListResp
- type UserResp
- type UserStructure
Constants ¶
View Source
const ( DefaultRegion = base.RegionApSingapore ServiceVersion20180101 = "2018-01-01" ServiceName = "iam" )
Variables ¶
View Source
var ( ServiceInfo = &base.ServiceInfo{ Timeout: 5 * time.Second, Host: "open.byteplusapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "ListAccessKeys": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListAccessKeys"}, "Version": []string{ServiceVersion20180101}, }, }, "CreateAccessKey": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"CreateAccessKey"}, "Version": []string{ServiceVersion20180101}, }, }, "UpdateAccessKey": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"UpdateAccessKey"}, "Version": []string{ServiceVersion20180101}, }, }, "DeleteAccessKey": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DeleteAccessKey"}, "Version": []string{ServiceVersion20180101}, }, }, "CreatePolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"CreatePolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "GetPolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetPolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "ListPolicies": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListPolicies"}, "Version": []string{ServiceVersion20180101}, }, }, "DeletePolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DeletePolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "AttachRolePolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"AttachRolePolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "DetachRolePolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DetachRolePolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "ListAttachedRolePolicies": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListAttachedRolePolicies"}, "Version": []string{ServiceVersion20180101}, }, }, "CreateRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"CreateRole"}, "Version": []string{ServiceVersion20180101}, }, }, "GetRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetRole"}, "Version": []string{ServiceVersion20180101}, }, }, "UpdateRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"UpdateRole"}, "Version": []string{ServiceVersion20180101}, }, }, "DeleteRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DeleteRole"}, "Version": []string{ServiceVersion20180101}, }, }, "ListRoles": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListRoles"}, "Version": []string{ServiceVersion20180101}, }, }, "ListUsersForRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListUsersForRole"}, "Version": []string{ServiceVersion20180101}, }, }, "AddUserToRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"AddUserToRole"}, "Version": []string{ServiceVersion20180101}, }, }, "RemoveUserFromRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"RemoveUserFromRole"}, "Version": []string{ServiceVersion20180101}, }, }, "ListRolesForUser": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListRolesForUser"}, "Version": []string{ServiceVersion20180101}, }, }, "CreateUser": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"CreateUser"}, "Version": []string{ServiceVersion20180101}, }, }, "GetUser": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetUser"}, "Version": []string{ServiceVersion20180101}, }, }, "ListUsers": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListUsers"}, "Version": []string{ServiceVersion20180101}, }, }, "DeleteUser": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DeleteUser"}, "Version": []string{ServiceVersion20180101}, }, }, } )
View Source
var DefaultInstance = NewInstance()
DefaultInstance 默认的实例
Functions ¶
This section is empty.
Types ¶
type AccessKey ¶
type AccessKey struct {
AccessKey AccessKeyStructure
}
type AccessKeyList ¶
type AccessKeyList struct {
AccessKeyMetadata []*AccessKeyStructure
}
type AccessKeyListResp ¶
type AccessKeyListResp struct { ResponseMetadata *base.ResponseMetadata Result *AccessKeyList `json:",omitempty"` }
type AccessKeyResp ¶
type AccessKeyResp struct { ResponseMetadata *base.ResponseMetadata Result *AccessKey `json:",omitempty"` }
type AccessKeyStructure ¶
type AccessKeyStructure struct { base.BaseResp AccessKeyId string SecretAccessKey string `json:",omitempty"` UserName string }
accessKey
type AddedUserList ¶
type AddedUserList struct { AddedUserMetadata []*AddedUserStructure Limit int Offset int Total int }
type AddedUserListResp ¶
type AddedUserListResp struct { ResponseMetadata *base.ResponseMetadata Result *AddedUserList `json:",omitempty"` }
type AddedUserResp ¶
type AddedUserResp struct {
AddedUser AddedUserStructure
}
type AddedUserStructure ¶
type AttachedPolicyList ¶
type AttachedPolicyList struct { AttachedPolicyMetadata []*AttachedPolicyStructure Limit int Offset int Total int }
type AttachedPolicyListResp ¶
type AttachedPolicyListResp struct { ResponseMetadata *base.ResponseMetadata Result *AttachedPolicyList `json:",omitempty"` }
type AttachedPolicyStructure ¶
type IAM ¶
IAM .
func (*IAM) AddUserToRole ¶
func (*IAM) AttachRolePolicy ¶
func (*IAM) CreateAccessKey ¶
func (*IAM) CreatePolicy ¶
Policy
func (*IAM) DeleteAccessKey ¶
func (*IAM) DeletePolicy ¶
func (*IAM) DeleteRole ¶
func (*IAM) DeleteUser ¶
func (*IAM) DetachRolePolicy ¶
func (*IAM) GetServiceInfo ¶
func (p *IAM) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface
func (*IAM) ListAccessKeys ¶
AccessKey
func (*IAM) ListAttachedRolePolicies ¶
func (*IAM) ListPolicies ¶
func (*IAM) ListRolesForUser ¶
func (*IAM) ListUsersForRole ¶
func (*IAM) RemoveUserFromRole ¶
func (*IAM) UpdateAccessKey ¶
func (*IAM) UpdateRole ¶
type NullResultResp ¶
type NullResultResp struct {
ResponseMetadata *base.ResponseMetadata
}
type Policy ¶
type Policy struct {
Policy PolicyStructure
}
type PolicyList ¶
type PolicyList struct { PolicyMetadata []*PolicyStructure Limit int Offset int Total int }
type PolicyListResp ¶
type PolicyListResp struct { ResponseMetadata *base.ResponseMetadata Result *PolicyList `json:",omitempty"` }
type PolicyResp ¶
type PolicyResp struct { ResponseMetadata *base.ResponseMetadata Result *Policy `json:",omitempty"` }
type PolicyStructure ¶
type PolicyStructure struct { base.BaseResp PolicyTrn string PolicyName string PolicyType string CreateDate string UpdateDate string Description string PolicyId string PolicyDocument string }
policy
type RoLeList ¶
type RoLeList struct { RoleMetadata []*RoleStructure Limit int Offset int Total int }
type Role ¶
type Role struct {
Role RoleStructure
}
type RoleListResp ¶
type RoleListResp struct { ResponseMetadata *base.ResponseMetadata Result *RoLeList `json:",omitempty"` }
type RoleResp ¶
type RoleResp struct { ResponseMetadata *base.ResponseMetadata Result *Role `json:",omitempty"` }
type RoleStructure ¶
type RoleStructure struct { base.BaseResp Trn string RoleName string RoleId uint TrustPolicyDocument string `json:",omitempty"` Description string }
role
type User ¶
type User struct {
User UserStructure
}
type UserList ¶
type UserList struct { UserMetadata []*UserStructure Limit int Offset int Total int }
type UserListResp ¶
type UserListResp struct { ResponseMetadata base.ResponseMetadata Result *UserList `json:",omitempty"` }
type UserResp ¶
type UserResp struct { ResponseMetadata *base.ResponseMetadata Result *User `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.