-
Notifications
You must be signed in to change notification settings - Fork 88
/
types.go
107 lines (93 loc) · 2.23 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
package types
import (
"io"
"net/http"
"time"
"github.com/containers/image/v5/types"
dockerregistrytypes "github.com/replicatedhq/kots/pkg/docker/registry/types"
"github.com/replicatedhq/kots/pkg/logger"
registrytypes "github.com/replicatedhq/kots/pkg/registry/types"
)
type ProcessImageOptions struct {
AppSlug string
Namespace string
RewriteImages bool
CopyImages bool
RegistrySettings registrytypes.RegistrySettings
RootDir string
IsAirgap bool
AirgapBundle string
CreateAppDir bool
ReportWriter io.Writer
}
type RegistryAuth struct {
Username string
Password string
}
type InstallationImageInfo struct {
IsPrivate bool
}
type CopyImageOptions struct {
SrcRef types.ImageReference
DestRef types.ImageReference
SrcAuth RegistryAuth
DestAuth RegistryAuth
CopyAll bool
SrcDisableV1Ping bool
SrcSkipTLSVerify bool
DestDisableV1Ping bool
DestSkipTLSVerify bool
ReportWriter io.Writer
}
type CopyAirgapImagesResult struct {
EmbeddedClusterArtifacts []string
}
type PushImagesOptions struct {
Registry dockerregistrytypes.RegistryOptions
KotsadmTag string
Log *logger.CLILogger
ProgressWriter io.Writer
LogForUI bool
}
type PushImageOptions struct {
ImageID string
ImageInfo *ImageInfo
Log *logger.CLILogger
LogForUI bool
ReportWriter io.Writer
CopyImageOptions CopyImageOptions
}
type ImageInfo struct {
Format string
Status string
Error string
Layers map[string]*LayerInfo
UploadStart time.Time
UploadEnd time.Time
}
type LayerInfo struct {
ID string
Size int64
UploadStart time.Time
UploadEnd time.Time
}
type PushEmbeddedClusterArtifactsOptions struct {
Registry dockerregistrytypes.RegistryOptions
ChannelID string
UpdateCursor string
VersionLabel string
HTTPClient *http.Client
}
type PushOCIArtifactOptions struct {
Files []OCIArtifactFile
ArtifactType string
Registry dockerregistrytypes.RegistryOptions
Repository string
Tag string
HTTPClient *http.Client
}
type OCIArtifactFile struct {
Name string
Path string
MediaType string
}