validation

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareAssumeRolePolicy

func CompareAssumeRolePolicy(ctx context.Context, request string, target string) bool

CompareAssumeRolePolicy compares assume role policy from request and response

func ComparePermissionPolicy

func ComparePermissionPolicy(ctx context.Context, request string, target string) bool

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

func CompareTags(ctx context.Context, request map[string]string, target []*iam.Tag) bool

CompareTags compares tags from request and response

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString Helper functions to check from a slice of strings.

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString Helper function to check remove string

func ValidateIAMPolicyAction

func ValidateIAMPolicyAction(ctx context.Context, pDoc v1alpha1.PolicyDocument) *field.Error

ValidateIAMPolicyAction validates policy action

func ValidateIAMPolicyResource

func ValidateIAMPolicyResource(ctx context.Context, pDoc v1alpha1.PolicyDocument) *field.Error

ValidateIAMPolicyResource validates policy resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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