-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsource.go
More file actions
23 lines (20 loc) · 688 Bytes
/
source.go
File metadata and controls
23 lines (20 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package source
import (
"net/http"
)
// Source is a release source interface
type Source interface {
Parse(r *http.Request) (*ReleaseRequest, error)
}
// ReleaseRequest is the release request for new plugin
type ReleaseRequest struct {
TagName string `json:"tagName"`
PluginName string `json:"pluginName"`
PluginRepo string `json:"pluginRepo"`
PluginOwner string `json:"pluginOwner"`
PluginReleaseActor string `json:"pluginReleaseActor"`
TemplateFile string `json:"templateFile"`
ProcessedTemplate []byte `json:"processedTemplate"`
KrewIndexName string `json:"krewIndexName"`
KrewIndexOwner string `json:"krewIndexOwner"`
}