package aci
import "github.com/coreos/rkt/pkg/aci"
Package aci implements helper functions for working with ACIs
Index ¶
- func NewACI(dir string, manifest string, entries []*ACIEntry) (*os.File, error)
- func NewBasicACI(dir string, name string) (*os.File, error)
- func NewDetachedSignature(armoredPrivateKey string, aci io.Reader) (io.Reader, error)
- func NewImageWriter(am schema.ImageManifest, w *tar.Writer) aci.ArchiveWriter
- func RenderACI(name types.ACIdentifier, labels types.Labels, dir string, ap acirenderer.ACIRegistry, uidRange *user.UidRange) error
- func RenderACIFromList(imgs acirenderer.Images, dir string, ap acirenderer.ACIProvider, uidRange *user.UidRange) error
- func RenderACIWithImageID(imageID types.Hash, dir string, ap acirenderer.ACIRegistry, uidRange *user.UidRange) error
- type ACIEntry
Functions ¶
func NewACI ¶
NewACI creates a new ACI in the given directory with the given image manifest and entries. Used for testing.
func NewBasicACI ¶
NewBasicACI creates a new ACI in the given directory with the given name. Used for testing.
func NewDetachedSignature ¶
NewDetachedSignature creates a new openpgp armored detached signature for the given ACI signed with armoredPrivateKey.
func NewImageWriter ¶
func NewImageWriter(am schema.ImageManifest, w *tar.Writer) aci.ArchiveWriter
NewImageWriter creates a new ArchiveWriter which will generate an App Container Image based on the given manifest and write it to the given tar.Writer TODO(sgotti) this is a copy of appc/spec/aci.imageArchiveWriter with addFileNow changed to create the file with the current user. needed for testing as non root user.
func RenderACI ¶
func RenderACI(name types.ACIdentifier, labels types.Labels, dir string, ap acirenderer.ACIRegistry, uidRange *user.UidRange) 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 ¶
func RenderACIFromList(imgs acirenderer.Images, dir string, ap acirenderer.ACIProvider, uidRange *user.UidRange) error
Given an already populated dependency list, it will extract, under the provided directory, the rendered ACI
func RenderACIWithImageID ¶
func RenderACIWithImageID(imageID types.Hash, dir string, ap acirenderer.ACIRegistry, uidRange *user.UidRange) 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 ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
pkg/aci/acitest | Package acitest provides utilities for ACI testing. |
- Version
- v1.30.0 (latest)
- Published
- Apr 13, 2018
- Platform
- linux/amd64
- Imports
- 17 packages
- Last checked
- 1 day ago –
Tools for package owners.