aci

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package aci implements helper functions for working with ACIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewACI

func NewACI(dir string, manifest string, entries []*ACIEntry) (*os.File, error)

NewACI creates a new ACI in the given directory with the given image manifest and entries. Used for testing.

func NewBasicACI

func NewBasicACI(dir string, name string) (*os.File, error)

NewBasicACI creates a new ACI in the given directory with the given name. Used for testing.

func NewDetachedSignature

func NewDetachedSignature(armoredPrivateKey string, aci io.Reader) (io.Reader, error)

NewDetachedSignature creates a new openpgp armored detached signature for the given ACI signed with armoredPrivateKey.

func RenderACI added in v0.4.0

func RenderACI(name types.ACName, labels types.Labels, dir string, ap acirenderer.ACIRegistry) error

Given an image app name and optional labels, get the best matching image available in the store, build its dependency list and render it inside dir

func RenderACIFromList added in v0.4.0

func RenderACIFromList(imgs acirenderer.Images, dir string, ap acirenderer.ACIProvider) error

Given an already populated dependency list, it will extract, under the provided directory, the rendered ACI

func RenderACIWithImageID added in v0.4.0

func RenderACIWithImageID(imageID types.Hash, dir string, ap acirenderer.ACIRegistry) error

Given an imageID, start with the matching image available in the store, build its dependency list and render it inside dir

Types

type ACIEntry

type ACIEntry struct {
	Header   *tar.Header
	Contents string
}

Jump to

Keyboard shortcuts

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