tdl

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.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 Generator

type Generator interface {
	fmt.Stringer
	Execute(context.Context, *tdlv1alpha1.Spec) (afero.Fs, error)
}

type Input

type Input interface {
	fmt.Stringer
	io.Reader
	MediaType() MediaType
}

type MediaType

type MediaType string

func (MediaType) String

func (m MediaType) String() string

String implements fmt.Stringer.

type OS added in v0.0.31

type OS interface {
	Stdin() Stdin
	Stdout() io.Writer
	Stderr() io.Writer
	Fs() afero.Fs
}

type Output added in v0.0.31

type Output interface {
	fmt.Stringer
	Write(afero.Fs) error
}

type ParseResult added in v0.0.31

type ParseResult struct {
	Inputs []Input
	Output Output
}

type Pipeline

type Pipeline[T, V any] interface {
	Execute(context.Context, T, V) error
}

type Plugin

type Plugin interface {
	fmt.Stringer
	Generator(context.Context, Target) (Generator, error)
}

type Sink

type Sink interface {
	WriteUnit(string, io.Reader) error
}

type SinkGenerator added in v0.0.31

type SinkGenerator interface {
	Pipeline[*tdlv1alpha1.Spec, Sink]
}

type Stdin added in v0.0.31

type Stdin interface {
	io.Reader
	Stat() (fs.FileInfo, error)
}

type Target

type Target interface {
	fmt.Stringer
	Generator(iter.Seq[Plugin]) (Generator, error)
}

Jump to

Keyboard shortcuts

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