archivetool

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveToLocalPath

func ArchiveToLocalPath(uri string) (string, func(), error)

func ExtractPlugin

func ExtractPlugin(body io.Reader) (string, func(), error)

func PluginArchiveToTempDir

func PluginArchiveToTempDir(uri string) (string, func(), error)

PluginArchiveToTempDir takes a uri to a plugin archive, downloads the archive and extract it to a temporary directory. Extract it and return the path to the extracted directory where the plugin dist is located. A cleanup function is returned that should be called when the plugin is no longer needed.

func ReadArchive

func ReadArchive(archiveURL string) ([]byte, error)

ReadArchive reads an archive from a URL or a local file

func Unzip

func Unzip(src string, dest 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