bundler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 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
	Attrs       []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 WithDirectory added in v0.3.1

func WithDirectory(s string) Option

WithDirectory sets the bundler input dir to bundle

func WithRenderData

func WithRenderData(image, commandprefix string, localbuild, unpackImage 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