profile

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProfileNotFound     = errors.New("execution profile not found")
	ErrInvalidYAML         = errors.New("invalid YAML format")
	ErrInvalidProfile      = errors.New("invalid execution profile configuration")
	ErrRawAPIKeyNotAllowed = errors.New("raw api_key is not allowed; use api_key_env")
)

Functions

func NormalizeAndValidateDefinition added in v0.7.0

func NormalizeAndValidateDefinition(profile *domain.ExecutionProfile) error

NormalizeAndValidateDefinition normalizes and validates one source-local profile definition without resolving a base profile.

Types

type Repository

type Repository interface {
	GetProfile(ctx context.Context, id string) (*domain.ExecutionProfile, error)
}

Repository loads execution profiles.

func NewFSRepository

func NewFSRepository(fsys fs.FS, root string) Repository

func NewFilesystemRepository

func NewFilesystemRepository(dir string) Repository

func NewOverlayRepository

func NewOverlayRepository(primary, fallback Repository) Repository

func NewResolvingRepository added in v0.7.0

func NewResolvingRepository(source Repository) Repository

NewResolvingRepository resolves inherited profile definitions from source.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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