pbr

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URLPointsToArchive

func URLPointsToArchive(rawurl string) (bool, error)

URLPointsToArchive returns true if the URL points to a tar.gz file

Types

type CLIVersion

type CLIVersion struct {
	OS          OS     `json:"os"`
	RegistryURL string `json:"registryUrl"`
	Version     string `json:"version"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(host string) *Client

func (*Client) GetCLIVersion

func (c *Client) GetCLIVersion(os string) (CLIVersion, error)

func (*Client) GetLatestPackageVersion

func (c *Client) GetLatestPackageVersion(packageName, os string) (Version, error)

func (*Client) GetPackageVersion

func (c *Client) GetPackageVersion(packageName, version, os string) (Version, error)

func (*Client) ListVersions

func (c *Client) ListVersions(os string, packageNames ...string) ([]Version, error)

func (*Client) SearchPackages

func (c *Client) SearchPackages(query, os string) ([]Package, error)

type OS

type OS struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type Package

type Package struct {
	Environment string `json:"environment"`
	Name        string `json:"name"`
	NetworkType string `json:"networkType"`
	Description string `json:"description"`
	Protocol    string `json:"protocol"`
	Subtype     string `json:"subtype"`
}

type Version

type Version struct {
	OS          OS       `json:"os"`
	Package     *Package `json:"package,omitempty"`
	RegistryURL string   `json:"registryUrl"`
	Version     string   `json:"version"`
}

Jump to

Keyboard shortcuts

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