loader

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIdFieldMissing = errors.New("no ref id field found")
View Source
var ErrMixingConfigs = errors.New("mixing both configurations and account resources is not allowed")
View Source
var ErrMixingDelete = errors.New("mixing account resources with a delete file definition is not allowed")
View Source
var ErrRefMissing = errors.New("no referenced target found")

Functions

func HasAnyAccountKeyDefined

func HasAnyAccountKeyDefined(m map[string]any) bool

HasAnyAccountKeyDefined checks whether the map has any AM key defined. The current keys are `users`, `groups`, and `policies`.

func Load

func Load(fs afero.Fs, rootPath string) (*account.Resources, error)

Load loads account management resources from YAML configuration files located within the specified root directory path. It:

  1. parses YAML files found under rootPath, extracts policies, groups, and users data
  2. validates the loaded data for correct syntax
  3. returns the data in the in-memory account.Resources representation

Types

This section is empty.

Jump to

Keyboard shortcuts

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