resolve

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanResult

type PlanResult struct {
	Variables []PlannedVariable
	Errors    []error
}

PlanResult represents the result of planning variable resolution

type PlannedVariable

type PlannedVariable struct {
	Name      string
	Source    string
	Transform string
	Optional  bool
	Error     error
}

PlannedVariable represents a variable that will be resolved

type ResolvedVariable

type ResolvedVariable struct {
	Name        string
	Value       string
	Source      string
	Transformed bool
	Error       error
}

ResolvedVariable represents a resolved environment variable

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver handles secret resolution and transformation

func New

func New(cfg *config.Config) *Resolver

New creates a new resolver instance

func (*Resolver) GetProvider

func (r *Resolver) GetProvider(name string) (provider.Provider, bool)

GetProvider returns a registered provider by name

func (*Resolver) GetRegisteredProviders

func (r *Resolver) GetRegisteredProviders() map[string]provider.Provider

GetRegisteredProviders returns a map of all registered providers

func (*Resolver) Plan

func (r *Resolver) Plan(ctx context.Context, envName string) (*PlanResult, error)

Plan shows what variables would be resolved without fetching actual values

func (*Resolver) RegisterProvider

func (r *Resolver) RegisterProvider(name string, p provider.Provider)

RegisterProvider registers a provider for use by the resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, envName string) (map[string]ResolvedVariable, error)

Resolve fetches and processes all variables for an environment

func (*Resolver) ResolveEnvironment

func (r *Resolver) ResolveEnvironment(ctx context.Context, env config.Environment) (map[string]string, error)

ResolveEnvironment fetches and processes all variables in the given environment map This method uses concurrent provider calls for better performance

func (*Resolver) ResolveVariablesConcurrently

func (r *Resolver) ResolveVariablesConcurrently(ctx context.Context, env config.Environment) (map[string]ResolvedVariable, error)

ResolveVariablesConcurrently resolves all variables using concurrent provider calls

func (*Resolver) ValidateProvider

func (r *Resolver) ValidateProvider(ctx context.Context, providerName string) error

ValidateProvider validates a single provider with timeout

Jump to

Keyboard shortcuts

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