plugin

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: 16 Imported by: 1

Documentation

Index

Constants

View Source
const UnwrapDepth = 3

Variables

View Source
var Uml2Ts tdl.Plugin = NewAggregate(
	fromPath{"uml2ts", true, 50},
	github.NewRelease("tdl-linux-amd64.tar.gz", "0.0.30",
		github.WithArchiveContents("uml2ts"),
	),
	docker.New(nil, "ghcr.io/unstoppablemango/uml2ts:v0.0.30"),
)

Functions

func Find added in v0.0.32

func Find(plugins iter.Seq[tdl.Plugin], pred func(tdl.Plugin) bool) (tdl.Plugin, bool)

func FirstAvailable

func FirstAvailable(target tdl.Target) (tdl.Plugin, error)

func FromPath

func FromPath(name string) tdl.Plugin

func Sorted

func Sorted[O Ordered](seq iter.Seq[O]) []O

func Static added in v0.0.31

func Static() iter.Seq[tdl.Plugin]

func Unwrap

func Unwrap(plugin tdl.Plugin) []tdl.Plugin

func UnwrapAll

func UnwrapAll(plugins []tdl.Plugin) []tdl.Plugin

Types

type Aggregate

type Aggregate []tdl.Plugin

func NewAggregate

func NewAggregate(plugins ...tdl.Plugin) Aggregate

func (Aggregate) Generator

func (a Aggregate) Generator(ctx context.Context, t tdl.Target) (tdl.Generator, error)

Generator implements tdl.Plugin.

func (Aggregate) String

func (a Aggregate) String() string

String implements tdl.Plugin.

type Ordered

type Ordered interface {
	tdl.Plugin
	Order() int
}

func AsOrdered

func AsOrdered(plugin tdl.Plugin) Ordered

func WithPriority

func WithPriority(plugin tdl.Plugin, priority int) Ordered

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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