Documentation ¶
Index ¶
- Variables
- func GetGroupInfo(ich chan<- GroupInfo, group types.Group)
- func GetGroupPolicyInfo(ctx context.Context, l *rate.Limiter, client IIamClient, ...) error
- func GetPolicyInfo(ctx context.Context, client IIamClient, ich chan<- PolicyInfo, ...) error
- func GetRoleAssumeInfo(ich chan<- RoleAssumeInfo, role types.Role) error
- func GetRoleInfo(ich chan<- RoleInfo, role types.Role)
- func GetRolePolicyInfo(ctx context.Context, l *rate.Limiter, client IIamClient, ...) error
- func GetUserAssociationInfo(ctx context.Context, l *rate.Limiter, client IIamClient, ...) error
- func GetUserGroupInfo(ctx context.Context, client IIamClient, ich chan<- UserGroupInfo, ...) error
- func GetUserInfo(ich chan<- UserInfo, user types.User)
- func GetUserPolicyInfo(ctx context.Context, l *rate.Limiter, client IIamClient, ...) error
- type GroupInfo
- type GroupPolicyInfo
- type IIamClient
- type IamClient
- func (client *IamClient) FetchCustomerPolicies(ctx context.Context) (map[string]types.Policy, error)
- func (client *IamClient) GetAttachedGroupPolicies(ctx context.Context, name *string) ([]types.AttachedPolicy, error)
- func (client *IamClient) GetAttachedRolePolicies(ctx context.Context, name *string) ([]types.AttachedPolicy, error)
- func (client *IamClient) GetAttachedUserPolicies(ctx context.Context, name *string) ([]types.AttachedPolicy, error)
- func (client *IamClient) GetCustomerPolicyDocument(ctx context.Context, arn *string, pols map[string]types.Policy) (string, error)
- func (client *IamClient) GetGroupsForUser(ctx context.Context, name *string) ([]types.Group, error)
- func (client *IamClient) GetInlineGroupPolicies(ctx context.Context, name *string) ([]string, error)
- func (client *IamClient) GetInlineGroupPolicyDocument(ctx context.Context, name *string, policyName *string) (string, error)
- func (client *IamClient) GetInlineRolePolicies(ctx context.Context, name *string) ([]string, error)
- func (client *IamClient) GetInlineRolePolicyDocument(ctx context.Context, name *string, policyName *string) (string, error)
- func (client *IamClient) GetInlineUserPolicies(ctx context.Context, name *string) ([]string, error)
- func (client *IamClient) GetInlineUserPolicyDocument(ctx context.Context, name *string, policyName *string) (string, error)
- func (client *IamClient) GetPolicyDocument(ctx context.Context, arn *string, version *string) (string, error)
- func (client *IamClient) GetPolicyScope(scope string) (types.PolicyScopeType, error)
- type PolicyInfo
- type PolicyScopeType
- type RoleAssumeInfo
- type RoleInfo
- type RolePolicyInfo
- type UserAssociationInfo
- type UserGroupInfo
- type UserInfo
- type UserPolicyInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var PolicyScopeTypes = []string{
"local",
"aws",
}
Functions ¶
func GetGroupInfo ¶
func GetGroupPolicyInfo ¶
func GetPolicyInfo ¶
func GetPolicyInfo(ctx context.Context, client IIamClient, ich chan<- PolicyInfo, policy types.Policy, document bool, filters []string) error
func GetRoleAssumeInfo ¶
func GetRoleAssumeInfo(ich chan<- RoleAssumeInfo, role types.Role) error
func GetRoleInfo ¶
func GetRolePolicyInfo ¶
func GetUserAssociationInfo ¶
func GetUserGroupInfo ¶
func GetUserGroupInfo(ctx context.Context, client IIamClient, ich chan<- UserGroupInfo, user types.User) error
func GetUserInfo ¶
Types ¶
type GroupInfo ¶
func ListGroupInfo ¶
type GroupPolicyInfo ¶
type GroupPolicyInfo struct { GroupName string GroupId string Path string PolicyType string PolicyName string PolicyDocument string }
func ListGroupPolicyInfo ¶
func ListGroupPolicyInfo(ctx context.Context, client IIamClient, ids, names []string, document bool, filters []string) ([]GroupPolicyInfo, error)
type IIamClient ¶
type IIamClient interface { ListUsers(ctx context.Context, params *iam.ListUsersInput, optFns ...func(*iam.Options)) (*iam.ListUsersOutput, error) ListGroups(ctx context.Context, params *iam.ListGroupsInput, optFns ...func(*iam.Options)) (*iam.ListGroupsOutput, error) ListRoles(ctx context.Context, params *iam.ListRolesInput, optFns ...func(*iam.Options)) (*iam.ListRolesOutput, error) ListPolicies(ctx context.Context, params *iam.ListPoliciesInput, optFns ...func(*iam.Options)) (*iam.ListPoliciesOutput, error) FetchCustomerPolicies(ctx context.Context) (map[string]types.Policy, error) GetGroupsForUser(ctx context.Context, name *string) ([]types.Group, error) GetAttachedUserPolicies(ctx context.Context, name *string) ([]types.AttachedPolicy, error) GetInlineUserPolicies(ctx context.Context, name *string) ([]string, error) GetInlineUserPolicyDocument(ctx context.Context, name *string, policyName *string) (string, error) GetAttachedGroupPolicies(ctx context.Context, name *string) ([]types.AttachedPolicy, error) GetInlineGroupPolicies(ctx context.Context, name *string) ([]string, error) GetInlineGroupPolicyDocument(ctx context.Context, name *string, policyName *string) (string, error) GetAttachedRolePolicies(ctx context.Context, name *string) ([]types.AttachedPolicy, error) GetInlineRolePolicies(ctx context.Context, name *string) ([]string, error) GetInlineRolePolicyDocument(ctx context.Context, name *string, policyName *string) (string, error) GetPolicyScope(scope string) (types.PolicyScopeType, error) GetPolicyDocument(ctx context.Context, arn *string, version *string) (string, error) GetCustomerPolicyDocument(ctx context.Context, arn *string, pols map[string]types.Policy) (string, error) }
type IamClient ¶
func NewIamClient ¶
func (*IamClient) FetchCustomerPolicies ¶
func (*IamClient) GetAttachedGroupPolicies ¶
func (*IamClient) GetAttachedRolePolicies ¶
func (*IamClient) GetAttachedUserPolicies ¶
func (*IamClient) GetCustomerPolicyDocument ¶
func (*IamClient) GetGroupsForUser ¶
func (*IamClient) GetInlineGroupPolicies ¶
func (*IamClient) GetInlineGroupPolicyDocument ¶
func (*IamClient) GetInlineRolePolicies ¶
func (*IamClient) GetInlineRolePolicyDocument ¶
func (*IamClient) GetInlineUserPolicies ¶
func (*IamClient) GetInlineUserPolicyDocument ¶
func (*IamClient) GetPolicyDocument ¶
func (*IamClient) GetPolicyScope ¶
func (client *IamClient) GetPolicyScope(scope string) (types.PolicyScopeType, error)
type PolicyInfo ¶
type PolicyInfo struct { PolicyName string PolicyId string PolicyArn string Path string DefaultVersionId string IsAttachable bool AttachmentCount int32 PermissionsBoundaryUsageCount int32 PolicyDocument string }
func ListPolicyInfo ¶
func ListPolicyInfo(ctx context.Context, client IIamClient, ids, names []string, scope string, document bool, filters []string) ([]PolicyInfo, error)
type PolicyScopeType ¶
type PolicyScopeType int
const ( PolicyScopeTypeLocal PolicyScopeType = iota PolicyScopeTypeAws )
func (PolicyScopeType) String ¶
func (t PolicyScopeType) String() string
type RoleAssumeInfo ¶
type RoleAssumeInfo struct { RoleName string RoleId string Path string AssumeRolePolicyDocument string }
func ListRoleAssumeInfo ¶
func ListRoleAssumeInfo(ctx context.Context, client IIamClient, ids, names []string) ([]RoleAssumeInfo, error)
type RoleInfo ¶
func ListRoleInfo ¶
type RolePolicyInfo ¶
type RolePolicyInfo struct { RoleName string RoleId string Path string PolicyType string PolicyName string PolicyDocument string }
func ListRolePolicyInfo ¶
func ListRolePolicyInfo(ctx context.Context, client IIamClient, ids, names []string, document bool, filters []string) ([]RolePolicyInfo, error)
type UserAssociationInfo ¶
type UserAssociationInfo struct { UserName string AttachedBy string PolicyType string PolicyName string PolicyDocument string }
func ListUserAssociationInfo ¶
func ListUserAssociationInfo(ctx context.Context, client IIamClient, ids, names []string, document bool, filters []string) ([]UserAssociationInfo, error)
type UserGroupInfo ¶
type UserGroupInfo struct { UserName string UserId string Path string GroupName string GroupId string }
func ListUserGroupInfo ¶
func ListUserGroupInfo(ctx context.Context, client IIamClient, ids, names []string) ([]UserGroupInfo, error)
type UserInfo ¶
func ListUserInfo ¶
type UserPolicyInfo ¶
type UserPolicyInfo struct { UserName string UserId string Path string PolicyType string PolicyName string PolicyDocument string }
func ListUserPolicyInfo ¶
func ListUserPolicyInfo(ctx context.Context, client IIamClient, ids, names []string, document bool, filters []string) ([]UserPolicyInfo, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.