loader

package
v2.23.1-dev.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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")

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, users and service users
  2. validates the loaded data for correct syntax
  3. returns the data in the in-memory account.Resources representation

func LoadResources

func LoadResources(fs afero.Fs, workingDir string, projects manifest.ProjectDefinitionByProjectID) (*account.Resources, error)

LoadResources loads and merges resources from the specified projects assumed to be located within the specified working directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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