image

package
v0.0.0-...-ef671bc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const RootfsPrefix = "deplab-rootFS-"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportableImage

type ExportableImage interface {
	ExportWithMetadata(metadata.Metadata, string, string) error
	Cleanup()
}

type Image

type Image interface {
	GetFileContent(string) (string, error)
	GetDirContents(string) ([]string, error)
	GetDirFileNames(string, bool) ([]string, error)
	AbsolutePath(string) (string, error)
	GetConfig() (*v1.ConfigFile, error)
	ExportWithMetadata(metadata.Metadata, string, string) error
}

type Interface

type Interface interface {
	GetFileContent(path string) (string, error)
	GetDirContents(path string) ([]string, error)
	GetDirFileNames(path string, includeDir bool) ([]string, error)
}

type RootFS

type RootFS struct {
	// contains filtered or unexported fields
}

func NewRootFS

func NewRootFS(image v1.Image, excludePatterns []string) (RootFS, error)

func (*RootFS) Cleanup

func (rfs *RootFS) Cleanup()

func (*RootFS) GetDirContents

func (rfs *RootFS) GetDirContents(path string) ([]string, error)

func (*RootFS) GetDirFileNames

func (rfs *RootFS) GetDirFileNames(path string, includeDir bool) ([]string, error)

func (*RootFS) GetFileContent

func (rfs *RootFS) GetFileContent(path string) (string, error)

type RootFSImage

type RootFSImage struct {
	// contains filtered or unexported fields
}

func NewDeplabImage

func NewDeplabImage(inputImage, inputImageTarPath string) (RootFSImage, error)

func (RootFSImage) AbsolutePath

func (dli RootFSImage) AbsolutePath(absPath string) (string, error)

func (*RootFSImage) Cleanup

func (dli *RootFSImage) Cleanup()

func (RootFSImage) ExportWithMetadata

func (dli RootFSImage) ExportWithMetadata(metadata metadata.Metadata, path string, tag string) error

func (RootFSImage) GetConfig

func (dli RootFSImage) GetConfig() (*v1.ConfigFile, error)

func (RootFSImage) GetDirContents

func (dli RootFSImage) GetDirContents(s string) ([]string, error)

func (RootFSImage) GetDirFileNames

func (dli RootFSImage) GetDirFileNames(s string, i bool) ([]string, error)

func (RootFSImage) GetFileContent

func (dli RootFSImage) GetFileContent(s string) (string, error)

Jump to

Keyboard shortcuts

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