local

package
v0.0.0-...-3a06bfb Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplierSchema = schema.StructFunc(func(prototype *Applier) *schema.StructBuilder[Applier] {
	return schema.Struct(prototype,
		schema.F("Path", &prototype.Path, schema.String()),
	).DebugName("upload.local#Applier")
})
View Source
var ConfigSchema = schema.StructFunc(func(prototype *Config) *schema.StructBuilder[Config] {
	return schema.Struct(prototype,
		schema.F("path", &prototype.Path, schema.String().Default("")),
	).DebugName("upload.local#Config")
})
View Source
var ParamsSchema = schema.StructFunc(func(prototype *Params) *schema.StructBuilder[Params] {
	return schema.Struct(prototype,
		schema.F("path", &prototype.Path, schema.String().Default("")),
	).DebugName("upload.local#Params")
})

Functions

func Register

func Register(r *transform.Registry)

Types

type Applier

type Applier struct {
	Path string `imbed:""`
}

func (*Applier) Apply

func (t *Applier) Apply(app core.App, a asset.Asset) (asset.Update, error)

func (*Applier) EncodeMsg

func (x *Applier) EncodeMsg(w *fastbuf.W)

type Config

type Config struct {
	Path string `imbed:"path,\"\""`
}

func (*Config) EncodeMsg

func (x *Config) EncodeMsg(w *fastbuf.W)

type Params

type Params struct {
	Path string `imbed:"path,\"\""`
}

func (*Params) BuildTransform

func (p *Params) BuildTransform(c *Config) (transform.Applier, error)

func (*Params) EncodeMsg

func (x *Params) EncodeMsg(w *fastbuf.W)

Jump to

Keyboard shortcuts

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