lbl

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelPackaging = "cc.frantj.kontrol.packaging"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(any) (string, error)
	Decode(string, any) error
}

type Packager

type Packager struct {
	Encoder
}

func (*Packager) Decode

func (e *Packager) Decode(s string, v any) error

func (*Packager) Encode

func (e *Packager) Encode(v any) (string, error)

func (*Packager) Package

func (p *Packager) Package(_ context.Context, image pkg.Image, packaging *pkg.Packaging) (pkg.Image, error)

func (*Packager) Unpackage

func (p *Packager) Unpackage(_ context.Context, image pkg.Image) (*pkg.Packaging, error)

Jump to

Keyboard shortcuts

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