evaluation

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockInvocation

type BlockInvocation struct {
	*hclsyntax.Body
	DefinitionRange hcl.Range
}

func (*BlockInvocation) DefRange

func (b *BlockInvocation) DefRange() hcl.Range

DefRange implements Invocation.

func (*BlockInvocation) GetBody

func (b *BlockInvocation) GetBody() *hclsyntax.Body

GetBody implements Invocation.

func (*BlockInvocation) ParseInvocation

func (b *BlockInvocation) ParseInvocation(ctx context.Context, spec dataspec.RootSpec) (cty.Value, diagnostics.Diag)

ParseInvocation implements Invocation.

func (*BlockInvocation) Range

func (b *BlockInvocation) Range() hcl.Range

Range implements Invocation.

func (*BlockInvocation) SetBody

func (b *BlockInvocation) SetBody(body *hclsyntax.Body)

SetBody implements Invocation.

type Configuration

type Configuration interface {
	ParseConfig(ctx context.Context, spec dataspec.RootSpec) (cty.Value, diagnostics.Diag)
	Range() hcl.Range
	Exists() bool
}

To act as a plugin configuration struct must implement this interface.

type Invocation

type Invocation interface {
	GetBody() *hclsyntax.Body
	SetBody(body *hclsyntax.Body)
	ParseInvocation(ctx context.Context, spec dataspec.RootSpec) (cty.Value, diagnostics.Diag)
	Range() hcl.Range
	DefRange() hcl.Range
	MissingItemRange() hcl.Range
}

To act as a plugin invocation (body of the plugin call block) struct must implement this interface.

Jump to

Keyboard shortcuts

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