Documentation ¶
Index ¶
- func CompareAssumeRolePolicy(ctx context.Context, request string, target string) bool
- func ComparePermissionPolicy(ctx context.Context, request string, target string) bool
- func CompareRole(ctx context.Context, request awsapi.IAMRoleRequest, ...) bool
- func CompareRoleIRSA(ctx context.Context, sa *v1.ServiceAccount, props config.Properties) bool
- func CompareTags(ctx context.Context, request map[string]string, target []*iam.Tag) bool
- func ContainsString(slice []string, s string) bool
- func RemoveString(slice []string, s string) (result []string)
- func ValidateIAMPolicyAction(ctx context.Context, pDoc v1alpha1.PolicyDocument) *field.Error
- func ValidateIAMPolicyResource(ctx context.Context, pDoc v1alpha1.PolicyDocument) *field.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAssumeRolePolicy ¶
CompareAssumeRolePolicy compares assume role policy from request and response
func ComparePermissionPolicy ¶
ComparePermissionPolicy compares role policy from request and response
func CompareRole ¶
func CompareRole(ctx context.Context, request awsapi.IAMRoleRequest, targetRole *iam.GetRoleOutput, targetRolePolicy string) bool
CompareRole function compares input role to target role
func CompareRoleIRSA ¶ added in v0.10.0
func CompareRoleIRSA(ctx context.Context, sa *v1.ServiceAccount, props config.Properties) bool
CompareRole function compares input role to target role
func CompareTags ¶ added in v0.0.9
CompareTags compares tags from request and response
func ContainsString ¶
ContainsString Helper functions to check from a slice of strings.
func RemoveString ¶
RemoveString Helper function to check remove string
func ValidateIAMPolicyAction ¶
ValidateIAMPolicyAction validates policy action
func ValidateIAMPolicyResource ¶
ValidateIAMPolicyResource validates policy resource
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.