pack

package
v0.0.0-...-b0e2fe5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: GPL-3.0 Imports: 11 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSkeleton

func CheckSkeleton(w io.Writer, sourceDir string) error

CheckSkeleton attempts to validate snap data in source directory

func Pack

func Pack(sourceDir string, opts *Options) (string, error)

Pack the given sourceDirectory and return the generated snap or component file.

Types

type Options

type Options struct {
	// TargetDir is the direction where the snap file will be placed, or empty
	// to use the current directory
	TargetDir string
	// SnapName is the name of the snap file, or empty to use the default name
	// which is <snapname>_<version>_<architecture>.snap
	SnapName string
	// Compression method to use
	Compression string
	// Integrity requests appending integrity data to the snap when set
	Integrity bool
}
var Defaults *Options = nil

Jump to

Keyboard shortcuts

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