-
Notifications
You must be signed in to change notification settings - Fork 572
/
types.go
109 lines (97 loc) · 3.39 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package jfrog
import (
"time"
)
type RegistryJfrog struct {
Name string `json:"name" validate:"required,min=2,max=64"`
NonSecret NonSecret `json:"non_secret"`
Secret Secret `json:"secret"`
RegistryType string `json:"registry_type" validate:"required"`
}
type NonSecret struct {
JfrogRegistryURL string `json:"jfrog_registry_url" validate:"required,url"`
JfrogRepository string `json:"jfrog_repository" validate:"required,min=2"`
JfrogUsername string `json:"jfrog_username" validate:"omitempty,min=2"`
}
type Secret struct {
JfrogPassword string `json:"jfrog_password" validate:"omitempty,min=2"`
}
type ReposResp struct {
Repositories []string `json:"repositories"`
}
type RepoTagsResp struct {
Name string `json:"name"`
Tags []string `json:"tags"`
}
type Manifest struct {
SchemaVersion int `json:"schemaVersion"`
Name string `json:"name"`
Tag string `json:"tag"`
Architecture string `json:"architecture"`
FsLayers []FsLayers `json:"fsLayers"`
History []History `json:"history"`
Signatures []Signatures `json:"signatures"`
}
type TagInfo struct {
Created string `json:"created"`
LastModified string `json:"lastModified"`
LastUpdated string `json:"lastUpdated"`
}
type FsLayers struct {
BlobSum string `json:"blobSum"`
}
type History struct {
V1Compatibility string `json:"v1Compatibility"`
}
type Jwk struct {
Crv string `json:"crv"`
Kid string `json:"kid"`
Kty string `json:"kty"`
X string `json:"x"`
Y string `json:"y"`
}
type Header struct {
Jwk Jwk `json:"jwk"`
Alg string `json:"alg"`
}
type Signatures struct {
Header Header `json:"header"`
Signature string `json:"signature"`
Protected string `json:"protected"`
}
type HistoryV1Compatibility struct {
Architecture string `json:"architecture"`
Config ContainerConfig `json:"config"`
Container string `json:"container"`
ContainerConfig ContainerConfig `json:"container_config"`
Created time.Time `json:"created"`
DockerVersion string `json:"docker_version"`
ID string `json:"id"`
Os string `json:"os"`
Parent string `json:"parent"`
Throwaway bool `json:"throwaway"`
}
type Labels struct {
Maintainer string `json:"maintainer"`
}
type ContainerConfig struct {
Hostname string `json:"Hostname"`
Domainname string `json:"Domainname"`
User string `json:"User"`
AttachStdin bool `json:"AttachStdin"`
AttachStdout bool `json:"AttachStdout"`
AttachStderr bool `json:"AttachStderr"`
ExposedPorts map[string]interface{} `json:"ExposedPorts"`
Tty bool `json:"Tty"`
OpenStdin bool `json:"OpenStdin"`
StdinOnce bool `json:"StdinOnce"`
Env []string `json:"Env"`
Cmd []string `json:"Cmd"`
Image string `json:"Image"`
Volumes interface{} `json:"Volumes"`
WorkingDir string `json:"WorkingDir"`
Entrypoint []string `json:"Entrypoint"`
OnBuild interface{} `json:"OnBuild"`
Labels Labels `json:"Labels"`
StopSignal string `json:"StopSignal"`
}