layers

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ELFStart = [4]byte{127, 69, 76, 70} // this is { 0x7f, 'E', 'L', 'F' }

Functions

This section is empty.

Types

type ExecutableFile

type ExecutableFile struct {
	Digest string `json:"digest"` // the file's SHA26
	Path   string `json:"path"`
	Size   uint64 `json:"size"`
}

func ReadExecutableFromTar

func ReadExecutableFromTar(reader *tar.Reader, header *tar.Header, path string) (*ExecutableFile, error)

ReadExecutableFromTar creates an ExecutableFile object if the file is an ELF

type ImageConfig

type ImageConfig struct {
	History []historyEntry `json:"history"`
	RootFs  rootFs         `json:"rootfs"`
}

func NewImageConfig

func NewImageConfig(configBytes []byte) (*ImageConfig, error)

type Layer

type Layer struct {
	Digest  string           `json:"digest"`
	Command string           `json:"command"`
	Size    uint64           `json:"size"`
	Index   int              `json:"index"`
	Files   []ExecutableFile `json:"files"`
}

type Manifest

type Manifest struct {
	ConfigPath    string   `json:"Config"`
	RepoTags      []string `json:"RepoTags"`
	LayerTarPaths []string `json:"Layers"`
}

func NewManifest

func NewManifest(manifestBytes []byte) (*Manifest, error)

Jump to

Keyboard shortcuts

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