app

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode added in v0.0.11

func Encode(apx APXTOML) ([]byte, error)

Types

type APXTOML

type APXTOML struct {
	Name string `toml:"name"`
	// Multiple sandboxes allowed for app
	Sandboxes []Sandbox `toml:"sandboxes"`
}

APXTOML format for apps for apx

type RegFS added in v0.0.11

type RegFS struct {
	fs.FS
	Path string
}

type RegWrapper added in v0.0.11

type RegWrapper struct {
	APXTOML APXTOML

	Source string
}

RegWrapper wrapper for registry specific metadata

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func LoadRegistry

func LoadRegistry(sources []RegFS) (Registry, error)

func (Registry) All added in v0.0.2

func (r Registry) All() []APXTOML

func (Registry) AllWraps added in v0.0.11

func (r Registry) AllWraps() []RegWrapper

func (Registry) Find

func (r Registry) Find(id string) (APXTOML, error)

type Sandbox

type Sandbox struct {
	Type   string         `toml:"type"`
	Policy sandbox.Policy `toml:"policy"`
}

Jump to

Keyboard shortcuts

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