profiles

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package profiles manages collections of environment profiles and their relationships. It handles profile resolution, validation, and environment generation with inheritance support.

Index

Constants

This section is empty.

Variables

View Source
var ErrValidation = errors.New("validation error")

ErrValidation is returned when profiles validation fails.

Functions

This section is empty.

Types

type Profiles

type Profiles map[string]profile.Profile

Profiles is a map of profile names to their metadata.

func (Profiles) Default

func (p Profiles) Default() string

Default returns the name of the first default profile found.

func (Profiles) Defaults

func (p Profiles) Defaults() (defaults []string)

Defaults returns the names of the default profiles.

func (Profiles) Environment

func (p Profiles) Environment(name string, steps step.Steps) (environment.Environment, error)

Environment returns a fully resolved environment for a specific profile.

func (Profiles) Environments

func (p Profiles) Environments() (environments []environment.Environment, err error)

Environments returns a fully resolved list of environments for all profiles.

func (Profiles) Exists

func (p Profiles) Exists(name string) bool

Exists checks if a profile exists in the profiles.

func (Profiles) Get

func (p Profiles) Get(name string) (profile.Profile, error)

Get retrieves a profile by name. Returns an error for empty or non-existing profile names.

func (Profiles) Names

func (p Profiles) Names() []string

Names returns the names of the profiles in sorted order.

func (Profiles) Plan

func (p Profiles) Plan(root string, overlays ...string) (step.Steps, error)

Plan creates an execution plan for a profile with optional overlays.

func (Profiles) Validate

func (p Profiles) Validate() error

Validate checks that the profiles are valid.

Jump to

Keyboard shortcuts

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