basics

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary struct {
	Data []byte
}

func (Binary) Mime

func (Binary) Mime() string

func (Binary) Write

func (ba Binary) Write(w io.Writer) error

type BinaryNode

type BinaryNode struct {
	In nodes.Output[[]byte]
}

func (BinaryNode) Out added in v0.32.0

type IO

type IO struct {
	Reader io.Reader
}

func (IO) Mime

func (IO) Mime() string

func (IO) Write

func (ga IO) Write(w io.Writer) error

type IONode

type IONode struct {
	In nodes.Output[io.Reader]
}

func (IONode) Out added in v0.32.0

func (pn IONode) Out(out *nodes.StructOutput[manifest.Artifact])

type Image

type Image struct {
	Image image.Image
}

func (Image) Mime

func (im Image) Mime() string

func (Image) Write

func (ia Image) Write(w io.Writer) error

type ImageNode

type ImageNode struct {
	Image nodes.Output[image.Image] `description:"The image to save"`
	Name  nodes.Output[string]      `description:"Name of the image file, defaults to 'image.png'"`
}

func (ImageNode) Out added in v0.32.0

type TextArtifact

type TextArtifact struct {
	Data string
}

func (TextArtifact) Mime

func (TextArtifact) Mime() string

func (TextArtifact) Write

func (ta TextArtifact) Write(w io.Writer) error

type TextNode

type TextNode struct {
	In   nodes.Output[string]
	Name nodes.Output[string]
}

func (TextNode) Out added in v0.32.0

func (tand TextNode) Out(out *nodes.StructOutput[manifest.Manifest])

Jump to

Keyboard shortcuts

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