app

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(cfg config.Config, packagesDir string, reporter Reporter) *App

func Open

func Open() (*App, error)

func (*App) Catalogs

func (a *App) Catalogs() *catalog.Multi

func (*App) Cfg

func (a *App) Cfg() config.Config

func (*App) Env

func (a *App) Env() *env.Manager

func (*App) Pkg

func (a *App) Pkg() *pkg.Manager

func (*App) Publisher added in v0.4.0

func (a *App) Publisher() *oci.Publisher

Publisher builds (once) an OCI catalog publisher from the configured auth keychain.

func (*App) Reporter added in v0.4.0

func (a *App) Reporter() Reporter

Reporter returns the App's output reporter (Info/Warn/progress).

func (*App) Store

func (a *App) Store() *storage.Store

type Reporter

type Reporter interface {
	pkg.Reporter
	catalog.Reporter
}
var Discard Reporter = pkg.Discard

Discard is a Reporter that drops all output, for tests and non-interactive callers. pkg.Discard already satisfies the App's Reporter, since catalog.Reporter's methods are a subset of pkg.Reporter's; reuse it rather than maintain a third no-op implementation.

Jump to

Keyboard shortcuts

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