Documentation ¶
Index ¶
- type AwsClient
- type IamRepository
- func (r *IamRepository) DescribePolicyByInput(query *iam.GetPolicyInput) (*Policy, error)
- func (r *IamRepository) DescribePolicyVersion(policy Policy) (*PolicyVersion, error)
- func (r *IamRepository) DescribePolicyVersionByInput(query *iam.GetPolicyVersionInput) (*PolicyVersion, error)
- func (r *IamRepository) DescribeRoleByArn(roleArn string) (*Role, error)
- func (r *IamRepository) DescribeRoleByInput(query *iam.GetRoleInput) (*Role, error)
- func (r *IamRepository) GetRegion() ptypes.AwsRegion
- func (r *IamRepository) ListAssumedRoleArn(policyVersion PolicyVersion) []RoleArn
- func (r *IamRepository) ListAttachedRolePoliciesByInput(query *iam.ListAttachedRolePoliciesInput) ([]Policy, error)
- func (r *IamRepository) ListAttachedRolePoliciesByRole(role Role) ([]Policy, error)
- func (r *IamRepository) ListAttachedRolePolicyVersionsByInput(query *iam.ListAttachedRolePoliciesInput) ([]PolicyVersion, error)
- func (r *IamRepository) ListAttachedRolePolicyVersionsByRole(role Role) ([]PolicyVersion, error)
- func (r *IamRepository) ListAttachedRolePolicyVersionsByRoleName(name string) ([]PolicyVersion, error)
- func (r *IamRepository) ListPoliciesAll() ([]Policy, error)
- func (r *IamRepository) ListPoliciesByInput(query *iam.ListPoliciesInput) ([]Policy, error)
- func (r *IamRepository) ListPolicyTags(policy types.Policy) ([]types.Tag, error)
- func (r *IamRepository) ListRoleTags(role types.Role) ([]types.Tag, error)
- func (r *IamRepository) ListRolesAll() ([]Role, error)
- func (r *IamRepository) ListRolesByInput(query *iam.ListRolesInput) ([]Role, error)
- func (r *IamRepository) ListUserTags(user types.User) ([]types.Tag, error)
- func (r *IamRepository) ListUsersAll() ([]User, error)
- func (r *IamRepository) ListUsersByInput(query *iam.ListUsersInput) ([]User, error)
- type Policy
- type PolicyDocument
- type PolicyList
- type PolicyVersion
- type Role
- type RoleArn
- type RoleList
- type Statement
- type User
- type UserList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IamRepository ¶
type IamRepository struct {
// contains filtered or unexported fields
}
func NewIamRepository ¶
func NewIamRepository(ctx context.Context, client AwsClient) *IamRepository
func (*IamRepository) DescribePolicyByInput ¶
func (r *IamRepository) DescribePolicyByInput(query *iam.GetPolicyInput) (*Policy, error)
func (*IamRepository) DescribePolicyVersion ¶
func (r *IamRepository) DescribePolicyVersion(policy Policy) (*PolicyVersion, error)
func (*IamRepository) DescribePolicyVersionByInput ¶
func (r *IamRepository) DescribePolicyVersionByInput(query *iam.GetPolicyVersionInput) (*PolicyVersion, error)
func (*IamRepository) DescribeRoleByArn ¶
func (r *IamRepository) DescribeRoleByArn(roleArn string) (*Role, error)
func (*IamRepository) DescribeRoleByInput ¶
func (r *IamRepository) DescribeRoleByInput(query *iam.GetRoleInput) (*Role, error)
func (*IamRepository) GetRegion ¶
func (r *IamRepository) GetRegion() ptypes.AwsRegion
func (*IamRepository) ListAssumedRoleArn ¶
func (r *IamRepository) ListAssumedRoleArn(policyVersion PolicyVersion) []RoleArn
func (*IamRepository) ListAttachedRolePoliciesByInput ¶
func (r *IamRepository) ListAttachedRolePoliciesByInput(query *iam.ListAttachedRolePoliciesInput) ([]Policy, error)
func (*IamRepository) ListAttachedRolePoliciesByRole ¶
func (r *IamRepository) ListAttachedRolePoliciesByRole(role Role) ([]Policy, error)
func (*IamRepository) ListAttachedRolePolicyVersionsByInput ¶
func (r *IamRepository) ListAttachedRolePolicyVersionsByInput(query *iam.ListAttachedRolePoliciesInput) ([]PolicyVersion, error)
func (*IamRepository) ListAttachedRolePolicyVersionsByRole ¶
func (r *IamRepository) ListAttachedRolePolicyVersionsByRole(role Role) ([]PolicyVersion, error)
func (*IamRepository) ListAttachedRolePolicyVersionsByRoleName ¶
func (r *IamRepository) ListAttachedRolePolicyVersionsByRoleName(name string) ([]PolicyVersion, error)
func (*IamRepository) ListPoliciesAll ¶
func (r *IamRepository) ListPoliciesAll() ([]Policy, error)
func (*IamRepository) ListPoliciesByInput ¶
func (r *IamRepository) ListPoliciesByInput(query *iam.ListPoliciesInput) ([]Policy, error)
func (*IamRepository) ListPolicyTags ¶
func (*IamRepository) ListRoleTags ¶
func (*IamRepository) ListRolesAll ¶
func (r *IamRepository) ListRolesAll() ([]Role, error)
func (*IamRepository) ListRolesByInput ¶
func (r *IamRepository) ListRolesByInput(query *iam.ListRolesInput) ([]Role, error)
func (*IamRepository) ListUserTags ¶
func (*IamRepository) ListUsersAll ¶
func (r *IamRepository) ListUsersAll() ([]User, error)
func (*IamRepository) ListUsersByInput ¶
func (r *IamRepository) ListUsersByInput(query *iam.ListUsersInput) ([]User, error)
type Policy ¶
type Policy struct { service.AbstractResource types.Policy }
func (Policy) GetTagValue ¶
type PolicyDocument ¶
type PolicyList ¶
type PolicyList struct {
Items []Policy
}
type PolicyVersion ¶
type PolicyVersion struct { types.PolicyVersion // contains filtered or unexported fields }
func NewPolicyVersion ¶
func NewPolicyVersion(policyVersion types.PolicyVersion, document PolicyDocument) PolicyVersion
func (PolicyVersion) GetDocument ¶
func (p PolicyVersion) GetDocument() PolicyDocument
type Statement ¶
type Statement struct { Effect string `json:"Effect"` Action interface{} `json:"Action"` Resource interface{} `json:"Resource"` }
Click to show internal directories.
Click to hide internal directories.