 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func GetPolicyDocument(policyD *string) (policyDocument policy.PolicyDocument, err error)
- func NewIamApiServer(router *mux.Router, authSys *iam.AuthSys, stats *httpstatss.APIStatsSys, ...)
- type CommonResponse
- type CreateGroupResponse
- type CreatePolicyResponse
- type CreateUserResponse
- type DeleteAccessKeyResponse
- type DeleteUserPolicyResponse
- type DeleteUserResponse
- type ErrorResponse
- type GetGroupResponse
- type GetUserPolicyResponse
- type Group
- type GroupMember
- type GroupResult
- type ListAccessKeysResponse
- type ListGroupsResponse
- type ListGroupsResult
- type ListUserPoliciesResponse
- type ListUsersResponse
- type PutUserPolicyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPolicyDocument ¶
func GetPolicyDocument(policyD *string) (policyDocument policy.PolicyDocument, err error)
GetPolicyDocument Get PolicyDocument
func NewIamApiServer ¶
func NewIamApiServer(router *mux.Router, authSys *iam.AuthSys, stats *httpstatss.APIStatsSys, cleanData func(accessKey string), bucketInfoFunc func(ctx context.Context, accessKey string) []store.BucketInfo, storePoolStatsFunc func(ctx context.Context) (store.DataUsageInfo, error))
NewIamApiServer New iamApiServer
Types ¶
type CommonResponse ¶
type CommonResponse struct {
	ResponseMetadata struct {
		RequestId string `xml:"RequestId"`
	} `xml:"ResponseMetadata"`
}
    func (*CommonResponse) SetRequestId ¶
func (r *CommonResponse) SetRequestId()
type CreateGroupResponse ¶
type CreateGroupResponse struct {
	CommonResponse
	XMLName           xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ CreateGroupResponse"`
	CreateGroupResult struct {
		G Group `xml:"Group"`
	} `xml:"CreateGroupResult"`
}
    CreateGroupResponse CreateGroup Response
type CreatePolicyResponse ¶
type CreatePolicyResponse struct {
	CommonResponse
	XMLName            xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ CreatePolicyResponse"`
	CreatePolicyResult struct {
		Policy iam.Policy `xml:"Policy"`
	} `xml:"CreatePolicyResult"`
}
    type CreateUserResponse ¶
type CreateUserResponse struct {
	CommonResponse
	XMLName          xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ CreateUserResponse"`
	CreateUserResult struct {
		User iam.User `xml:"User"`
	} `xml:"CreateUserResult"`
}
    type DeleteAccessKeyResponse ¶
type DeleteAccessKeyResponse struct {
	CommonResponse
	XMLName xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DeleteAccessKeyResponse"`
}
    type DeleteUserPolicyResponse ¶
type DeleteUserPolicyResponse struct {
	CommonResponse
	XMLName xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DeleteUserPolicyResponse"`
}
    type DeleteUserResponse ¶
type DeleteUserResponse struct {
	CommonResponse
	XMLName xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ DeleteUserResponse"`
}
    type ErrorResponse ¶
type ErrorResponse struct {
	CommonResponse
	XMLName xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ ErrorResponse"`
	Error   struct {
		iam.ErrorDetails
		Type string `xml:"Type"`
	} `xml:"Error"`
}
    type GetGroupResponse ¶
type GetGroupResponse struct {
	CommonResponse
	XMLName     xml.Name    `xml:"https://iam.amazonaws.com/doc/2010-05-08/ GetGroupResponse"`
	GroupResult GroupResult `xml:"GroupResult"`
}
    GetGroupResponse GetGroup Response
type GetUserPolicyResponse ¶
type GetUserPolicyResponse struct {
	CommonResponse
	XMLName             xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ GetUserPolicyResponse"`
	GetUserPolicyResult struct {
		UserName       string `xml:"UserName"`
		PolicyName     string `xml:"PolicyName"`
		PolicyDocument string `xml:"PolicyDocument"`
	} `xml:"GetUserPolicyResult"`
}
    type GroupMember ¶
type GroupMember struct {
	GM Group `xml:"Member"`
}
    type GroupResult ¶
type GroupResult struct {
	G Group `xml:"Group"`
}
    type ListAccessKeysResponse ¶
type ListAccessKeysResponse struct {
	CommonResponse
	XMLName              xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ ListAccessKeysResponse"`
	ListAccessKeysResult struct {
		AccessKeyMetadata []*iam.AccessKeyMetadata `xml:"AccessKeyMetadata>member"`
		IsTruncated       bool                     `xml:"IsTruncated"`
	} `xml:"ListAccessKeysResult"`
}
    type ListGroupsResponse ¶
type ListGroupsResponse struct {
	CommonResponse
	XMLName     xml.Name         `xml:"https://iam.amazonaws.com/doc/2010-05-08/ GetGroupResponse"`
	GroupResult ListGroupsResult `xml:"ListGroupsResult"`
}
    ListGroupsResponse listGroup Response
type ListGroupsResult ¶
type ListGroupsResult struct {
	Groups []GroupMember `xml:"Groups"`
}
    type ListUserPoliciesResponse ¶
type ListUserPoliciesResponse struct {
	CommonResponse
	XMLName                xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ ListUserPoliciesResponse"`
	ListUserPoliciesResult struct {
		PolicyNames struct {
			Member []string `xml:"Member"`
		} `xml:"PolicyNames"`
	}
}
    ListUserPoliciesResponse <ListUserPoliciesResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <ListUserPoliciesResult>
<PolicyNames> <member>AllAccessPolicy</member> <member>KeyPolicy</member> </PolicyNames> <IsTruncated>false</IsTruncated>
</ListUserPoliciesResult> <ResponseMetadata>
<RequestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestId>
</ResponseMetadata> </ListUserPoliciesResponse>
type ListUsersResponse ¶
type PutUserPolicyResponse ¶
type PutUserPolicyResponse struct {
	CommonResponse
	XMLName xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ PutUserPolicyResponse"`
}
     Click to show internal directories. 
   Click to hide internal directories.