output

package
v0.0.0-...-ff948a4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FIELD_MODE_OUTPUT = "<output>"

Variables

This section is empty.

Functions

func CheckFieldNames

func CheckFieldNames(fieldnames []string, ctx context.Context, v flagutils.ValidationSet, opts flagutils.OptionSet) error

func NewOutput

func NewOutput[I, O any](chain chain.Chain[I, O], processor streaming.ProcessorFactory[ElementSpecs, Result, O]) *internal.DefaultOutput[I, O]

Types

type ElementSpecs

type ElementSpecs = internal.ElementSpecs

type ExtendableFieldProvider

type ExtendableFieldProvider = internal.ExtendedFieldProvider

type FieldNameProvider

type FieldNameProvider = internal.FieldNameProvider

type FieldProvider

type FieldProvider = internal.FieldProvider

type Fields

type Fields = internal.Fields

func ComposeFields

func ComposeFields(fields ...interface{}) Fields

ComposeFields composes a (string) field list based on a sequence of strings and or field lists.

type MappingProvider

type MappingProvider[I any, F FieldProvider] = internal.MappingProvider[I, F]

type Options

type Options[I any] struct {
	flagutils.SimpleOption[string, *Options[I]]
	// contains filtered or unexported fields
}

func From

func From[I any](opts flagutils.OptionSetProvider) *Options[I]

func New

func New[I any](out OutputsFactory[I]) *Options[I]

func (*Options[I]) GetFieldNames

func (o *Options[I]) GetFieldNames(stage string) []string

func (*Options[I]) GetMode

func (o *Options[I]) GetMode() string

func (*Options[I]) GetOutput

func (o *Options[I]) GetOutput() Output[I]

func (*Options[I]) GetOutputs

func (o *Options[I]) GetOutputs() OutputsFactory[I]

func (*Options[I]) Validate

func (o *Options[I]) Validate(ctx context.Context, opts flagutils.OptionSet, v flagutils.ValidationSet) error

func (*Options[I]) WithDescription

func (o *Options[I]) WithDescription(s string) *Options[I]

type Output

type Output[I any] = internal.Output[I]

type OutputFactory

type OutputFactory[I any] = internal.OutputFactory[I]

type OutputsFactory

type OutputsFactory[I any] = internal.OutputsFactory[I]

func NewOutputsFactory

func NewOutputsFactory[I any](alt ...map[string]OutputFactory[I]) OutputsFactory[I]

type Result

type Result = internal.Result

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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