Documentation ¶
Index ¶
- func CheckFileInfo(ctx context.Context, fileName string, fileInfo FileInfo) (err error)
- func Copy(dst, src string) (copied int64, err error)
- func CopyFromGzipArchive(dst, src string) (copied int64, err error)
- func CopyFromGzipArchiveToDevice(dst, src string, direct bool) (copied int64, err error)
- func CopyToDevice(dst, src string, direct bool) (copied int64, err error)
- func Download(ctx context.Context, destination, url string) (fileName string, err error)
- func GetImageManifest(imagePath string) (*aostypes.ServiceManifest, error)
- func GetLayersFromManifest(manifest *aostypes.ServiceManifest) (layers []string)
- func GetUncompressedTarContentSize(path string) (size int64, err error)
- func UnpackTarImage(source, destination string) error
- func UntarGZArchive(ctx context.Context, source, destination string) (err error)
- func ValidateDigest(installDir string, digest digest.Digest) (err error)
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileInfo ¶
CheckFileInfo checks if file matches FileInfo.
func CopyFromGzipArchive ¶
CopyFromGzipArchive copies gzip archive to file.
func CopyFromGzipArchiveToDevice ¶
CopyFromGzipArchiveToDevice copies gzip archive to device.
func CopyToDevice ¶
CopyToDevice copies file content to device.
func GetImageManifest ¶
func GetImageManifest(imagePath string) (*aostypes.ServiceManifest, error)
GetImageManifest gets image manifest data from file.
func GetLayersFromManifest ¶
func GetLayersFromManifest(manifest *aostypes.ServiceManifest) (layers []string)
GetLayersFromManifest gets image layers.
func GetUncompressedTarContentSize ¶
GetUncompressedTarContentSize calculates tar content size.
func UnpackTarImage ¶
UnpackTarImage extracts tar image.
func UntarGZArchive ¶
UntarGZArchive extract data from tar.gz archive.
func ValidateDigest ¶
ValidateDigest validates digest.
Types ¶
Click to show internal directories.
Click to hide internal directories.