imgmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadImageMetadataFilterable

func LoadImageMetadataFilterable(id string) (filter.Filterable, error)

Types

type ImageFilter

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

func NewImageFilter

func NewImageFilter(p string) *ImageFilter

func (*ImageFilter) Filter

func (n *ImageFilter) Filter(f filter.Filterable) ([]string, error)

type ImageMetadata

type ImageMetadata struct {
	*metadata.Metadata
}

func LoadImageMetadata

func LoadImageMetadata(id string) (*ImageMetadata, error)

func NewImageMetadata

func NewImageMetadata(id, name string) *ImageMetadata

func ToImageMetadata

func ToImageMetadata(f filter.Filterable) (*ImageMetadata, error)

func ToImageMetadataAll

func ToImageMetadataAll(a []filter.Filterable) ([]*ImageMetadata, error)

func (*ImageMetadata) AddFiles

func (md *ImageMetadata) AddFiles(sourcePath string) error

Adds all the files from the given rootfs tar to the image TODO: Fix the "corrupt direntry" error from gexto

func (*ImageMetadata) AddFiles2

func (md *ImageMetadata) AddFiles2(sourcePath string) error

mount-based file adder (temporary, requires root)

func (*ImageMetadata) AddFiles3

func (md *ImageMetadata) AddFiles3(sourcePath string) error

func (*ImageMetadata) AllocateAndFormat

func (md *ImageMetadata) AllocateAndFormat() error

func (*ImageMetadata) ExportKernel

func (md *ImageMetadata) ExportKernel() (string, error)

func (*ImageMetadata) ImageOD

func (md *ImageMetadata) ImageOD() *ImageObjectData

The md.ObjectData.(*ImageObjectData) assert won't panic as this method can only receive *ImageMetadata objects

func (*ImageMetadata) ImportImage

func (md *ImageMetadata) ImportImage(p string) error

func (*ImageMetadata) Size

func (md *ImageMetadata) Size() (int64, error)

type ImageObjectData

type ImageObjectData struct {
}

Jump to

Keyboard shortcuts

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