fetches a given list of globs from the assets. also be durable to 'v' prefixing version tags Signed-off-by: Alex Suraci <asuraci@pivotal.io>
56 lines
1.0 KiB
Go
56 lines
1.0 KiB
Go
package resource
|
|
|
|
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 InRequest struct {
|
|
Source Source `json:"source"`
|
|
Version *Version `json:"version"`
|
|
Params InParams `json:"params"`
|
|
}
|
|
|
|
type InParams struct {
|
|
Globs []string `json:"globs"`
|
|
}
|
|
|
|
type InResponse struct {
|
|
Version Version `json:"version"`
|
|
Metadata []MetadataPair `json:"metadata"`
|
|
}
|
|
|
|
type OutRequest struct {
|
|
Source Source `json:"source"`
|
|
Params OutParams `json:"params"`
|
|
}
|
|
|
|
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"`
|
|
}
|