archivetool

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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