image

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageReader

type ImageReader struct {
	Path      string
	Stat      fs.FileInfo
	Name      string
	Version   string
	CheckSum  string
	ImgSize   uint64
	Reader    *gzip.Reader
	HeaderLen uint16
}

func ReadImage

func ReadImage(path string) (ImageReader, func() error, error)

type ImageWriter

type ImageWriter struct {
	Path         string
	RawImagePath string
	Name         string
	Version      string
	CheckSum     string
	ImgSize      uint64
	Writer       *gzip.Writer
	HeaderLen    uint16
	// contains filtered or unexported fields
}

func CreateImage

func CreateImage(path string, rawImgPath string, name string, version string) (ImageWriter, func() error, error)

func (*ImageWriter) WriteMetadata

func (i *ImageWriter) WriteMetadata()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳