tarutil

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WASMBinDir   = "bin"
	WASMFilename = "main.wasm"
	TOMLFilename = "fastly.toml"
	TARGzExt     = ".tar.gz"
)

Variables

View Source
var (
	ErrDirNotExists = errors.New("dir does not exist")
	ErrFileZeroSize = errors.New("file is zero size")
)

Functions

func BuildEdgePackage

func BuildEdgePackage(tomlfile, wasmfile, bindir string) (string, error)

BuildEdgePackage creates a Fastly Compute@Edge tarball. A TOML file must be supplied. Either the `wasmfile` or `bindir` should be supplied. Supplying `bindir` will recursively copy all contents in to the `<your-package>/bin` dir in the tar file.

func ManifestPackageNameSanitized

func ManifestPackageNameSanitized(filename string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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