add initial out command

This commit is contained in:
Chris Brown
2015-01-31 23:04:49 +00:00
parent 6780afd2ca
commit a36b7368e7
6 changed files with 289 additions and 0 deletions

35
resources.go Normal file
View File

@@ -0,0 +1,35 @@
package resource
type OutRequest struct {
Source OutSource `json:"source"`
Params OutParams `json:"params"`
}
type OutSource struct {
AccessToken string `json:"access_token"`
User string `json:"user"`
Repository string `json:"repository"`
}
type OutParams struct {
NamePath string `json:"name"`
BodyPath string `json:"body"`
TagPath string `json:"tag"`
Globs []string `json:"globs"`
}
type OutResponse struct {
Version Version `json:"version"`
Metadata []MetadataPair `json:"metadata"`
}
type Version struct {
Tag string `json:"tag"`
}
type MetadataPair struct {
Name string `json:"name"`
Value string `json:"value"`
}