gotool

package
v0.0.0-...-0ec7fad Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analysis

type Analysis struct {
	InputType  cty.Type
	OutputType cty.Type
}

func Analyze

func Analyze(source string) (Analysis, error)

type Compiler

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

func NewCompiler

func NewCompiler() (*Compiler, error)

func (*Compiler) Close

func (c *Compiler) Close() error

func (*Compiler) Compile

func (c *Compiler) Compile(ctx context.Context, source string) (*Program, error)

type InvocationError

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

func (*InvocationError) Error

func (e *InvocationError) Error() string

func (*InvocationError) Stderr

func (e *InvocationError) Stderr() string

func (*InvocationError) Stdout

func (e *InvocationError) Stdout() string

func (*InvocationError) Unwrap

func (e *InvocationError) Unwrap() error

type Program

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

func (*Program) Analysis

func (p *Program) Analysis() Analysis

func (*Program) Invoke

func (p *Program) Invoke(ctx context.Context, input json.RawMessage, workingDirectory string) (Response, error)

func (*Program) Path

func (p *Program) Path() string

type Response

type Response struct {
	Accepted bool             `json:"accepted"`
	Output   *json.RawMessage `json:"output,omitempty"`
	Issues   []corespec.Issue `json:"issues,omitempty"`
	Stderr   string           `json:"-"`
}

Jump to

Keyboard shortcuts

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