-
Notifications
You must be signed in to change notification settings - Fork 88
/
interface.go
157 lines (135 loc) · 7.44 KB
/
interface.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
package handlers
import "net/http"
type KOTSHandler interface {
Ping(w http.ResponseWriter, r *http.Request)
UploadNewLicense(w http.ResponseWriter, r *http.Request)
ExchangePlatformLicense(w http.ResponseWriter, r *http.Request)
ResumeInstallOnline(w http.ResponseWriter, r *http.Request)
GetOnlineInstallStatus(w http.ResponseWriter, r *http.Request)
CanInstallAppVersion(w http.ResponseWriter, r *http.Request)
GetAutomatedInstallStatus(w http.ResponseWriter, r *http.Request)
// Support Bundles
GetSupportBundle(w http.ResponseWriter, r *http.Request) // TODO: appSlug
ListSupportBundles(w http.ResponseWriter, r *http.Request)
GetSupportBundleCommand(w http.ResponseWriter, r *http.Request)
GetSupportBundleFiles(w http.ResponseWriter, r *http.Request) // TODO: appSlug
GetSupportBundleRedactions(w http.ResponseWriter, r *http.Request) // TODO: appSlug
DownloadSupportBundle(w http.ResponseWriter, r *http.Request) // TODO: appSlug
CollectSupportBundle(w http.ResponseWriter, r *http.Request)
CollectHelmSupportBundle(w http.ResponseWriter, r *http.Request)
ShareSupportBundle(w http.ResponseWriter, r *http.Request)
GetPodDetailsFromSupportBundle(w http.ResponseWriter, r *http.Request)
// redactor routes
UpdateRedact(w http.ResponseWriter, r *http.Request)
GetRedact(w http.ResponseWriter, r *http.Request)
ListRedactors(w http.ResponseWriter, r *http.Request)
GetRedactMetadataAndYaml(w http.ResponseWriter, r *http.Request)
SetRedactMetadataAndYaml(w http.ResponseWriter, r *http.Request)
DeleteRedact(w http.ResponseWriter, r *http.Request)
SetRedactEnabled(w http.ResponseWriter, r *http.Request)
// Kotsadm Identity Service
ConfigureIdentityService(w http.ResponseWriter, r *http.Request)
GetIdentityServiceConfig(w http.ResponseWriter, r *http.Request)
// App Identity Service
ConfigureAppIdentityService(w http.ResponseWriter, r *http.Request)
GetAppIdentityServiceConfig(w http.ResponseWriter, r *http.Request)
// Apps
ListApps(w http.ResponseWriter, r *http.Request)
GetApp(w http.ResponseWriter, r *http.Request)
GetAppStatus(w http.ResponseWriter, r *http.Request)
GetAppVersionHistory(w http.ResponseWriter, r *http.Request)
GetLatestDeployableVersion(w http.ResponseWriter, r *http.Request)
GetUpdateDownloadStatus(w http.ResponseWriter, r *http.Request) // NOTE: appSlug is unused
GetPendingApp(w http.ResponseWriter, r *http.Request)
// Airgap
AirgapBundleProgress(w http.ResponseWriter, r *http.Request)
AirgapBundleExists(w http.ResponseWriter, r *http.Request)
CreateAppFromAirgap(w http.ResponseWriter, r *http.Request)
UpdateAppFromAirgap(w http.ResponseWriter, r *http.Request)
CheckAirgapBundleChunk(w http.ResponseWriter, r *http.Request)
UploadAirgapBundleChunk(w http.ResponseWriter, r *http.Request)
GetAirgapInstallStatus(w http.ResponseWriter, r *http.Request)
ResetAirgapInstallStatus(w http.ResponseWriter, r *http.Request)
GetAirgapUploadConfig(w http.ResponseWriter, r *http.Request)
// Implemented handlers
IgnorePreflightRBACErrors(w http.ResponseWriter, r *http.Request)
StartPreflightChecks(w http.ResponseWriter, r *http.Request)
GetLatestPreflightResultsForSequenceZero(w http.ResponseWriter, r *http.Request)
GetPreflightResult(w http.ResponseWriter, r *http.Request)
GetPreflightCommand(w http.ResponseWriter, r *http.Request) // this is intentionally policy.AppRead
PreflightsReports(w http.ResponseWriter, r *http.Request)
UpdateAdminConsole(w http.ResponseWriter, r *http.Request)
GetAdminConsoleUpdateStatus(w http.ResponseWriter, r *http.Request)
DownloadAppVersion(w http.ResponseWriter, r *http.Request)
GetAppVersionDownloadStatus(w http.ResponseWriter, r *http.Request)
DeployAppVersion(w http.ResponseWriter, r *http.Request)
RedeployAppVersion(w http.ResponseWriter, r *http.Request)
GetAppRenderedContents(w http.ResponseWriter, r *http.Request)
GetAppContents(w http.ResponseWriter, r *http.Request)
GetAppDashboard(w http.ResponseWriter, r *http.Request)
GetDownstreamOutput(w http.ResponseWriter, r *http.Request)
GetKotsadmRegistry(w http.ResponseWriter, r *http.Request)
GetImageRewriteStatus(w http.ResponseWriter, r *http.Request)
DockerHubSecretUpdated(w http.ResponseWriter, r *http.Request)
UpdateAppRegistry(w http.ResponseWriter, r *http.Request)
GetAppRegistry(w http.ResponseWriter, r *http.Request)
ValidateAppRegistry(w http.ResponseWriter, r *http.Request)
GarbageCollectImages(w http.ResponseWriter, r *http.Request)
UpdateAppConfig(w http.ResponseWriter, r *http.Request)
CurrentAppConfig(w http.ResponseWriter, r *http.Request)
LiveAppConfig(w http.ResponseWriter, r *http.Request)
SetAppConfigValues(w http.ResponseWriter, r *http.Request)
DownloadFileFromConfig(w http.ResponseWriter, r *http.Request)
SyncLicense(w http.ResponseWriter, r *http.Request)
ChangeLicense(w http.ResponseWriter, r *http.Request)
GetLicense(w http.ResponseWriter, r *http.Request)
AppUpdateCheck(w http.ResponseWriter, r *http.Request)
SetAutomaticUpdatesConfig(w http.ResponseWriter, r *http.Request)
GetAutomaticUpdatesConfig(w http.ResponseWriter, r *http.Request)
RemoveApp(w http.ResponseWriter, r *http.Request)
// App snapshot routes
CreateApplicationBackup(w http.ResponseWriter, r *http.Request)
GetRestoreStatus(w http.ResponseWriter, r *http.Request)
CancelRestore(w http.ResponseWriter, r *http.Request)
CreateApplicationRestore(w http.ResponseWriter, r *http.Request)
GetRestoreDetails(w http.ResponseWriter, r *http.Request)
ListBackups(w http.ResponseWriter, r *http.Request)
GetSnapshotConfig(w http.ResponseWriter, r *http.Request)
SaveSnapshotConfig(w http.ResponseWriter, r *http.Request)
// Global snapshot routes
ListInstanceBackups(w http.ResponseWriter, r *http.Request)
CreateInstanceBackup(w http.ResponseWriter, r *http.Request)
GetInstanceSnapshotConfig(w http.ResponseWriter, r *http.Request)
SaveInstanceSnapshotConfig(w http.ResponseWriter, r *http.Request)
GetGlobalSnapshotSettings(w http.ResponseWriter, r *http.Request)
UpdateGlobalSnapshotSettings(w http.ResponseWriter, r *http.Request)
ConfigureFileSystemSnapshotProvider(w http.ResponseWriter, r *http.Request)
GetBackup(w http.ResponseWriter, r *http.Request)
DeleteBackup(w http.ResponseWriter, r *http.Request)
RestoreApps(w http.ResponseWriter, r *http.Request)
GetRestoreAppsStatus(w http.ResponseWriter, r *http.Request)
DownloadSnapshotLogs(w http.ResponseWriter, r *http.Request)
GetVeleroStatus(w http.ResponseWriter, r *http.Request)
// KURL
GenerateNodeJoinCommandWorker(w http.ResponseWriter, r *http.Request)
GenerateNodeJoinCommandMaster(w http.ResponseWriter, r *http.Request)
GenerateNodeJoinCommandSecondary(w http.ResponseWriter, r *http.Request)
GenerateNodeJoinCommandPrimary(w http.ResponseWriter, r *http.Request)
DrainNode(w http.ResponseWriter, r *http.Request)
DeleteNode(w http.ResponseWriter, r *http.Request)
GetKurlNodes(w http.ResponseWriter, r *http.Request)
// Prometheus
SetPrometheusAddress(w http.ResponseWriter, r *http.Request)
// GitOps
UpdateAppGitOps(w http.ResponseWriter, r *http.Request)
DisableAppGitOps(w http.ResponseWriter, r *http.Request)
InitGitOpsConnection(w http.ResponseWriter, r *http.Request)
CreateGitOps(w http.ResponseWriter, r *http.Request)
ResetGitOps(w http.ResponseWriter, r *http.Request)
GetGitOpsRepo(w http.ResponseWriter, r *http.Request)
// Password change
ChangePassword(w http.ResponseWriter, r *http.Request)
// Helm
IsHelmManaged(w http.ResponseWriter, r *http.Request)
GetAppValuesFile(w http.ResponseWriter, r *http.Request)
}