pushr

package module
v0.0.0-...-bdec79a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByVersion

type ByVersion []semver.Version

func (ByVersion) Len

func (a ByVersion) Len() int

func (ByVersion) Less

func (a ByVersion) Less(i, j int) bool

func (ByVersion) Swap

func (a ByVersion) Swap(i, j int)

type Client

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

func NewClient

func NewClient(host, readToken string, writeToken string) *Client

func (*Client) Download

func (c *Client) Download(release string, versionstr string, filename string) error

func (*Client) LatestVersion

func (c *Client) LatestVersion(release string, channel string) (*Version, string, error)

func (*Client) Release

func (c *Client) Release(release string) (*Release, error)

func (*Client) Version

func (c *Client) Version(release string, versionstr string) (*Version, error)

type Release

type Release struct {
	Versions map[string]*Version `json:"versions"`
}

func NewRelease

func NewRelease() *Release

type Version

type Version struct {
	ContentType string `json:"contenttype"`
	Size        int64  `json:"size"`
	Filename    string `json:"filename"`
}

func NewVersion

func NewVersion() *Version

Directories

Path Synopsis
Godeps/_workspace/src/github.com/blang/methodr
Package methodr provides http.Handler compliant routing based on the request method.
Package methodr provides http.Handler compliant routing based on the request method.
Godeps/_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
Godeps/_workspace/src/github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.

Jump to

Keyboard shortcuts

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