Documentation
¶
Index ¶
- Constants
- Variables
- type AccessKeyMetadata
- type AccessKeyStructure
- type AddedUserList
- type AddedUserListResp
- type AddedUserResp
- type AddedUserStructure
- type AttachedPolicy
- type AttachedPolicyList
- type AttachedPolicyListResp
- type AttachedPolicyStructure
- type CreateAccessKeyResp
- type CreateAccessKeyResult
- type CreateLoginProfileResp
- type CreateLoginProfileResult
- type CreateSAMLProviderResp
- type CreateSAMLProviderSAMLProvider
- type GetLoginProfileResp
- type GetLoginProfileResult
- type GetSAMLProviderResp
- type GetSAMLProviderSAMLProvider
- type IAM
- func (p *IAM) AttachRolePolicy(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) AttachUserPolicy(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) CreateAccessKey(query url.Values) (*CreateAccessKeyResp, int, error)
- func (p *IAM) CreateLoginProfile(query url.Values) (*CreateLoginProfileResp, int, error)
- func (p *IAM) CreatePolicy(query url.Values) (*PolicyResp, int, error)
- func (p *IAM) CreateRole(query url.Values) (*RoleResp, int, error)
- func (p *IAM) CreateSAMLProvider(query url.Values) (*CreateSAMLProviderResp, int, error)
- func (p *IAM) CreateServiceLinkedRole(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) CreateUser(query url.Values) (*UserResp, int, error)
- func (p *IAM) DeleteAccessKey(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) DeleteLoginProfile(query url.Values) (*NullResultResp, 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) DeleteSAMLProvider(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) DetachUserPolicy(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) GetAPIInfo(api string) *base.ApiInfo
- func (p *IAM) GetLoginProfile(query url.Values) (*GetLoginProfileResp, int, error)
- func (p *IAM) GetPolicy(query url.Values) (*PolicyResp, int, error)
- func (p *IAM) GetRole(query url.Values) (*RoleResp, int, error)
- func (p *IAM) GetSAMLProvider(query url.Values) (*GetSAMLProviderResp, 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) (*ListAccessKeysResp, int, error)
- func (p *IAM) ListAttachedRolePolicies(query url.Values) (*ListAttachedRolePolicies, int, error)
- func (p *IAM) ListAttachedUserPolicies(query url.Values) (*ListAttachedUserPolicies, int, error)
- func (p *IAM) ListEntitiesForPolicy(query url.Values) (*ListEntitiesForPolicyResp, 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) ListSAMLProviders(query url.Values) (*ListSAMLProvidersResp, int, error)
- func (p *IAM) ListUsers(query url.Values) (*UserListResp, 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) (*NullResultResp, int, error)
- func (p *IAM) UpdateLoginProfile(query url.Values) (*UpdateLoginProfileResp, int, error)
- func (p *IAM) UpdatePolicy(query url.Values) (*PolicyResp, int, error)
- func (p *IAM) UpdateRole(query url.Values) (*NullResultResp, int, error)
- func (p *IAM) UpdateSAMLProvider(query url.Values) (*UpdateSAMLProviderResp, int, error)
- func (p *IAM) UpdateUser(query url.Values) (*UserResp, int, error)
- type ListAccessKeysResp
- type ListAccessKeysResult
- type ListAttachedPoliciesResult
- type ListAttachedRolePolicies
- type ListAttachedUserPolicies
- type ListEntitiesForPolicyPolicyRole
- type ListEntitiesForPolicyPolicyUser
- type ListEntitiesForPolicyResp
- type ListEntitiesForPolicyResult
- type ListSAMLProviderResult
- type ListSAMLProvidersResp
- type ListSAMLProvidersSAMLProvider
- type LoginProfile
- type NullResultResp
- type Policy
- type PolicyList
- type PolicyListResp
- type PolicyResp
- type PolicyStructure
- type RoLeList
- type Role
- type RoleListResp
- type RoleResp
- type RoleStructure
- type ThirdPartyEnterpriseIdentity
- type ThirdPartyIdentity
- type ThirdPartyPersonalIdentity
- type UpdateLoginProfileResp
- type UpdateLoginProfileResult
- type UpdateSAMLProviderResp
- type UpdateSAMLProviderSAMLProvider
- type User
- type UserList
- type UserListResp
- type UserResp
- type UserStructure
Constants ¶
View Source
const ( DefaultRegion = "cn-north-1" ServiceVersion20180101 = "2018-01-01" ServiceName = "iam" )
Variables ¶
View Source
var ( ServiceInfo = &base.ServiceInfo{ Timeout: 5 * time.Second, Host: "iam.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "CreateAccessKey": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"CreateAccessKey"}, "Version": []string{ServiceVersion20180101}, }, }, "DeleteAccessKey": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DeleteAccessKey"}, "Version": []string{ServiceVersion20180101}, }, }, "ListAccessKeys": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListAccessKeys"}, "Version": []string{ServiceVersion20180101}, }, }, "UpdateAccessKey": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"UpdateAccessKey"}, "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}, }, }, "UpdateUser": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"UpdateUser"}, "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}, }, }, "CreateLoginProfile": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"CreateLoginProfile"}, "Version": []string{ServiceVersion20180101}, }, }, "GetLoginProfile": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetLoginProfile"}, "Version": []string{ServiceVersion20180101}, }, }, "UpdateLoginProfile": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"UpdateLoginProfile"}, "Version": []string{ServiceVersion20180101}, }, }, "DeleteLoginProfile": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DeleteLoginProfile"}, "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}, }, }, "CreateServiceLinkedRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"CreateServiceLinkedRole"}, "Version": []string{ServiceVersion20180101}, }, }, "CreateSAMLProvider": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CreateSAMLProvider"}, "Version": []string{ServiceVersion20180101}, }, }, "GetSAMLProvider": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetSAMLProvider"}, "Version": []string{ServiceVersion20180101}, }, }, "UpdateSAMLProvider": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"UpdateSAMLProvider"}, "Version": []string{ServiceVersion20180101}, }, }, "ListSAMLProviders": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListSAMLProviders"}, "Version": []string{ServiceVersion20180101}, }, }, "DeleteSAMLProvider": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DeleteSAMLProvider"}, "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}, }, }, "UpdatePolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"UpdatePolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "DeletePolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DeletePolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "AttachUserPolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"AttachUserPolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "DetachUserPolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"DetachUserPolicy"}, "Version": []string{ServiceVersion20180101}, }, }, "ListAttachedUserPolicies": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListAttachedUserPolicies"}, "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}, }, }, "ListEntitiesForPolicy": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListEntitiesForPolicy"}, "Version": []string{ServiceVersion20180101}, }, }, } )
View Source
var DefaultInstance = NewInstance()
DefaultInstance 默认的实例
Functions ¶
This section is empty.
Types ¶
type AccessKeyMetadata ¶
type AccessKeyStructure ¶
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 AttachedPolicy ¶
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 CreateAccessKeyResp ¶
type CreateAccessKeyResp struct {
ResponseMetadata *base.ResponseMetadata
Result *CreateAccessKeyResult `json:",omitempty"`
}
type CreateAccessKeyResult ¶
type CreateAccessKeyResult struct {
AccessKey AccessKeyStructure
}
type CreateLoginProfileResp ¶
type CreateLoginProfileResp struct {
ResponseMetadata base.ResponseMetadata
Result *CreateLoginProfileResult `json:",omitempty"`
}
type CreateLoginProfileResult ¶
type CreateLoginProfileResult struct {
LoginProfile *LoginProfile
}
type CreateSAMLProviderResp ¶
type CreateSAMLProviderResp struct {
ResponseMetadata *base.ResponseMetadata
Result *CreateSAMLProviderSAMLProvider `json:",omitempty"`
}
type GetLoginProfileResp ¶
type GetLoginProfileResp struct {
ResponseMetadata base.ResponseMetadata
Result *GetLoginProfileResult `json:",omitempty"`
}
type GetLoginProfileResult ¶
type GetLoginProfileResult struct {
LoginProfile *LoginProfile
}
type GetSAMLProviderResp ¶
type GetSAMLProviderResp struct {
ResponseMetadata *base.ResponseMetadata
Result *GetSAMLProviderSAMLProvider `json:",omitempty"`
}
type IAM ¶
IAM .
func (*IAM) AttachRolePolicy ¶
func (*IAM) AttachUserPolicy ¶
func (*IAM) CreateAccessKey ¶
func (*IAM) CreateLoginProfile ¶
func (*IAM) CreatePolicy ¶
func (*IAM) CreateSAMLProvider ¶
func (*IAM) CreateServiceLinkedRole ¶
func (*IAM) DeleteAccessKey ¶
func (*IAM) DeleteLoginProfile ¶
func (*IAM) DeletePolicy ¶
func (*IAM) DeleteRole ¶
func (*IAM) DeleteSAMLProvider ¶
func (*IAM) DeleteUser ¶
func (*IAM) DetachRolePolicy ¶
func (*IAM) DetachUserPolicy ¶
func (*IAM) GetLoginProfile ¶
func (*IAM) GetSAMLProvider ¶
func (*IAM) GetServiceInfo ¶
func (p *IAM) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface
func (*IAM) ListAccessKeys ¶
func (*IAM) ListAttachedRolePolicies ¶
func (*IAM) ListAttachedUserPolicies ¶
func (*IAM) ListEntitiesForPolicy ¶
func (*IAM) ListPolicies ¶
func (*IAM) ListSAMLProviders ¶
func (*IAM) UpdateAccessKey ¶
func (*IAM) UpdateLoginProfile ¶
func (*IAM) UpdatePolicy ¶
func (*IAM) UpdateRole ¶
func (*IAM) UpdateSAMLProvider ¶
type ListAccessKeysResp ¶
type ListAccessKeysResp struct {
ResponseMetadata *base.ResponseMetadata
Result *ListAccessKeysResult `json:",omitempty"`
}
type ListAccessKeysResult ¶
type ListAccessKeysResult struct {
AccessKeyMetadata []*AccessKeyStructure
}
type ListAttachedPoliciesResult ¶
type ListAttachedPoliciesResult struct {
AttachedPolicyMetadata []*AttachedPolicy
}
type ListAttachedRolePolicies ¶
type ListAttachedRolePolicies struct {
ResponseMetadata *base.ResponseMetadata
Result *ListAttachedPoliciesResult `json:",omitempty"`
}
type ListAttachedUserPolicies ¶
type ListAttachedUserPolicies struct {
ResponseMetadata *base.ResponseMetadata
Result *ListAttachedPoliciesResult `json:",omitempty"`
}
type ListEntitiesForPolicyResp ¶
type ListEntitiesForPolicyResp struct {
ResponseMetadata *base.ResponseMetadata
Result *ListEntitiesForPolicyResult `json:",omitempty"`
}
type ListEntitiesForPolicyResult ¶
type ListEntitiesForPolicyResult struct {
PolicyUsers []*ListEntitiesForPolicyPolicyUser `json:",omitempty"`
PolicyRoles []*ListEntitiesForPolicyPolicyRole `json:",omitempty"`
}
type ListSAMLProviderResult ¶
type ListSAMLProviderResult struct {
SAMLProviders []*ListSAMLProvidersSAMLProvider
Limit int
Offset int
Total int
}
type ListSAMLProvidersResp ¶
type ListSAMLProvidersResp struct {
ResponseMetadata *base.ResponseMetadata
Result *ListSAMLProviderResult `json:",omitempty"`
}
type LoginProfile ¶
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 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 ThirdPartyIdentity ¶
type ThirdPartyIdentity struct {
Personal []*ThirdPartyPersonalIdentity
Enterprise []*ThirdPartyEnterpriseIdentity
}
type UpdateLoginProfileResp ¶
type UpdateLoginProfileResp struct {
ResponseMetadata base.ResponseMetadata
Result *UpdateLoginProfileResult `json:",omitempty"`
}
type UpdateLoginProfileResult ¶
type UpdateLoginProfileResult struct {
LoginProfile *LoginProfile
}
type UpdateSAMLProviderResp ¶
type UpdateSAMLProviderResp struct {
ResponseMetadata *base.ResponseMetadata
Result *UpdateSAMLProviderSAMLProvider `json:",omitempty"`
}
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"`
}
type UserStructure ¶
type UserStructure struct {
Id uint `json:",omitempty"`
CreateDate string
UpdateDate string
Status string
AccountId uint
UserName string
Description string
DisplayName string
Email string
EmailIsVerify bool
MobilePhone string
MobilePhoneIsVerify bool
Trn string
Source string
ThirdPartyIdentity *ThirdPartyIdentity `json:",omitempty"`
}
Click to show internal directories.
Click to hide internal directories.