Documentation
¶
Index ¶
- Constants
- Variables
- func FilterSupported(seq iter.Seq[tdl.Plugin], target tdl.Target) iter.Seq[tdl.Plugin]
- func Find[T tdl.Plugin](plugins iter.Seq[tdl.Plugin], pred Predicate[T]) (res T, found bool)
- func FromPath(name string) *fromPath
- func Generator(ctx context.Context, plugin tdl.Plugin, target tdl.Target) (tdl.Generator, error)
- func HasKey(plugin tdl.Plugin, key string) bool
- func HasMetaValue(plugin tdl.Plugin, key, value string) bool
- func MatchesName(plugin tdl.Plugin, name string) bool
- func MetaValue(plugin tdl.Plugin, key string) (string, bool)
- func MetaValues(plugin tdl.Plugin) iter.Seq2[string, string]
- func OfType[T tdl.Plugin](seq iter.Seq[tdl.Plugin]) iter.Seq[T]
- func ParseToken(token string) (tdl.Plugin, error)
- func ParseUrl(url *url.URL) (tdl.Plugin, error)
- func Pull(ctx context.Context, plugin tdl.Plugin, options ...PullOption) error
- func PullToken(ctx context.Context, name string, options ...PullOption) error
- func Sorted[O Ordered](seq iter.Seq[O]) []O
- func Static() iter.Seq[tdl.Plugin]
- func Subscribe[F progress.Func](plugin tdl.Plugin, handler F) rx.Subscription
- func SupportsLang(plugin tdl.Plugin, lang string) bool
- func Tool(ctx context.Context, plugin tdl.Plugin, target tdl.Target) (tdl.Tool, error)
- func TrySubscribe[F progress.Func](plugin tdl.Plugin, handler F) (rx.Subscription, bool)
- func Unwrap(plugin tdl.Plugin) []tdl.Plugin
- func UnwrapAll(plugins []tdl.Plugin) []tdl.Plugin
- func UnwrapEach(plugins iter.Seq[tdl.Plugin]) iter.Seq[tdl.Plugin]
- type Aggregate
- type GeneratorPlugin
- type Observable
- type Ordered
- type Predicate
- type PullOption
- type PullOptions
- type ToolPlugin
Constants ¶
View Source
const UnwrapDepth = 3
Variables ¶
View Source
var Crd2Pulumi tdl.Plugin = NewAggregate( fromPath{name: "crd2pulumi", stdout: false}, github.NewRelease("crd2pulumi-v1.5.4-linux-amd64.tar.gz", "1.5.4", github.WithOwner("pulumi"), github.WithRepo("crd2pulumi"), github.WithArchiveContents("crd2pulumi"), ), )
View Source
var Uml2Ts tdl.Plugin = NewAggregate( fromPath{name: "uml2ts", stdout: true}, github.NewRelease("tdl-linux-amd64.tar.gz", "0.0.32", github.WithArchiveContents("uml2ts"), ), docker.New(nil, "ghcr.io/unstoppablemango/uml2ts:v0.0.32"), )
Functions ¶
func FilterSupported ¶ added in v0.0.33
func PullToken ¶ added in v0.0.33
func PullToken(ctx context.Context, name string, options ...PullOption) error
func TrySubscribe ¶ added in v0.0.33
Types ¶
type Aggregate ¶
func NewAggregate ¶
type GeneratorPlugin ¶ added in v0.0.33
type Observable ¶ added in v0.0.33
type Observable interface {
tdl.Plugin
progress.Observable
}
func Observe ¶ added in v0.0.33
func Observe(plugin tdl.Plugin) Observable
func TryObserve ¶ added in v0.0.33
func TryObserve(plugin tdl.Plugin) (Observable, bool)
type PullOption ¶ added in v0.0.33
type PullOption func(*PullOptions)
func WithProgress ¶ added in v0.0.33
func WithProgress(progress rx.Observer[progress.Event]) PullOption
type PullOptions ¶ added in v0.0.33
type PullOptions struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.