Documentation ¶
Index ¶
- func IsAccountInCorrectOU(account awsv1alpha1.Account, client awsclient.Client, ...) bool
- func MoveAccount(awsAccountId string, client awsclient.Client, targetOU string, ...) error
- func ParentsTillPredicate(awsId string, client awsclient.Client, p func(s string) bool, ...) error
- func ValidateAccountOrigin(account awsv1alpha1.Account) error
- func ValidateAccountTags(client awsclient.Client, accountId *string, shardName string, ...) error
- func ValidateAwsAccountId(account awsv1alpha1.Account) error
- func ValidateRemoval(account awsv1alpha1.Account) error
- type AccountPoolValidationReconciler
- type AccountValidationError
- type AccountValidationReconciler
- func (r *AccountValidationReconciler) GetOUIDFromName(client awsclient.Client, parentid string, ouName string) (string, error)
- func (r *AccountValidationReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
- func (r *AccountValidationReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *AccountValidationReconciler) ValidateAccountOU(awsClient awsclient.Client, account awsv1alpha1.Account, poolOU string, ...) error
- func (r *AccountValidationReconciler) ValidateOptInRegions(reqLogger logr.Logger, currentAcctInstance *awsv1alpha1.Account, ...) error
- func (r *AccountValidationReconciler) ValidateRegionalServiceQuotas(reqLogger logr.Logger, account *awsv1alpha1.Account, ...) error
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAccountInCorrectOU ¶
func IsAccountInCorrectOU(account awsv1alpha1.Account, client awsclient.Client, isPoolOU func(s string) bool) bool
Verify if the account is already in the root OU The predicate indicates if the parent considered the desired root was found.
func MoveAccount ¶
func ParentsTillPredicate ¶
func ParentsTillPredicate(awsId string, client awsclient.Client, p func(s string) bool, parents *[]string) error
Retrieve all parents of the given awsId until the predicate returns true.
func ValidateAccountOrigin ¶
func ValidateAccountOrigin(account awsv1alpha1.Account) error
func ValidateAccountTags ¶
func ValidateAwsAccountId ¶
func ValidateAwsAccountId(account awsv1alpha1.Account) error
func ValidateRemoval ¶
func ValidateRemoval(account awsv1alpha1.Account) error
Types ¶
type AccountPoolValidationReconciler ¶
type AccountPoolValidationReconciler struct { Client client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
func (*AccountPoolValidationReconciler) SetupWithManager ¶
func (r *AccountPoolValidationReconciler) SetupWithManager(mgr ctrl.Manager) error
type AccountValidationError ¶
type AccountValidationError struct { Type ValidationError Err error }
func (*AccountValidationError) Error ¶
func (ave *AccountValidationError) Error() string
type AccountValidationReconciler ¶
type AccountValidationReconciler struct { Client client.Client Scheme *runtime.Scheme OUNameIDMap map[string]string // contains filtered or unexported fields }
func (*AccountValidationReconciler) GetOUIDFromName ¶
func (*AccountValidationReconciler) SetupWithManager ¶
func (r *AccountValidationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*AccountValidationReconciler) ValidateAccountOU ¶
func (r *AccountValidationReconciler) ValidateAccountOU(awsClient awsclient.Client, account awsv1alpha1.Account, poolOU string, baseOU string) error
func (*AccountValidationReconciler) ValidateOptInRegions ¶
func (r *AccountValidationReconciler) ValidateOptInRegions(reqLogger logr.Logger, currentAcctInstance *awsv1alpha1.Account, awsClientBuilder awsclient.IBuilder, optInRegions string) error
func (*AccountValidationReconciler) ValidateRegionalServiceQuotas ¶
func (r *AccountValidationReconciler) ValidateRegionalServiceQuotas(reqLogger logr.Logger, account *awsv1alpha1.Account, awsClientBuilder awsclient.IBuilder) error
type ValidationError ¶
type ValidationError int64
const ( InvalidAccount ValidationError = iota AccountMoveFailed MissingTag IncorrectOwnerTag AccountTagFailed MissingAWSAccount OULookupFailed AWSErrorConnecting SettingServiceQuotasFailed QuotaStatus NotAllServicequotasApplied AccountNotForCleanup OptInRegionStatus NotAllOptInRegionsEnabled TooManyActiveAccountRegionEnablements )
Click to show internal directories.
Click to hide internal directories.