bintray

package
v0.0.0-...-60ed64f Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const APIURL string = "https://api.bintray.com"
View Source
const DownloadURL string = "https://dl.bintray.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type BintrayClient

type BintrayClient interface {
	GetPackage(packageName string) (*Package, error)
	DownloadPackage(packageName, version, destinationDir string) error
	UploadPackage(packageName, from, version string) error
	InPackageURL(packageName, version string) string
}

type Client

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

func NewClient

func NewClient(bintrayURL, subjectName, repoName, username, password string) *Client

func (*Client) DeleteVersion

func (client *Client) DeleteVersion(packageName, version string) error

func (*Client) DownloadPackage

func (client *Client) DownloadPackage(packageName, version, destinationDir string) error

func (*Client) GetPackage

func (client *Client) GetPackage(packageName string) (*Package, error)

func (*Client) InPackageURL

func (client *Client) InPackageURL(packageName, version string) string

func (*Client) UploadPackage

func (client *Client) UploadPackage(packageName, from, version string) error

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

type Package

type Package struct {
	RawVersions      []string `json:"versions"`
	RawLatestVersion string   `json:"latest_version"`
}

func (*Package) VersionsSince

func (bintrayPackage *Package) VersionsSince(minVersion *version.Version) []*version.Version

Jump to

Keyboard shortcuts

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