implement check command

This commit is contained in:
Chris Brown
2015-02-01 12:37:29 +00:00
parent b841ce205a
commit 0deda9939c
8 changed files with 265 additions and 59 deletions

View File

@@ -1,17 +1,22 @@
package resource
type OutRequest struct {
Source OutSource `json:"source"`
Params OutParams `json:"params"`
}
type OutSource struct {
type Source struct {
AccessToken string `json:"access_token"`
User string `json:"user"`
Repository string `json:"repository"`
}
type CheckRequest struct {
Source Source `json:"source"`
Version Version `json:"version"`
}
type OutRequest struct {
Source Source `json:"source"`
Params OutParams `json:"params"`
}
type OutParams struct {
NamePath string `json:"name"`
BodyPath string `json:"body"`