standard

package
v0.0.0-...-08a0481 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Host string
}

Client implements the registry.Client interface for standard registries.

func (*Client) Archive

func (c *Client) Archive(name, version, path string, out io.Writer) error

Archive writes a zip archive of the package contents at path to out.

func (*Client) Directory

func (c *Client) Directory(name, version, path string) ([]string, []string, error)

Directory reads files and sub-directories at the given path.

func (*Client) Download

func (c *Client) Download(name, version string) (string, error)

Download writes a package's contents to a temporary directory and returns its path.

func (*Client) File

func (c *Client) File(name, version, path string) (string, error)

File reads a file's contents at the given path.

func (*Client) Versions

func (c *Client) Versions(name string) ([]string, string, error)

Versions fetches all package versions from the registry.

Jump to

Keyboard shortcuts

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