slicepackage

package
v0.0.0-...-5db424a Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressData

func CompressData(data []byte) []byte

func CreatePackageTarball

func CreatePackageTarball(source string) ([]byte, error)

func DecompressData

func DecompressData(data []byte) []byte

func ExtractPackageTarball

func ExtractPackageTarball(source []byte, target string) error

func GetPackageFilenames

func GetPackageFilenames(source []byte) ([]string, error)

func RemoveEmptyParentDirectories

func RemoveEmptyParentDirectories(directory string)

func RemovePackage

func RemovePackage(source []byte, target string) error

Types

type Package

type Package struct {
	Name         string   `json:"name"`
	Version      string   `json:"version"`
	Architecture string   `json:"architecture"`
	Maintainer   string   `json:"maintainer"`
	Dependencies []string `json:"dependencies"`
	Description  string   `json:"description"`
}

func GetPackageMetadata

func GetPackageMetadata(source []byte) (Package, error)

Jump to

Keyboard shortcuts

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