Ugly but working inital snapjob implementation

This commit is contained in:
InsanePrawn
2018-11-20 19:30:15 +01:00
parent 7ab51fad0d
commit 3d2688e959
6 changed files with 455 additions and 0 deletions
+3
View File
@@ -39,6 +39,7 @@ type Type string
const (
TypeInternal Type = "internal"
TypeSnap = "snap"
TypePush Type = "push"
TypeSink Type = "sink"
TypePull Type = "pull"
@@ -84,6 +85,8 @@ func (s *Status) UnmarshalJSON(in []byte) (err error) {
return fmt.Errorf("field '%s', not found", key)
}
switch s.Type {
case TypeSnap:
fallthrough
case TypePull: fallthrough
case TypePush:
var st ActiveSideStatus