Documentation ¶
Index ¶
- func Extract(r io.Reader, dest string) error
- type Factory
- func (f *Factory) DirLayer(id string, dir string) (layer Layer, err error)
- func (f *Factory) LauncherLayer(path string) (layer Layer, err error)
- func (f *Factory) ProcessTypesLayer(config launch.Metadata) (layer Layer, err error)
- func (f *Factory) SliceLayers(dir string, slices []Slice) ([]Layer, error)
- type Layer
- type Logger
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory struct { ArtifactsDir string // ArtifactsDir is the directory where layer files are written UID, GID int // UID and GID are used to normalize layer entries Logger Logger // contains filtered or unexported fields }
func (*Factory) DirLayer ¶
DirLayer creates a layer from the given directory DirLayer will set the UID and GID of entries describing dir and its children (but not its parents)
to Factory.UID and Factory.GID
func (*Factory) LauncherLayer ¶ added in v0.9.0
LauncherLayer creates a Layer containing the launcher at path
func (*Factory) ProcessTypesLayer ¶ added in v0.9.0
ProcessTypesLayer creates a Layer containing symlinks pointing to target where:
- any parents of the symlink files will also be added to the layer
- symlinks and their parent directories shall be root owned and world readable
func (*Factory) SliceLayers ¶
SliceLayers divides dir into layers using slices using the following process: * Given n slices SliceLayers will return n+1 layers * The first n layers will contain files matched by the any Path in the nth Slice * The final layer will contain any files in dir that were not included in a previous layer Some layers may be empty
Click to show internal directories.
Click to hide internal directories.