Documentation ¶
Index ¶
- Constants
- func CORS(w http.ResponseWriter, r *http.Request)
- func CorsMiddleware(next http.Handler) http.Handler
- func DebugLoggingMiddleware(next http.Handler) http.Handler
- func GetMetaDataConfig() (*v1.ConfigMap, types.Metadata, error)
- func GetMetadataHandler(getK8sInfoFn MetadataK8sFn, kotsStore store.Store) http.HandlerFunc
- func JSON(w http.ResponseWriter, code int, payload interface{})
- func LoggingMiddleware(next http.Handler) http.Handler
- func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter
- func NodeProxy(upstream *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)
- func NotImplemented(w http.ResponseWriter, r *http.Request)
- func RegisterSessionAuthRoutes(r *mux.Router, kotsStore store.Store, handler KOTSHandler, ...)
- func RegisterTokenAuthRoutes(handler *Handler, debugRouter *mux.Router, loggingRouter *mux.Router)
- func RegisterUnauthenticatedRoutes(handler *Handler, kotsStore store.Store, debugRouter *mux.Router, ...)
- func RequireValidSessionMiddleware(kotsStore store.Store) mux.MiddlewareFunc
- func RequireValidSessionQuietMiddleware(kotsStore store.Store) mux.MiddlewareFunc
- func Root(w http.ResponseWriter, r *http.Request)
- func StreamJSON(c *websocket.Conn, payload interface{})
- func YAML(w http.ResponseWriter, code int, payload interface{})
- type AdminConsoleMetadata
- type AdminConsoleUpgradeError
- type AirgapBundleExistsResponse
- type AirgapBundleProgressResponse
- type AppRestoreStatus
- type AppUpdateCheckRequest
- type AppUpdateCheckResponse
- type AppUpdateRelease
- type CanInstallAppVersionRequest
- type CanInstallAppVersionResponse
- type ChangeLicenseRequest
- type ChangeLicenseResponse
- type CollectSupportBundlesResponse
- type ConfigureIdentityServiceRequest
- type CreateAppFromAirgapRequest
- type CreateAppFromAirgapResponse
- type CreateApplicationBackupRequest
- type CreateApplicationBackupResponse
- type CreateApplicationRestoreResponse
- type CreateGitOpsInput
- type CreateGitOpsRequest
- type CreateInstanceBackupRequest
- type CreateInstanceBackupResponse
- type CurrentAppConfigResponse
- type DatabaseResponse
- type DeleteBackupResponse
- type DeployAppVersionRequest
- type DeployAppVersionResponse
- type DexConnectorInfo
- type DockerHubSecretUpdatedResponse
- type DownloadAppVersionResponse
- type DownloadFileFromConfigResponse
- type DownstreamLogs
- type EntitlementResponse
- type ExchangePlatformLicenseRequest
- type ExchangePlatformLicenseResponse
- type FileSystemOptions
- type GarbageCollectImagesRequest
- type GarbageCollectImagesResponse
- type GenerateNodeJoinCommandResponse
- type GetAdminConsoleUpdateStatusResponse
- type GetAirgapUploadConfigResponse
- type GetAppContentsResponse
- type GetAppDashboardResponse
- type GetAppRegistryResponse
- type GetAppRenderedContentsErrorResponse
- type GetAppRenderedContentsResponse
- type GetAppVersionDownloadStatusResponse
- type GetAppVersionHistoryResponse
- type GetApplicationPortsResponse
- type GetAutomaticUpdatesConfigResponse
- type GetBackupResponse
- type GetDownstreamOutputResponse
- type GetFileSystemSnapshotProviderInstructionsRequest
- type GetFileSystemSnapshotProviderInstructionsResponse
- type GetIdentityServiceConfigResponse
- type GetImageRewriteStatusResponse
- type GetKotsadmRegistryResponse
- type GetLatestDeployableVersionResponse
- type GetLicenseResponse
- type GetLoginInfoResponse
- type GetOnlineInstallStatusErrorResponse
- type GetPodDetailsFromSupportBundleResponse
- type GetPreflightCommandRequest
- type GetPreflightCommandResponse
- type GetPreflightResultResponse
- type GetRedactResponse
- type GetRedactorResponse
- type GetRestoreAppsStatusRequest
- type GetRestoreAppsStatusResponse
- type GetRestoreDetailsResponse
- type GetRestoreStatusResponse
- type GetSupportBundleCommandRequest
- type GetSupportBundleCommandResponse
- type GetSupportBundleFilesResponse
- type GetSupportBundleRedactionsResponse
- type GetSupportBundleResponse
- type GetUpdateDownloadStatusResponse
- type GlobalSnapshotSettingsResponse
- type Handler
- func (h *Handler) AirgapBundleExists(w http.ResponseWriter, r *http.Request)
- func (h *Handler) AirgapBundleProgress(w http.ResponseWriter, r *http.Request)
- func (h *Handler) AppUpdateCheck(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CanInstallAppVersion(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CancelRestore(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ChangeLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CheckAirgapBundleChunk(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CollectHelmSupportBundle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CollectSupportBundle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ConfigureAppIdentityService(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ConfigureIdentityService(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateAppFromAirgap(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateApplicationBackup(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateApplicationRestore(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateGitOps(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateInstanceBackup(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CurrentAppConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteBackup(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteNode(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteRedact(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteSupportBundle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeployAppVersion(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DisableAppGitOps(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DockerHubSecretUpdated(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DownloadApp(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DownloadAppVersion(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DownloadFileFromConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DownloadSnapshotLogs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DownloadSupportBundle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DrainNode(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ExchangePlatformLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GarbageCollectImages(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GenerateNodeJoinCommandMaster(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GenerateNodeJoinCommandPrimary(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GenerateNodeJoinCommandSecondary(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GenerateNodeJoinCommandWorker(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAdminConsoleUpdateStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAirgapInstallStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAirgapUploadConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetApp(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppContents(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppDashboard(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppIdentityServiceConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppRegistry(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppRenderedContents(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppValuesFile(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppVersionDownloadStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAppVersionHistory(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetApplicationPorts(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAutomatedInstallStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAutomaticUpdatesConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetBackup(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDownstreamOutput(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetFileSystemSnapshotProviderInstructions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetGitOpsRepo(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetGlobalSnapshotSettings(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetIdentityServiceConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetImageRewriteStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInstanceSnapshotConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetKotsadmRegistry(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetKurlNodes(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetLatestDeployableVersion(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetLatestPreflightResultsForSequenceZero(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetLoginInfo(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetOnlineInstallStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPendingApp(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPlatformLicenseCompatibility(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPodDetailsFromSupportBundle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPreflightCommand(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPreflightResult(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRedact(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRedactMetadataAndYaml(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRestoreAppsStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRestoreDetails(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRestoreStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSnapshotConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSupportBundle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSupportBundleCommand(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSupportBundleFiles(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSupportBundleRedactions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUpdateDownloadStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetVeleroStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Healthz(w http.ResponseWriter, r *http.Request)
- func (h *Handler) IgnorePreflightRBACErrors(w http.ResponseWriter, r *http.Request)
- func (h *Handler) InitGitOpsConnection(w http.ResponseWriter, r *http.Request)
- func (h *Handler) IsHelmManaged(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListApps(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListBackups(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListInstanceBackups(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListRedactors(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListSupportBundles(w http.ResponseWriter, r *http.Request)
- func (h *Handler) LiveAppConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Login(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Logout(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OIDCLogin(w http.ResponseWriter, r *http.Request)
- func (h *Handler) OIDCLoginCallback(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Ping(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PostPreflightStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PreflightsReports(w http.ResponseWriter, r *http.Request)
- func (h *Handler) RedeployAppVersion(w http.ResponseWriter, r *http.Request)
- func (h *Handler) RemoveApp(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ResetAirgapInstallStatus(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ResetGitOps(w http.ResponseWriter, r *http.Request)
- func (h *Handler) RestoreApps(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ResumeInstallOnline(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SaveInstanceSnapshotConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SaveSnapshotConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SetAppConfigValues(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SetAutomaticUpdatesConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SetPrometheusAddress(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SetRedactEnabled(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SetRedactMetadataAndYaml(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SetSupportBundleRedactions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ShareSupportBundle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) StartPreflightChecks(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SyncLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateAdminConsole(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateAppConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateAppFromAirgap(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateAppGitOps(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateAppRegistry(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateGlobalSnapshotSettings(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateRedact(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UploadAirgapBundleChunk(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UploadExistingApp(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UploadInitialAirgapApp(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UploadInitialBranding(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UploadNewLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UploadSupportBundle(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ValidateAppRegistry(w http.ResponseWriter, r *http.Request)
- type HealthzResponse
- type IDPConfig
- type InstanceSnapshotConfig
- type IsHelmManagedResponse
- type KOTSHandler
- type LicenseResponse
- type ListBackupsResponse
- type ListInstanceBackupsResponse
- type ListRedactorsResponse
- type ListSupportBundlesResponse
- type LiveAppConfigRequest
- type LiveAppConfigResponse
- type LoginMethod
- type LoginRequest
- type LoginResponse
- type MetadataK8sFn
- type MetadataResponse
- type MetadataResponseBranding
- type OIDCClaimMapping
- type OIDCConfig
- type OIDCLoginResponse
- type PasswordChangeRequest
- type PasswordChangeResponse
- type PingResponse
- type PodContainer
- type PostRedactorEnabledMetadata
- type PostRedactorMetadata
- type PutSupportBundleRedactions
- type RemoveAppRequest
- type RemoveAppResponse
- type ResponseSupportBundle
- type RestoreAppsRequest
- type RestoreAppsResponse
- type ResumeInstallOnlineRequest
- type ResumeInstallOnlineResponse
- type SPAHandler
- type SaveInstanceSnapshotConfigRequest
- type SaveInstanceSnapshotConfigResponse
- type SaveSnapshotConfigRequest
- type SaveSnapshotConfigResponse
- type SetAppConfigValuesRequest
- type SetAppConfigValuesResponse
- type SetAutomaticUpdatesConfigRequest
- type SetAutomaticUpdatesConfigResponse
- type SetPrometheusAddressRequest
- type SnapshotConfig
- type StatusNotFoundHandler
- type StatusResponse
- type StorageResponse
- type SyncLicenseRequest
- type SyncLicenseResponse
- type UpdateAdminConsoleResponse
- type UpdateAppConfigRequest
- type UpdateAppConfigResponse
- type UpdateAppFromAirgapRequest
- type UpdateAppFromAirgapResponse
- type UpdateAppGitOpsInput
- type UpdateAppGitOpsRequest
- type UpdateAppRegistryRequest
- type UpdateAppRegistryResponse
- type UpdateGlobalSnapshotSettingsRequest
- type UpdateRedactRequest
- type UpdateRedactResponse
- type UploadExistingAppRequest
- type UploadLicenseRequest
- type UploadLicenseResponse
- type UploadResponse
- type ValidateAppRegistryRequest
- type ValidateAppRegistryResponse
- type VeleroRBACResponse
- type VeleroStatus
Constants ¶
const (
RedactionMask = "--- REDACTED ---"
)
Variables ¶
This section is empty.
Functions ¶
func GetMetaDataConfig ¶
GetMetaDataConfig retrieves configMap from k8s used to construct metadata
func GetMetadataHandler ¶
func GetMetadataHandler(getK8sInfoFn MetadataK8sFn, kotsStore store.Store) http.HandlerFunc
GetMetadataHandler helper function that returns a http handler func that returns metadata. It takes a function that retrieves state information from an active k8s cluster.
func JSON ¶
func JSON(w http.ResponseWriter, code int, payload interface{})
func NewLoggingResponseWriter ¶
func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter
func NodeProxy ¶
func NodeProxy(upstream *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)
func NotImplemented ¶
func NotImplemented(w http.ResponseWriter, r *http.Request)
func RegisterSessionAuthRoutes ¶
func RegisterSessionAuthRoutes(r *mux.Router, kotsStore store.Store, handler KOTSHandler, middleware *policy.Middleware)
func RegisterTokenAuthRoutes ¶
func RequireValidSessionMiddleware ¶
func RequireValidSessionMiddleware(kotsStore store.Store) mux.MiddlewareFunc
func RequireValidSessionQuietMiddleware ¶
func RequireValidSessionQuietMiddleware(kotsStore store.Store) mux.MiddlewareFunc
func StreamJSON ¶
func YAML ¶
func YAML(w http.ResponseWriter, code int, payload interface{})
Types ¶
type AdminConsoleMetadata ¶
type AdminConsoleUpgradeError ¶
func (AdminConsoleUpgradeError) Error ¶
func (e AdminConsoleUpgradeError) Error() string
type AirgapBundleExistsResponse ¶
type AirgapBundleExistsResponse struct {
Exists bool `json:"exists"`
}
type AirgapBundleProgressResponse ¶
type AirgapBundleProgressResponse struct {
Progress float64 `json:"progress"`
}
type AppRestoreStatus ¶
type AppRestoreStatus struct { AppSlug string `json:"appSlug"` RestoreDetail snapshottypes.RestoreDetail `json:"restoreDetail"` }
type AppUpdateCheckRequest ¶
type AppUpdateCheckRequest struct { }
type AppUpdateCheckResponse ¶
type AppUpdateCheckResponse struct { AvailableUpdates int64 `json:"availableUpdates"` CurrentAppSequence int64 `json:"currentAppSequence"` CurrentRelease *AppUpdateRelease `json:"currentRelease,omitempty"` AvailableReleases []AppUpdateRelease `json:"availableReleases"` DeployingRelease *AppUpdateRelease `json:"deployingRelease,omitempty"` }
type AppUpdateRelease ¶
type ChangeLicenseRequest ¶
type ChangeLicenseRequest struct {
LicenseData string `json:"licenseData"`
}
type ChangeLicenseResponse ¶
type ChangeLicenseResponse struct { Success bool `json:"success"` Error string `json:"error,omitempty"` License LicenseResponse `json:"license"` }
type ConfigureIdentityServiceRequest ¶
type ConfigureIdentityServiceRequest struct { AdminConsoleAddress string `json:"adminConsoleAddress,omitempty"` IdentityServiceAddress string `json:"identityServiceAddress,omitempty"` UseAdminConsoleSettings bool `json:"useAdminConsoleSettings,omitempty"` Groups []kotsv1beta1.IdentityConfigGroup `json:"groups,omitempty"` IDPConfig `json:",inline"` }
TODO: separate request types for kotsadm and the app?
type CreateAppFromAirgapResponse ¶
type CreateAppFromAirgapResponse struct { }
type CreateApplicationBackupRequest ¶
type CreateApplicationBackupRequest struct { }
type CreateGitOpsInput ¶
type CreateGitOpsRequest ¶
type CreateGitOpsRequest struct {
GitOpsInput CreateGitOpsInput `json:"gitOpsInput"`
}
type CreateInstanceBackupRequest ¶
type CreateInstanceBackupRequest struct { }
type CurrentAppConfigResponse ¶
type CurrentAppConfigResponse struct { Success bool `json:"success"` Error string `json:"error,omitempty"` DownstreamVersion *downstreamtypes.DownstreamVersion `json:"downstreamVersion"` ConfigGroups []kotsv1beta1.ConfigGroup `json:"configGroups"` }
type DatabaseResponse ¶
type DatabaseResponse struct {
Connected bool `json:"connected"`
}
type DeleteBackupResponse ¶
type DeployAppVersionRequest ¶
type DexConnectorInfo ¶
type DownstreamLogs ¶
type DownstreamLogs struct { DryrunStdout string `json:"dryrunStdout"` DryrunStderr string `json:"dryrunStderr"` ApplyStdout string `json:"applyStdout"` ApplyStderr string `json:"applyStderr"` HelmStdout string `json:"helmStdout"` HelmStderr string `json:"helmStderr"` RenderError string `json:"renderError"` }
type EntitlementResponse ¶
type ExchangePlatformLicenseRequest ¶
type ExchangePlatformLicenseRequest struct {
LicenseData string `json:"licenseData"`
}
type ExchangePlatformLicenseResponse ¶
type ExchangePlatformLicenseResponse struct {
LicenseData string `json:"licenseData"`
}
type FileSystemOptions ¶
type FileSystemOptions struct { kotssnapshottypes.FileSystemConfig `json:",inline"` ForceReset bool `json:"forceReset,omitempty"` }
type GarbageCollectImagesRequest ¶
type GarbageCollectImagesRequest struct {
IgnoreRollback bool `json:"ignoreRollback,omitempty"`
}
type GarbageCollectImagesResponse ¶
type GarbageCollectImagesResponse struct {
Error string `json:"error,omitempty"`
}
type GetAirgapUploadConfigResponse ¶
type GetAirgapUploadConfigResponse struct {
SimultaneousUploads int `json:"simultaneousUploads"`
}
type GetAppContentsResponse ¶
type GetAppDashboardResponse ¶
type GetAppDashboardResponse struct { AppStatus *appstatetypes.AppStatus `json:"appStatus"` Metrics []version.MetricChart `json:"metrics"` PrometheusAddress string `json:"prometheusAddress"` }
type GetAppRegistryResponse ¶
type GetAppRenderedContentsErrorResponse ¶
type GetAppRenderedContentsErrorResponse struct {
Error string `json:"error"`
}
type GetAppVersionHistoryResponse ¶
type GetAppVersionHistoryResponse struct {
downstreamtypes.DownstreamVersionHistory `json:",inline"`
}
type GetApplicationPortsResponse ¶
type GetApplicationPortsResponse struct {
Ports []versiontypes.ForwardedPort `json:"ports"`
}
type GetAutomaticUpdatesConfigResponse ¶ added in v1.86.1
type GetAutomaticUpdatesConfigResponse struct { UpdateCheckerSpec string `json:"updateCheckerSpec"` AutoDeploy apptypes.AutoDeploy `json:"autoDeploy"` Error string `json:"error"` }
type GetBackupResponse ¶
type GetBackupResponse struct { BackupDetail *snapshottypes.BackupDetail `json:"backupDetail"` Success bool `json:"success"` Error string `json:"error,omitempty"` }
type GetDownstreamOutputResponse ¶
type GetDownstreamOutputResponse struct {
Logs DownstreamLogs `json:"logs"`
}
type GetFileSystemSnapshotProviderInstructionsRequest ¶ added in v1.94.0
type GetFileSystemSnapshotProviderInstructionsRequest struct {
FileSystemOptions FileSystemOptions `json:"fileSystemOptions"`
}
type GetFileSystemSnapshotProviderInstructionsResponse ¶ added in v1.94.0
type GetFileSystemSnapshotProviderInstructionsResponse struct { Success bool `json:"success"` Error string `json:"error,omitempty"` Instructions []print.VeleroInstallationInstruction `json:"instructions,omitempty"` }
type GetIdentityServiceConfigResponse ¶
type GetIdentityServiceConfigResponse struct { Enabled bool `json:"enabled"` AdminConsoleAddress string `json:"adminConsoleAddress,omitempty"` IdentityServiceAddress string `json:"identityServiceAddress,omitempty"` Groups []kotsv1beta1.IdentityConfigGroup `json:"groups,omitempty"` Roles []kotsv1beta1.IdentityRole `json:"roles,omitempty"` IDPConfig `json:",inline"` }
type GetLatestDeployableVersionResponse ¶
type GetLatestDeployableVersionResponse struct { LatestDeployableVersion *downstreamtypes.DownstreamVersion `json:"latestDeployableVersion"` NumOfSkippedVersions int `json:"numOfSkippedVersions"` NumOfRemainingVersions int `json:"numOfRemainingVersions"` Error string `json:"error"` }
type GetLicenseResponse ¶
type GetLicenseResponse struct { Success bool `json:"success"` Error string `json:"error,omitempty"` License LicenseResponse `json:"license"` }
type GetLoginInfoResponse ¶
type GetLoginInfoResponse struct { Method LoginMethod `json:"method"` Error string `json:"error,omitempty"` }
type GetOnlineInstallStatusErrorResponse ¶
type GetOnlineInstallStatusErrorResponse struct {
Error string `json:"error"`
}
type GetPodDetailsFromSupportBundleResponse ¶
type GetPodDetailsFromSupportBundleResponse struct { tsupportbundletypes.PodDetails `json:",inline"` Success bool `json:"success"` Error string `json:"error,omitempty"` }
type GetPreflightCommandRequest ¶
type GetPreflightCommandRequest struct {
Origin string `json:"origin"`
}
type GetPreflightCommandResponse ¶
type GetPreflightCommandResponse struct {
Command []string `json:"command"`
}
type GetPreflightResultResponse ¶
type GetPreflightResultResponse struct { PreflightProgress string `json:"preflightProgress,omitempty"` PreflightResult preflighttypes.PreflightResult `json:"preflightResult"` }
type GetRedactResponse ¶
type GetRedactorResponse ¶
type GetRedactorResponse struct { Redactor string `json:"redactor"` Metadata redacttypes.RedactorList `json:"redactorMetadata"` Success bool `json:"success"` Error string `json:"error,omitempty"` }
type GetRestoreAppsStatusResponse ¶
type GetRestoreAppsStatusResponse struct { Statuses []AppRestoreStatus `json:"statuses"` Error string `json:"error,omitempty"` }
type GetRestoreDetailsResponse ¶
type GetRestoreDetailsResponse struct { RestoreDetail *snapshottypes.RestoreDetail `json:"restoreDetail"` IsActive bool `json:"active"` }
type GetSupportBundleCommandRequest ¶
type GetSupportBundleCommandRequest struct {
Origin string `json:"origin"`
}
type GetSupportBundleCommandResponse ¶
type GetSupportBundleCommandResponse struct {
Command []string `json:"command"`
}
type GetSupportBundleRedactionsResponse ¶
type GetSupportBundleRedactionsResponse struct { Redactions redact2.RedactionList `json:"redactions"` Success bool `json:"success"` Error string `json:"error,omitempty"` }
type GetSupportBundleResponse ¶
type GetSupportBundleResponse struct { ID string `json:"id"` Slug string `json:"slug"` AppID string `json:"appId"` Name string `json:"name"` Size float64 `json:"size"` Status string `json:"status"` TreeIndex string `json:"treeIndex"` CreatedAt time.Time `json:"createdAt"` UploadedAt *time.Time `json:"uploadedAt"` UpdatedAt *time.Time `json:"updatedAt"` IsArchived bool `json:"isArchived"` Analysis *types.SupportBundleAnalysis `json:"analysis"` Progress *types.SupportBundleProgress `json:"progress"` }
type GlobalSnapshotSettingsResponse ¶
type GlobalSnapshotSettingsResponse struct { VeleroVersion string `json:"veleroVersion"` VeleroPlugins []string `json:"veleroPlugins"` VeleroNamespace string `json:"veleroNamespace"` IsVeleroRunning bool `json:"isVeleroRunning"` IsMinioDisabled bool `json:"isMinioDisabled"` VeleroPod string `json:"veleroPod"` NodeAgentVersion string `json:"nodeAgentVersion"` IsNodeAgentRunning bool `json:"isNodeAgentRunning"` NodeAgentPods []string `json:"nodeAgentPods"` KotsadmNamespace string `json:"kotsadmNamespace"` IsKurl bool `json:"isKurl"` IsMinimalRBACEnabled bool `json:"isMinimalRBACEnabled"` Store *kotssnapshottypes.Store `json:"store,omitempty"` FileSystemConfig *kotssnapshottypes.FileSystemConfig `json:"fileSystemConfig,omitempty"` Success bool `json:"success"` Error string `json:"error,omitempty"` }
type Handler ¶
type Handler struct { }
func (*Handler) AirgapBundleExists ¶
func (h *Handler) AirgapBundleExists(w http.ResponseWriter, r *http.Request)
func (*Handler) AirgapBundleProgress ¶
func (h *Handler) AirgapBundleProgress(w http.ResponseWriter, r *http.Request)
func (*Handler) AppUpdateCheck ¶
func (h *Handler) AppUpdateCheck(w http.ResponseWriter, r *http.Request)
func (*Handler) CanInstallAppVersion ¶
func (h *Handler) CanInstallAppVersion(w http.ResponseWriter, r *http.Request)
func (*Handler) CancelRestore ¶
func (h *Handler) CancelRestore(w http.ResponseWriter, r *http.Request)
func (*Handler) ChangeLicense ¶
func (h *Handler) ChangeLicense(w http.ResponseWriter, r *http.Request)
func (*Handler) ChangePassword ¶
func (h *Handler) ChangePassword(w http.ResponseWriter, r *http.Request)
ChangePassword - change password for kots
func (*Handler) CheckAirgapBundleChunk ¶
func (h *Handler) CheckAirgapBundleChunk(w http.ResponseWriter, r *http.Request)
func (*Handler) CollectHelmSupportBundle ¶
func (h *Handler) CollectHelmSupportBundle(w http.ResponseWriter, r *http.Request)
func (*Handler) CollectSupportBundle ¶
func (h *Handler) CollectSupportBundle(w http.ResponseWriter, r *http.Request)
func (*Handler) ConfigureAppIdentityService ¶
func (h *Handler) ConfigureAppIdentityService(w http.ResponseWriter, r *http.Request)
func (*Handler) ConfigureIdentityService ¶
func (h *Handler) ConfigureIdentityService(w http.ResponseWriter, r *http.Request)
func (*Handler) CreateAppFromAirgap ¶
func (h *Handler) CreateAppFromAirgap(w http.ResponseWriter, r *http.Request)
func (*Handler) CreateApplicationBackup ¶
func (h *Handler) CreateApplicationBackup(w http.ResponseWriter, r *http.Request)
func (*Handler) CreateApplicationRestore ¶
func (h *Handler) CreateApplicationRestore(w http.ResponseWriter, r *http.Request)
func (*Handler) CreateGitOps ¶
func (h *Handler) CreateGitOps(w http.ResponseWriter, r *http.Request)
func (*Handler) CreateInstanceBackup ¶
func (h *Handler) CreateInstanceBackup(w http.ResponseWriter, r *http.Request)
func (*Handler) CurrentAppConfig ¶
func (h *Handler) CurrentAppConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteBackup ¶
func (h *Handler) DeleteBackup(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteNode ¶
func (h *Handler) DeleteNode(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteRedact ¶
func (h *Handler) DeleteRedact(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteSupportBundle ¶ added in v1.93.0
func (h *Handler) DeleteSupportBundle(w http.ResponseWriter, r *http.Request)
func (*Handler) DeployAppVersion ¶
func (h *Handler) DeployAppVersion(w http.ResponseWriter, r *http.Request)
func (*Handler) DisableAppGitOps ¶
func (h *Handler) DisableAppGitOps(w http.ResponseWriter, r *http.Request)
func (*Handler) DockerHubSecretUpdated ¶
func (h *Handler) DockerHubSecretUpdated(w http.ResponseWriter, r *http.Request)
func (*Handler) DownloadApp ¶
func (h *Handler) DownloadApp(w http.ResponseWriter, r *http.Request)
NOTE: this uses special kots token authorization
func (*Handler) DownloadAppVersion ¶
func (h *Handler) DownloadAppVersion(w http.ResponseWriter, r *http.Request)
func (*Handler) DownloadFileFromConfig ¶
func (h *Handler) DownloadFileFromConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) DownloadSnapshotLogs ¶
func (h *Handler) DownloadSnapshotLogs(w http.ResponseWriter, r *http.Request)
func (*Handler) DownloadSupportBundle ¶
func (h *Handler) DownloadSupportBundle(w http.ResponseWriter, r *http.Request)
func (*Handler) ExchangePlatformLicense ¶
func (h *Handler) ExchangePlatformLicense(w http.ResponseWriter, r *http.Request)
func (*Handler) GarbageCollectImages ¶
func (h *Handler) GarbageCollectImages(w http.ResponseWriter, r *http.Request)
func (*Handler) GenerateNodeJoinCommandMaster ¶
func (h *Handler) GenerateNodeJoinCommandMaster(w http.ResponseWriter, r *http.Request)
func (*Handler) GenerateNodeJoinCommandPrimary ¶
func (h *Handler) GenerateNodeJoinCommandPrimary(w http.ResponseWriter, r *http.Request)
func (*Handler) GenerateNodeJoinCommandSecondary ¶
func (h *Handler) GenerateNodeJoinCommandSecondary(w http.ResponseWriter, r *http.Request)
func (*Handler) GenerateNodeJoinCommandWorker ¶
func (h *Handler) GenerateNodeJoinCommandWorker(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAdminConsoleUpdateStatus ¶
func (h *Handler) GetAdminConsoleUpdateStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAirgapInstallStatus ¶
func (h *Handler) GetAirgapInstallStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAirgapUploadConfig ¶
func (h *Handler) GetAirgapUploadConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppContents ¶
func (h *Handler) GetAppContents(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppDashboard ¶
func (h *Handler) GetAppDashboard(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppIdentityServiceConfig ¶
func (h *Handler) GetAppIdentityServiceConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppRegistry ¶
func (h *Handler) GetAppRegistry(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppRenderedContents ¶
func (h *Handler) GetAppRenderedContents(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppStatus ¶
func (h *Handler) GetAppStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppValuesFile ¶
func (h *Handler) GetAppValuesFile(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppVersionDownloadStatus ¶
func (h *Handler) GetAppVersionDownloadStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAppVersionHistory ¶
func (h *Handler) GetAppVersionHistory(w http.ResponseWriter, r *http.Request)
func (*Handler) GetApplicationPorts ¶
func (h *Handler) GetApplicationPorts(w http.ResponseWriter, r *http.Request)
NOTE: this uses special kots token authorization
func (*Handler) GetAutomatedInstallStatus ¶
func (h *Handler) GetAutomatedInstallStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAutomaticUpdatesConfig ¶ added in v1.86.1
func (h *Handler) GetAutomaticUpdatesConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) GetDownstreamOutput ¶
func (h *Handler) GetDownstreamOutput(w http.ResponseWriter, r *http.Request)
func (*Handler) GetFileSystemSnapshotProviderInstructions ¶ added in v1.94.0
func (h *Handler) GetFileSystemSnapshotProviderInstructions(w http.ResponseWriter, r *http.Request)
func (*Handler) GetGitOpsRepo ¶
func (h *Handler) GetGitOpsRepo(w http.ResponseWriter, r *http.Request)
func (*Handler) GetGlobalSnapshotSettings ¶
func (h *Handler) GetGlobalSnapshotSettings(w http.ResponseWriter, r *http.Request)
func (*Handler) GetIdentityServiceConfig ¶
func (h *Handler) GetIdentityServiceConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) GetImageRewriteStatus ¶
func (h *Handler) GetImageRewriteStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetInstanceSnapshotConfig ¶
func (h *Handler) GetInstanceSnapshotConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) GetKotsadmRegistry ¶
func (h *Handler) GetKotsadmRegistry(w http.ResponseWriter, r *http.Request)
func (*Handler) GetKurlNodes ¶
func (h *Handler) GetKurlNodes(w http.ResponseWriter, r *http.Request)
func (*Handler) GetLatestDeployableVersion ¶
func (h *Handler) GetLatestDeployableVersion(w http.ResponseWriter, r *http.Request)
func (*Handler) GetLatestPreflightResultsForSequenceZero ¶
func (h *Handler) GetLatestPreflightResultsForSequenceZero(w http.ResponseWriter, r *http.Request)
func (*Handler) GetLicense ¶
func (h *Handler) GetLicense(w http.ResponseWriter, r *http.Request)
func (*Handler) GetLoginInfo ¶
func (h *Handler) GetLoginInfo(w http.ResponseWriter, r *http.Request)
func (*Handler) GetOnlineInstallStatus ¶
func (h *Handler) GetOnlineInstallStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetPendingApp ¶
func (h *Handler) GetPendingApp(w http.ResponseWriter, r *http.Request)
func (*Handler) GetPlatformLicenseCompatibility ¶
func (h *Handler) GetPlatformLicenseCompatibility(w http.ResponseWriter, r *http.Request)
GetPlatformLicenseCompatibility route is UNAUTHENTICATED Authentication must be added here which will break backwards compatibility. This route exists for backwards compatibility with platform License API and should be called by the application only.
func (*Handler) GetPodDetailsFromSupportBundle ¶
func (h *Handler) GetPodDetailsFromSupportBundle(w http.ResponseWriter, r *http.Request)
func (*Handler) GetPreflightCommand ¶
func (h *Handler) GetPreflightCommand(w http.ResponseWriter, r *http.Request)
func (*Handler) GetPreflightResult ¶
func (h *Handler) GetPreflightResult(w http.ResponseWriter, r *http.Request)
func (*Handler) GetRedactMetadataAndYaml ¶
func (h *Handler) GetRedactMetadataAndYaml(w http.ResponseWriter, r *http.Request)
func (*Handler) GetRestoreAppsStatus ¶
func (h *Handler) GetRestoreAppsStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetRestoreDetails ¶
func (h *Handler) GetRestoreDetails(w http.ResponseWriter, r *http.Request)
func (*Handler) GetRestoreStatus ¶
func (h *Handler) GetRestoreStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetSnapshotConfig ¶
func (h *Handler) GetSnapshotConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) GetSupportBundle ¶
func (h *Handler) GetSupportBundle(w http.ResponseWriter, r *http.Request)
func (*Handler) GetSupportBundleCommand ¶
func (h *Handler) GetSupportBundleCommand(w http.ResponseWriter, r *http.Request)
func (*Handler) GetSupportBundleFiles ¶
func (h *Handler) GetSupportBundleFiles(w http.ResponseWriter, r *http.Request)
func (*Handler) GetSupportBundleRedactions ¶
func (h *Handler) GetSupportBundleRedactions(w http.ResponseWriter, r *http.Request)
func (*Handler) GetUpdateDownloadStatus ¶
func (h *Handler) GetUpdateDownloadStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) GetVeleroStatus ¶
func (h *Handler) GetVeleroStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) Healthz ¶
func (h *Handler) Healthz(w http.ResponseWriter, r *http.Request)
Healthz route is UNAUTHENTICATED
func (*Handler) IgnorePreflightRBACErrors ¶
func (h *Handler) IgnorePreflightRBACErrors(w http.ResponseWriter, r *http.Request)
func (*Handler) InitGitOpsConnection ¶
func (h *Handler) InitGitOpsConnection(w http.ResponseWriter, r *http.Request)
func (*Handler) IsHelmManaged ¶
func (h *Handler) IsHelmManaged(w http.ResponseWriter, r *http.Request)
IsHelmManaged - report whether or not kots is running in helm managed mode
func (*Handler) ListBackups ¶
func (h *Handler) ListBackups(w http.ResponseWriter, r *http.Request)
func (*Handler) ListInstanceBackups ¶
func (h *Handler) ListInstanceBackups(w http.ResponseWriter, r *http.Request)
func (*Handler) ListRedactors ¶
func (h *Handler) ListRedactors(w http.ResponseWriter, r *http.Request)
func (*Handler) ListSupportBundles ¶
func (h *Handler) ListSupportBundles(w http.ResponseWriter, r *http.Request)
func (*Handler) LiveAppConfig ¶
func (h *Handler) LiveAppConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) OIDCLoginCallback ¶
func (h *Handler) OIDCLoginCallback(w http.ResponseWriter, r *http.Request)
func (*Handler) PostPreflightStatus ¶
func (h *Handler) PostPreflightStatus(w http.ResponseWriter, r *http.Request)
PostPreflightStatus route is UNAUTHENTICATED This request comes from the `kubectl preflight` command.
func (*Handler) PreflightsReports ¶
func (h *Handler) PreflightsReports(w http.ResponseWriter, r *http.Request)
func (*Handler) RedeployAppVersion ¶
func (h *Handler) RedeployAppVersion(w http.ResponseWriter, r *http.Request)
func (*Handler) ResetAirgapInstallStatus ¶
func (h *Handler) ResetAirgapInstallStatus(w http.ResponseWriter, r *http.Request)
func (*Handler) ResetGitOps ¶
func (h *Handler) ResetGitOps(w http.ResponseWriter, r *http.Request)
func (*Handler) RestoreApps ¶
func (h *Handler) RestoreApps(w http.ResponseWriter, r *http.Request)
func (*Handler) ResumeInstallOnline ¶
func (h *Handler) ResumeInstallOnline(w http.ResponseWriter, r *http.Request)
func (*Handler) SaveInstanceSnapshotConfig ¶
func (h *Handler) SaveInstanceSnapshotConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) SaveSnapshotConfig ¶
func (h *Handler) SaveSnapshotConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) SetAppConfigValues ¶
func (h *Handler) SetAppConfigValues(w http.ResponseWriter, r *http.Request)
func (*Handler) SetAutomaticUpdatesConfig ¶ added in v1.86.1
func (h *Handler) SetAutomaticUpdatesConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) SetPrometheusAddress ¶
func (h *Handler) SetPrometheusAddress(w http.ResponseWriter, r *http.Request)
func (*Handler) SetRedactEnabled ¶
func (h *Handler) SetRedactEnabled(w http.ResponseWriter, r *http.Request)
func (*Handler) SetRedactMetadataAndYaml ¶
func (h *Handler) SetRedactMetadataAndYaml(w http.ResponseWriter, r *http.Request)
func (*Handler) SetSupportBundleRedactions ¶
func (h *Handler) SetSupportBundleRedactions(w http.ResponseWriter, r *http.Request)
SetSupportBundleRedactions route is UNAUTHENTICATED This request comes from the `kubectl support-bundle` command.
func (*Handler) ShareSupportBundle ¶
func (h *Handler) ShareSupportBundle(w http.ResponseWriter, r *http.Request)
func (*Handler) StartPreflightChecks ¶
func (h *Handler) StartPreflightChecks(w http.ResponseWriter, r *http.Request)
func (*Handler) SyncLicense ¶
func (h *Handler) SyncLicense(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateAdminConsole ¶
func (h *Handler) UpdateAdminConsole(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateAppConfig ¶
func (h *Handler) UpdateAppConfig(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateAppFromAirgap ¶
func (h *Handler) UpdateAppFromAirgap(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateAppGitOps ¶
func (h *Handler) UpdateAppGitOps(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateAppRegistry ¶
func (h *Handler) UpdateAppRegistry(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateGlobalSnapshotSettings ¶
func (h *Handler) UpdateGlobalSnapshotSettings(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateRedact ¶
func (h *Handler) UpdateRedact(w http.ResponseWriter, r *http.Request)
func (*Handler) UploadAirgapBundleChunk ¶
func (h *Handler) UploadAirgapBundleChunk(w http.ResponseWriter, r *http.Request)
func (*Handler) UploadExistingApp ¶
func (h *Handler) UploadExistingApp(w http.ResponseWriter, r *http.Request)
UploadExistingApp can be used to upload a multipart form file to the existing app This is used in the KOTS CLI when calling kots upload ... NOTE: this uses special kots token authorization
func (*Handler) UploadInitialAirgapApp ¶
func (h *Handler) UploadInitialAirgapApp(w http.ResponseWriter, r *http.Request)
func (*Handler) UploadInitialBranding ¶ added in v1.86.2
func (h *Handler) UploadInitialBranding(w http.ResponseWriter, r *http.Request)
func (*Handler) UploadNewLicense ¶
func (h *Handler) UploadNewLicense(w http.ResponseWriter, r *http.Request)
func (*Handler) UploadSupportBundle ¶
func (h *Handler) UploadSupportBundle(w http.ResponseWriter, r *http.Request)
UploadSupportBundle route is UNAUTHENTICATED This request comes from the `kubectl support-bundle` command.
func (*Handler) ValidateAppRegistry ¶
func (h *Handler) ValidateAppRegistry(w http.ResponseWriter, r *http.Request)
type HealthzResponse ¶
type HealthzResponse struct { Version string `json:"version"` GitSHA string `json:"gitSha"` Status StatusResponse `json:"status"` }
type IDPConfig ¶
type IDPConfig struct { OIDCConfig *OIDCConfig `json:"oidcConfig"` GEOAxISConfig *OIDCConfig `json:"geoAxisConfig"` }
type InstanceSnapshotConfig ¶
type InstanceSnapshotConfig struct { AutoEnabled bool `json:"autoEnabled"` AutoSchedule *snapshottypes.SnapshotSchedule `json:"autoSchedule"` TTl *snapshottypes.SnapshotTTL `json:"ttl"` }
type IsHelmManagedResponse ¶
type IsHelmManagedResponse struct { Success bool `json:"success"` IsHelmManaged bool `json:"isHelmManaged"` }
IsHelmManagedResponse - response body for the is helm managed endpoint
type KOTSHandler ¶
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) DeleteSupportBundle(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) GetFileSystemSnapshotProviderInstructions(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) }
type LicenseResponse ¶
type LicenseResponse struct { ID string `json:"id"` Assignee string `json:"assignee"` ExpiresAt time.Time `json:"expiresAt"` ChannelName string `json:"channelName"` LicenseSequence int64 `json:"licenseSequence"` LicenseType string `json:"licenseType"` Entitlements []EntitlementResponse `json:"entitlements"` IsAirgapSupported bool `json:"isAirgapSupported"` IsGitOpsSupported bool `json:"isGitOpsSupported"` IsIdentityServiceSupported bool `json:"isIdentityServiceSupported"` IsGeoaxisSupported bool `json:"isGeoaxisSupported"` IsSemverRequired bool `json:"isSemverRequired"` IsSnapshotSupported bool `json:"isSnapshotSupported"` LastSyncedAt string `json:"lastSyncedAt"` IsSupportBundleUploadSupported bool `json:"isSupportBundleUploadSupported"` }
type ListBackupsResponse ¶
type ListBackupsResponse struct { Error string `json:"error,omitempty"` Backups []*snapshottypes.Backup `json:"backups"` }
type ListInstanceBackupsResponse ¶
type ListInstanceBackupsResponse struct { Error string `json:"error,omitempty"` Backups []*snapshottypes.Backup `json:"backups"` }
type ListRedactorsResponse ¶
type ListRedactorsResponse struct { Redactors []redacttypes.RedactorList `json:"redactors"` Success bool `json:"success"` Error string `json:"error,omitempty"` }
type ListSupportBundlesResponse ¶
type ListSupportBundlesResponse struct {
SupportBundles []ResponseSupportBundle `json:"supportBundles"`
}
type LiveAppConfigRequest ¶
type LiveAppConfigRequest struct { Sequence int64 `json:"sequence"` ConfigGroups []kotsv1beta1.ConfigGroup `json:"configGroups"` }
type LiveAppConfigResponse ¶
type LiveAppConfigResponse struct { Success bool `json:"success"` Error string `json:"error,omitempty"` ConfigGroups []kotsv1beta1.ConfigGroup `json:"configGroups"` }
type LoginMethod ¶
type LoginMethod string
const ( PasswordAuth LoginMethod = "shared-password" IdentityService LoginMethod = "identity-service" SessionTimeout = time.Hour * 12 )
type LoginRequest ¶
type LoginRequest struct {
Password string `json:"password"`
}
type LoginResponse ¶
type MetadataResponse ¶
type MetadataResponse struct { IconURI string `json:"iconUri"` Branding MetadataResponseBranding `json:"branding"` Name string `json:"name"` Namespace string `json:"namespace"` UpstreamURI string `json:"upstreamUri"` // ConsoleFeatureFlags optional flags from application.yaml used to enable ui features ConsoleFeatureFlags []string `json:"consoleFeatureFlags"` AdminConsoleMetadata AdminConsoleMetadata `json:"adminConsoleMetadata"` }
MetadataResponse non sensitive information to be used by ui pre-login
type MetadataResponseBranding ¶ added in v1.84.0
type OIDCClaimMapping ¶
type OIDCConfig ¶
type OIDCConfig struct { ConnectorID string `json:"connectorId"` ConnectorName string `json:"connectorName"` Issuer string `json:"issuer"` ClientID string `json:"clientId"` ClientSecret string `json:"clientSecret"` GetUserInfo *bool `json:"getUserInfo,omitempty"` UserNameKey string `json:"userNameKey,omitempty"` UserIDKey string `json:"userIDKey,omitempty"` PromptType string `json:"promptType,omitempty"` InsecureSkipEmailVerified *bool `json:"insecureSkipEmailVerified,omitempty"` InsecureEnableGroups *bool `json:"insecureEnableGroups,omitempty"` Scopes []string `json:"scopes,omitempty"` ClaimMapping OIDCClaimMapping `json:"claimMapping,omitempty"` }
type OIDCLoginResponse ¶
type PasswordChangeRequest ¶
type PasswordChangeRequest struct { CurrentPassword string `json:"current_password"` NewPassword string `json:"new_password"` }
PasswordChangeRequest - request body for the password change endpoint
type PasswordChangeResponse ¶
type PasswordChangeResponse struct {
Success bool `json:"success"`
}
PasswordChangeResponse - response body for the password change endpoint
type PingResponse ¶
type PodContainer ¶
type PostRedactorEnabledMetadata ¶
type PostRedactorEnabledMetadata struct {
Enabled bool `json:"enabled"`
}
type PostRedactorMetadata ¶
type PutSupportBundleRedactions ¶
type PutSupportBundleRedactions struct {
Redactions redact2.RedactionList `json:"redactions"`
}
type RemoveAppRequest ¶
type RemoveAppRequest struct {
Force bool `json:"force"`
}
type RemoveAppResponse ¶
type RemoveAppResponse struct {
Error string `json:"error,omitempty"`
}
type ResponseSupportBundle ¶
type ResponseSupportBundle struct { ID string `json:"id"` Slug string `json:"slug"` AppID string `json:"appId"` Name string `json:"name"` Size float64 `json:"size"` Status string `json:"status"` CreatedAt time.Time `json:"createdAt"` UploadedAt *time.Time `json:"uploadedAt"` IsArchived bool `json:"isArchived"` Analysis *types.SupportBundleAnalysis `json:"analysis"` }
type RestoreAppsRequest ¶
type RestoreAppsResponse ¶
type ResumeInstallOnlineRequest ¶
type ResumeInstallOnlineRequest struct {
Slug string `json:"slug"`
}
type SPAHandler ¶
type SPAHandler struct { }
SPAHandler implements the http.Handler interface, so we can use it to respond to HTTP requests. The path to the static directory and path to the index file within that static directory are used to serve the SPA in the given static directory.
func (SPAHandler) ServeHTTP ¶
func (h SPAHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP inspects the URL path to locate a file within the static dir on the SPA handler. If a file is found, it will be served. If not, the file located at the index path on the SPA handler will be served. This is suitable behavior for serving an SPA (single page application).
type SetAutomaticUpdatesConfigRequest ¶ added in v1.86.1
type SetAutomaticUpdatesConfigRequest struct { UpdateCheckerSpec string `json:"updateCheckerSpec"` AutoDeploy apptypes.AutoDeploy `json:"autoDeploy"` }
type SetAutomaticUpdatesConfigResponse ¶ added in v1.86.1
type SetAutomaticUpdatesConfigResponse struct {
Error string `json:"error"`
}
type SetPrometheusAddressRequest ¶
type SetPrometheusAddressRequest struct {
Value string `json:"value"`
}
type SnapshotConfig ¶
type SnapshotConfig struct { AutoEnabled bool `json:"autoEnabled"` AutoSchedule *snapshottypes.SnapshotSchedule `json:"autoSchedule"` TTl *snapshottypes.SnapshotTTL `json:"ttl"` }
type StatusNotFoundHandler ¶
type StatusNotFoundHandler struct { }
func (StatusNotFoundHandler) ServeHTTP ¶
func (h StatusNotFoundHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type StatusResponse ¶
type StatusResponse struct { Database DatabaseResponse `json:"database"` Storage StorageResponse `json:"storage"` }
type StorageResponse ¶
type StorageResponse struct {
Available bool `json:"available"`
}
type SyncLicenseRequest ¶
type SyncLicenseRequest struct {
LicenseData string `json:"licenseData"`
}
type SyncLicenseResponse ¶
type SyncLicenseResponse struct { Success bool `json:"success"` Error string `json:"error,omitempty"` Synced bool `json:"synced"` License LicenseResponse `json:"license"` }
type UpdateAppConfigRequest ¶
type UpdateAppConfigRequest struct { Sequence int64 `json:"sequence"` CreateNewVersion bool `json:"createNewVersion"` ConfigGroups []kotsv1beta1.ConfigGroup `json:"configGroups"` }
type UpdateAppConfigResponse ¶
type UpdateAppFromAirgapRequest ¶
type UpdateAppFromAirgapRequest struct {
AppID string `json:"appId"`
}
type UpdateAppFromAirgapResponse ¶
type UpdateAppFromAirgapResponse struct { }
type UpdateAppGitOpsInput ¶
type UpdateAppGitOpsRequest ¶
type UpdateAppGitOpsRequest struct {
GitOpsInput UpdateAppGitOpsInput `json:"gitOpsInput"`
}
type UpdateGlobalSnapshotSettingsRequest ¶
type UpdateGlobalSnapshotSettingsRequest struct { Provider string `json:"provider"` Bucket string `json:"bucket"` Path string `json:"path"` AWS *kotssnapshottypes.StoreAWS `json:"aws"` Google *kotssnapshottypes.StoreGoogle `json:"gcp"` Azure *kotssnapshottypes.StoreAzure `json:"azure"` Other *kotssnapshottypes.StoreOther `json:"other"` Internal bool `json:"internal"` FileSystem *FileSystemOptions `json:"fileSystem"` CACertData []byte `json:"caCertData"` }
type UpdateRedactRequest ¶
type UpdateRedactResponse ¶
type UploadLicenseRequest ¶
type UploadLicenseRequest struct {
LicenseData string `json:"licenseData"`
}
type UploadLicenseResponse ¶
type UploadLicenseResponse struct { Success bool `json:"success"` Error string `json:"error,omitempty"` DeleteAppCommand string `json:"deleteAppCommand,omitempty"` HasPreflight bool `json:"hasPreflight"` Slug string `json:"slug"` IsAirgap bool `json:"isAirgap"` NeedsRegistry bool `json:"needsRegistry"` IsConfigurable bool `json:"isConfigurable"` }
type UploadResponse ¶
type UploadResponse struct { types.ErrorResponse Slug *string `json:"slug,omitempty"` }
type VeleroRBACResponse ¶
type VeleroStatus ¶
type VeleroStatus struct {
IsVeleroInstalled bool `json:"isVeleroInstalled"`
}
Source Files ¶
- airgap.go
- app.go
- backup.go
- branding.go
- config.go
- contents.go
- cors.go
- dashboard.go
- deploy.go
- download.go
- downstream.go
- garbage_collect_images.go
- gitops.go
- handlers.go
- healthz.go
- helm.go
- identity.go
- image_rewrite_status.go
- interface.go
- kurl_delete_node.go
- kurl_drain_node.go
- kurl_get.go
- kurl_node_join_command.go
- license.go
- login.go
- logout.go
- metadata.go
- middleware.go
- node_proxy.go
- not_implemented.go
- password_change.go
- ping.go
- platform_license.go
- ports.go
- preflight.go
- prometheus.go
- redact.go
- redeploy.go
- registry.go
- rendered_contents.go
- restore.go
- root.go
- session.go
- snapshot_logs.go
- snapshots.go
- spa.go
- static.go
- status.go
- troubleshoot.go
- update.go
- update_checker_spec.go
- upload.go