bundler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: GPL-3.0 Imports: 22 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 {
	Name        string
	Version     string
	Copyright   string
	Author      string
	Description string
	Entrypoint  string
	Mounts      []string
	Store       string
	PocoVersion string
}

App is the structure holding the application metadata All the fields are passed to the template rendering engine

type Bundler

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

Bundler is the poCo application bundler

func New

func New(o ...Option) (*Bundler, error)

New instantiate a new bundler with the given options

func (*Bundler) Build

func (k *Bundler) Build(dst string, args ...string) error

Build creates a new binary located at dst

func (*Bundler) DownloadImage

func (k *Bundler) DownloadImage(image, dst string, local bool) error

DownloadImage downloads a container image locally.

func (*Bundler) Render

func (k *Bundler) Render(dst string) error

Render creates the application data at dst

type Option

type Option func(k *Bundler) error

Option is a Bundler option

func WithCompression added in v0.2.0

func WithCompression(c string) Option

WithCompression sets the bundle compression algorithm

func WithRenderData

func WithRenderData(image, commandprefix string, localbuild bool, a App) Option

WithRenderData sets the data to be rendered when creating the application bundle

func WithStateDir

func WithStateDir(s string) Option

WithStateDir sets the bundler application state directory

Jump to

Keyboard shortcuts

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