iamapi

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

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 Group

type Group struct {
	Path      string `xml:"Path"`
	GroupName string `xml:"GroupName"`
	GroupId   string `xml:"GroupId"`
	Arn       string `xml:"Arn"`
}

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 ListUsersResponse struct {
	CommonResponse
	XMLName         xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ ListUsersResponse"`
	ListUsersResult struct {
		Users       []*iam.User `xml:"Users>member"`
		IsTruncated bool        `xml:"IsTruncated"`
	} `xml:"ListUsersResult"`
}

type PutUserPolicyResponse

type PutUserPolicyResponse struct {
	CommonResponse
	XMLName xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ PutUserPolicyResponse"`
}

Jump to

Keyboard shortcuts

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