executor

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	Type              string          `json:"type"`
	BaseConfiguration string          `json:"base_configuration,omitempty"`
	Configuration     json.RawMessage `json:"configuration"`
	Output            *Output         `json:"output"`
	// XXX: BaseOutput is deprecated to benefits to output with merge strategy
	BaseOutput json.RawMessage `json:"base_output,omitempty"`
}

Executor matches an executor type with its required configuration

func (*Executor) UnmarshalJSON added in v1.8.0

func (e *Executor) UnmarshalJSON(b []byte) error

type InnerExecutor added in v1.8.0

type InnerExecutor Executor

type Output added in v1.8.0

type Output struct {
	Format   interface{}    `json:"format"`
	Strategy OutputStrategy `json:"strategy"`
}

type OutputStrategy added in v1.8.0

type OutputStrategy int
const (
	OutputStrategynone OutputStrategy = iota
	OutputStrategymerge
	OutputStrategytemplate
)

func (OutputStrategy) MarshalJSON added in v1.8.0

func (r OutputStrategy) MarshalJSON() ([]byte, error)

MarshalJSON is generated so OutputStrategy satisfies json.Marshaler.

func (OutputStrategy) String added in v1.8.0

func (i OutputStrategy) String() string

func (*OutputStrategy) UnmarshalJSON added in v1.8.0

func (r *OutputStrategy) UnmarshalJSON(data []byte) error

UnmarshalJSON is generated so OutputStrategy satisfies json.Unmarshaler.

Jump to

Keyboard shortcuts

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