transform

package
v0.0.0-...-611bec0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOutput

func IsOutput(value any) bool

func RefuseOwned

func RefuseOwned(site string, patch map[string]any, owned []string) error

func ResolveOutputs

func ResolveOutputs(ctx context.Context, spec provider.StackSpec, req Request, results []Result) error

func WalkOutputs

func WalkOutputs(req Request, results []Result, resolve func(OutputRef, OutputSite, any) (any, error)) error

Types

type EmptyOutputError

type EmptyOutputError struct {
	Ref OutputRef
	At  OutputSite
}

func (*EmptyOutputError) Error

func (e *EmptyOutputError) Error() string

type NodePass

type NodePass struct {
	Root    string
	Modules []string

	External    []string
	Uninstalled string
}

func (NodePass) Evaluate

func (p NodePass) Evaluate(ctx context.Context, req Request) ([]Result, error)

type OutputPlaceholderError

type OutputPlaceholderError struct {
	At     OutputSite
	Reason string
}

func (*OutputPlaceholderError) Error

func (e *OutputPlaceholderError) Error() string

type OutputPropertyError

type OutputPropertyError struct {
	Ref        OutputRef
	At         OutputSite
	Properties []string
}

func (*OutputPropertyError) Error

func (e *OutputPropertyError) Error() string

type OutputRef

type OutputRef struct {
	Type     string
	Name     string
	Property string
}

func (OutputRef) String

func (r OutputRef) String() string

type OutputSite

type OutputSite struct {
	Resource string
	Surface  string
	Field    string
}

func (OutputSite) String

func (s OutputSite) String() string

type Pass

type Pass interface {
	Evaluate(ctx context.Context, req Request) ([]Result, error)
}

type Patches

type Patches map[string]map[string]any

type ProvisionedOutputError

type ProvisionedOutputError struct {
	Ref OutputRef
	At  OutputSite
}

func (*ProvisionedOutputError) Error

func (e *ProvisionedOutputError) Error() string

type Request

type Request struct {
	Provider  string     `json:"provider"`
	EnvTier   string     `json:"envTier"`
	Env       string     `json:"env"`
	Resources []Resource `json:"resources"`
}

type Resource

type Resource struct {
	Type string `json:"type"`
	Name string `json:"name"`
	App  string `json:"app,omitempty"`
}

type Result

type Result struct {
	Patches Patches
	Tags    map[string]string
}

type UnboundOutputError

type UnboundOutputError struct {
	Ref      OutputRef
	At       OutputSite
	Declared []string
}

func (*UnboundOutputError) Error

func (e *UnboundOutputError) Error() string

type UnpublishedOutputError

type UnpublishedOutputError struct {
	Ref         OutputRef
	At          OutputSite
	Published   string
	Tier        string
	Environment string
	Properties  []string
}

func (*UnpublishedOutputError) Error

func (e *UnpublishedOutputError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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