util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckImageLayer

func CheckImageLayer(dfcmd []string, layers []string) ([]string, []string)

func CheckLayer

func CheckLayer(name string, layers []string) int

func CopyFiles

func CopyFiles(tarfile *tar.Reader, layer string, cpcmd string, dir string)

func CopyLayer

func CopyLayer(dir string, tarfile *tar.Reader)

func CreateDockerfile

func CreateDockerfile(dfcmds []string, cpcmds []string, extLayers []string)

func ExtractFiles

func ExtractFiles(tarfile io.Reader, layers []string, cpcmds []string, dir string)

func FormatCPAD

func FormatCPAD(addc string, cpcmds []string, extLayers []string) string

func FormatRun

func FormatRun(runc string) string

func ReadHashJson

func ReadHashJson(tarReader *tar.Reader) []string

func ReadManifest

func ReadManifest(tarReader *tar.Reader) []string

func ReadTar

func ReadTar(tarfile io.ReadCloser) ([]string, []string)

func SaveImage

func SaveImage(id string) (io.ReadCloser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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