Documentation ¶
Index ¶
- func LoadImageMetadataFilterable(id string) (filter.Filterable, error)
- type ImageFilter
- type ImageMetadata
- func (md *ImageMetadata) AddFiles(sourcePath string) error
- func (md *ImageMetadata) AddFiles2(sourcePath string) error
- func (md *ImageMetadata) AddFiles3(sourcePath string) error
- func (md *ImageMetadata) AllocateAndFormat() error
- func (md *ImageMetadata) ExportKernel() (string, error)
- func (md *ImageMetadata) ImageOD() *ImageObjectData
- func (md *ImageMetadata) ImportImage(p string) error
- func (md *ImageMetadata) Size() (int64, error)
- type ImageObjectData
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 ¶
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 { }
Click to show internal directories.
Click to hide internal directories.