-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
62 lines (51 loc) · 1.3 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// Copyright (C) 2024 Dmitry Kolesnikov
//
// This file may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
// https://github.com/kshard/optimum
//
package optimum
import (
"time"
"github.com/fogfish/curie"
"github.com/fogfish/schemaorg"
)
type Instances struct {
Items []Instance `json:"items,omitempty"`
}
type Instance struct {
ID curie.IRI `json:"id"`
Opts string `json:"opts"`
Status string `json:"status"`
Updated time.Time `json:"updated"`
Version string `json:"version"`
Pending string `json:"pending"`
}
type create struct {
Name string `json:"name"`
Opts map[string]any `json:"opts"`
}
type Created struct {
Version string `json:"version,omitempty"`
Job schemaorg.Url `json:"job"`
}
type commit struct {
Cursor string `json:"cursor"`
}
type Committed struct {
Version string `json:"version,omitempty"`
Job schemaorg.Url `json:"job"`
}
type JobStatus struct {
Status string `json:"status,omitempty"`
Reason string `json:"reason,omitempty"`
Created string `json:"created,omitempty"`
Started string `json:"started,omitempty"`
Stopped string `json:"stopped,omitempty"`
}
type Source struct {
Cask string `json:"cask"`
Version string `json:"version"`
Size int `json:"size"`
}