image

package
v0.9.1-beta2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BundleFilename        = "bundle.json"
	RelocationMapFilename = "relocation-map.json"
)

Variables

This section is empty.

Functions

func BundleJSON

func BundleJSON(bundlePath string) (*bundle.Bundle, error)

func RelocationMapJSON

func RelocationMapJSON(relocationMapPath string) (relocation.ImageRelocationMap, error)

Types

type AppImage

type AppImage struct {
	*bundle.Bundle
	RelocationMap relocation.ImageRelocationMap
}

func FromBundle

func FromBundle(bndl *bundle.Bundle) *AppImage

FromBundle returns a RelocatedBundle with an empty relocation map.

func FromFile

func FromFile(filename string) (*AppImage, error)

FromFile creates a app image based on the bundle file and relocation map.

func (*AppImage) RelocatedImages

func (b *AppImage) RelocatedImages() map[string]bundle.Image

func (*AppImage) Store

func (b *AppImage) Store(dir string) error

Store a bundle with the relocation map as json files.

Jump to

Keyboard shortcuts

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