veneers

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assignment

type Assignment struct {
	Path   string               `yaml:"path"`
	Method ast.AssignmentMethod `yaml:"method"`
	Value  AssignmentValue      `yaml:"value"`
}

func (Assignment) AsIR

func (assignment Assignment) AsIR(schemas ast.Schemas, builders ast.Builders, root ast.Builder) (ast.Assignment, error)

type AssignmentEnvelope added in v0.0.20

type AssignmentEnvelope struct {
	Values []EnvelopeFieldValue
}

func (AssignmentEnvelope) AsIR added in v0.0.20

func (envelope AssignmentEnvelope) AsIR(schemas ast.Schemas, envelopeType ast.Type) (ast.AssignmentEnvelope, error)

type AssignmentValue added in v0.0.20

type AssignmentValue struct {
	Argument *ast.Argument       `json:",omitempty"`
	Constant any                 `json:",omitempty"`
	Envelope *AssignmentEnvelope `json:",omitempty"`
}

func (AssignmentValue) AsIR added in v0.0.20

func (value AssignmentValue) AsIR(schemas ast.Schemas, assignmentPath ast.Path) (ast.AssignmentValue, error)

type EnvelopeFieldValue added in v0.0.20

type EnvelopeFieldValue struct {
	Field string          // where to assign within the struct/ref
	Value AssignmentValue // what to assign
}

func (EnvelopeFieldValue) AsIR added in v0.0.20

func (envelopeField EnvelopeFieldValue) AsIR(schemas ast.Schemas, envelopeType ast.Type) (ast.EnvelopeFieldValue, error)

type Option

type Option struct {
	Name        string         `yaml:"name"`
	Comments    []string       `yaml:"comments"`
	Arguments   []ast.Argument `yaml:"arguments"`
	Assignments []Assignment   `yaml:"assignments"`
}

func (Option) AsIR

func (opt Option) AsIR(schemas ast.Schemas, builders ast.Builders, root ast.Builder) (ast.Option, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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