Adds pm pull

This commit is contained in:
sm
2018-03-02 23:23:11 -08:00
parent 2a0220cddc
commit 74d360f6d7
5 changed files with 90 additions and 8 deletions
+6 -1
View File
@@ -1,6 +1,9 @@
package pm
import "errors"
import (
"errors"
"net/url"
)
// Meta tracks metadata for a package
type Meta struct {
@@ -8,6 +11,8 @@ type Meta struct {
Version Version `json:"version"`
Description string `json:"description"`
Namespace string `json:"namespace"`
Remote url.URL `json:"remote"`
}
// Valid validates the contents of a Meta for requires fields.