Documentation
¶
Index ¶
- type BlockInvocation
- func (b *BlockInvocation) DefRange() hcl.Range
- func (b *BlockInvocation) GetBody() *hclsyntax.Body
- func (b *BlockInvocation) ParseInvocation(ctx context.Context, spec dataspec.RootSpec) (cty.Value, diagnostics.Diag)
- func (b *BlockInvocation) Range() hcl.Range
- func (b *BlockInvocation) SetBody(body *hclsyntax.Body)
- type Configuration
- type Invocation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockInvocation ¶
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.
Click to show internal directories.
Click to hide internal directories.