forked from rancher/agent
/
image.go
70 lines (61 loc) · 1.91 KB
/
image.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
63
64
65
66
67
68
69
70
package model
type Image struct {
AccountID int `json:"accountId"`
Checksum interface{} `json:"checksum"`
Created int64 `json:"created"`
Data ImageData `json:"data"`
Description interface{} `json:"description"`
ID int `json:"id"`
IsPublic bool `json:"isPublic"`
Name string `json:"name"`
PhysicalSizeBytes interface{} `json:"physicalSizeBytes"`
Prepopulate bool `json:"prepopulate"`
PrepopulateStamp string `json:"prepopulateStamp"`
RemoveTime interface{} `json:"removeTime"`
Removed interface{} `json:"removed"`
State string `json:"state"`
Type string `json:"type"`
URL interface{} `json:"url"`
UUID string `json:"uuid"`
VirtualSizeBytes interface{} `json:"virtualSizeBytes"`
RegistryCredential RegistryCredential `json:"registryCredential"`
ProcessData ProcessData
}
type ImageData struct {
Fields ImageFields
DockerImage DockerImage
}
type ImageFields struct {
Build BuildOptions
}
type BuildOptions struct {
Context string
FileObj string
Remote string
Tag string
}
type RegistryCredential struct {
PublicValue string
SecretValue string
Data CredentialData
}
type CredentialData struct {
Fields CredentialFields
}
type CredentialFields struct {
ServerAddress string
Email string
}
type DockerImage struct {
FullName string `json:"fullName"`
ID string `json:"id"`
Namespace string `json:"namespace"`
QualifiedName string `json:"qualifiedName"`
Repository string `json:"repository"`
Tag string `json:"tag"`
}
type RepoTag struct {
Repo string
Tag string
UUID string
}