pkg

package
v0.0.0-...-046b0b7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2014 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackage

func GetPackage(filename string) (*mgo.GridFile, error)

GetPackage get a package

Types

type Metadata

type Metadata struct {
	Version     float32 `json:"version,omitempty"`
	Description string  `json:"description"`
	Install     string  `json:"install,omitempty"`
	Run         string  `json:"run,omitempty"`
}

Metadata represents GridFS file metadata

type Package

type Package struct {
	Filename string   `json:"filename"`
	Metadata Metadata `json:"metadata"`
}

Package represents GridFS file

func DetailPackage

func DetailPackage(filename string) (Package, error)

DetailPackage detail package

func NewPackage

func NewPackage(file, meta multipart.File, filename string) (Package, error)

NewPackage create a new package

type PackageList

type PackageList []Package

PackageList a list of packages

func ListPackages

func ListPackages() (PackageList, error)

ListPackages list packages

Jump to

Keyboard shortcuts

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