Documentation ¶
Index ¶
- Constants
- func CORS(w http.ResponseWriter, r *http.Request)
- func CorsMiddleware(next http.Handler) http.Handler
- func JSON(w http.ResponseWriter, code int, payload interface{})
- 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 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 AirgapBundleExistsResponse
- type AirgapBundleProgressResponse
- type AppRestoreStatus
- type AppUpdateCheckRequest
- type AppUpdateCheckResponse
- type ConfigureFileSystemSnapshotProviderRequest
- type ConfigureFileSystemSnapshotProviderResponse
- 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 DexConnectorInfo
- type DownstreamLogs
- type EntitlementResponse
- type ErrorResponse
- type ExchangePlatformLicenseRequest
- type ExchangePlatformLicenseResponse
- type FileSystemOptions
- type GenerateNodeJoinCommandResponse
- type GetAirgapUploadConfigResponse
- type GetAppContentsResponse
- type GetAppDashboardResponse
- type GetAppRegistryResponse
- type GetAppRenderedContentsErrorResponse
- type GetAppRenderedContentsResponse
- type GetAppVersionsResponse
- type GetApplicationPortsResponse
- type GetBackupResponse
- type GetDownstreamOutputResponse
- type GetIdentityServiceConfigResponse
- type GetImageRewriteStatusResponse
- type GetKotsadmRegistryResponse
- type GetLicenseResponse
- type GetLoginInfoResponse
- type GetOnlineInstallStatusErrorResponse
- 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) CancelRestore(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CheckAirgapBundleChunk(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) ConfigureFileSystemSnapshotProvider(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) DeployAppVersion(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DisableAppGitOps(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DownloadApp(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) 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) 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) GetAppVersionHistory(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetApplicationPorts(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) 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) 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) 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) 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) Metadata(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) SetAppStatus(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) StartPreflightChecks(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SyncLicense(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) UpdateCheckerSpec(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateDeployResult(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) UpdateUndeployResult(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) 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 KOTSHandler
- type ListBackupsResponse
- type ListInstanceBackupsResponse
- type ListRedactorsResponse
- type ListSupportBundlesResponse
- type LiveAppConfigRequest
- type LiveAppConfigResponse
- type LoginMethod
- type LoginRequest
- type LoginResponse
- type MetadataResponse
- type OIDCClaimMapping
- type OIDCConfig
- type OIDCLoginResponse
- type PingResponse
- 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 SetPrometheusAddressRequest
- type SnapshotConfig
- type StatusNotFoundHandler
- type StatusResponse
- type StorageResponse
- type SyncLicenseRequest
- type SyncLicenseResponse
- type UpdateAppConfigRequest
- type UpdateAppConfigResponse
- type UpdateAppFromAirgapRequest
- type UpdateAppFromAirgapResponse
- type UpdateAppGitOpsInput
- type UpdateAppGitOpsRequest
- type UpdateAppRegistryRequest
- type UpdateAppRegistryResponse
- type UpdateCheckerSpecRequest
- type UpdateCheckerSpecResponse
- type UpdateDeployResultRequest
- type UpdateGlobalSnapshotSettingsRequest
- type UpdateRedactRequest
- type UpdateRedactResponse
- type UpdateUndeployResultRequest
- type UploadExistingAppRequest
- type UploadLicenseRequest
- type UploadLicenseResponse
- type UploadResponse
- type ValidateAppRegistryRequest
- type ValidateAppRegistryResponse
- type VeleroRBACResponse
- type VeleroStatus
Constants ¶
const (
DefaultAPIEndpoint = "https://replicated.app"
)
const (
RedactionMask = "--- REDACTED ---"
)
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
func JSON(w http.ResponseWriter, code int, payload interface{})
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 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 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 ConfigureFileSystemSnapshotProviderRequest ¶
type ConfigureFileSystemSnapshotProviderRequest struct {
FileSystemOptions FileSystemOptions `json:"fileSystemOptions"`
}
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"` ConfigGroups []kotsv1beta1.ConfigGroup `json:"configGroups"` }
type DatabaseResponse ¶
type DatabaseResponse struct {
Connected bool `json:"connected"`
}
type DeleteBackupResponse ¶
type DeployAppVersionRequest ¶
type DexConnectorInfo ¶
type DownstreamLogs ¶
type EntitlementResponse ¶
type ErrorResponse ¶
type ErrorResponse struct { Error string `json:"error"` Success bool `json:"success"` // NOTE: the frontend relies on this for some routes Err error `json:"-"` }
func NewErrorResponse ¶
func NewErrorResponse(err error) ErrorResponse
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 GetAirgapUploadConfigResponse ¶
type GetAirgapUploadConfigResponse struct {
SimultaneousUploads int `json:"simultaneousUploads"`
}
type GetAppContentsResponse ¶
type GetAppDashboardResponse ¶
type GetAppDashboardResponse struct { AppStatus *appstatustypes.AppStatus `json:"appStatus"` Metrics []version.MetricChart `json:"metrics"` PrometheusAddress string `json:"prometheusAddress"` }
type GetAppRegistryResponse ¶
type GetAppRenderedContentsErrorResponse ¶
type GetAppRenderedContentsErrorResponse struct {
Error string `json:"error"`
}
type GetAppVersionsResponse ¶ added in v1.31.0
type GetAppVersionsResponse struct {
VersionHistory []downstreamtypes.DownstreamVersion `json:"versionHistory"`
}
type GetApplicationPortsResponse ¶
type GetApplicationPortsResponse struct {
Ports []versiontypes.ForwardedPort `json:"ports"`
}
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 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 GetLicenseResponse ¶
type GetLicenseResponse 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"` IsSnapshotSupported bool `json:"isSnapshotSupported"` }
type GetLoginInfoResponse ¶
type GetLoginInfoResponse struct { Method LoginMethod `json:"method"` Error string `json:"error,omitempty"` }
type GetOnlineInstallStatusErrorResponse ¶
type GetOnlineInstallStatusErrorResponse struct {
Error string `json:"error"`
}
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"` IsArchived bool `json:"isArchived"` Analysis *types.SupportBundleAnalysis `json:"analysis"` }
type GlobalSnapshotSettingsResponse ¶
type GlobalSnapshotSettingsResponse struct { VeleroVersion string `json:"veleroVersion"` VeleroPlugins []string `json:"veleroPlugins"` VeleroNamespace string `json:"veleroNamespace"` IsVeleroRunning bool `json:"isVeleroRunning"` ResticVersion string `json:"resticVersion"` IsResticRunning bool `json:"isResticRunning"` 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) CancelRestore ¶
func (h *Handler) CancelRestore(w http.ResponseWriter, r *http.Request)
func (*Handler) CheckAirgapBundleChunk ¶
func (h *Handler) CheckAirgapBundleChunk(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) ConfigureFileSystemSnapshotProvider ¶
func (h *Handler) ConfigureFileSystemSnapshotProvider(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) 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) DownloadApp ¶
func (h *Handler) DownloadApp(w http.ResponseWriter, r *http.Request)
NOTE: this uses special kots token authorization
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) 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) 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) 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) GetDownstreamOutput ¶
func (h *Handler) GetDownstreamOutput(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) 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) 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) 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) Metadata ¶ added in v1.31.0
func (h *Handler) Metadata(w http.ResponseWriter, r *http.Request)
Metadata route is UNAUTHENTICATED It is needed for branding/some cluster flags before user is logged in.
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) SetAppStatus ¶ added in v1.31.0
func (h *Handler) SetAppStatus(w http.ResponseWriter, r *http.Request)
NOTE: this uses special cluster authorization
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) 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) 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) UpdateCheckerSpec ¶ added in v1.31.0
func (h *Handler) UpdateCheckerSpec(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateDeployResult ¶ added in v1.31.0
func (h *Handler) UpdateDeployResult(w http.ResponseWriter, r *http.Request)
NOTE: this uses special cluster authorization
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) UpdateUndeployResult ¶ added in v1.31.0
func (h *Handler) UpdateUndeployResult(w http.ResponseWriter, r *http.Request)
NOTE: this uses special cluster authorization
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) 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 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) // 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) // 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) 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) 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) UpdateAppRegistry(w http.ResponseWriter, r *http.Request) GetAppRegistry(w http.ResponseWriter, r *http.Request) ValidateAppRegistry(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) SyncLicense(w http.ResponseWriter, r *http.Request) GetLicense(w http.ResponseWriter, r *http.Request) AppUpdateCheck(w http.ResponseWriter, r *http.Request) UpdateCheckerSpec(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) }
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" )
type LoginRequest ¶
type LoginRequest struct {
Password string `json:"password"`
}
type LoginResponse ¶
type MetadataResponse ¶
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"` HostedDomains []string `json:"hostedDomains,omitempty"` ClaimMapping OIDCClaimMapping `json:"claimMapping,omitempty"` }
type OIDCLoginResponse ¶
type PingResponse ¶
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 ¶
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 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 { 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"` IsSnapshotSupported bool `json:"isSnapshotSupported"` }
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 UpdateCheckerSpecRequest ¶ added in v1.31.0
type UpdateCheckerSpecRequest struct {
UpdateCheckerSpec string `json:"updateCheckerSpec"`
}
type UpdateCheckerSpecResponse ¶ added in v1.31.0
type UpdateCheckerSpecResponse struct {
Error string `json:"error"`
}
type UpdateDeployResultRequest ¶ added in v1.31.0
type UpdateDeployResultRequest struct { AppID string `json:"appId"` IsError bool `json:"isError"` DryrunStdout string `json:"dryrunStdout"` DryrunStderr string `json:"dryrunStderr"` ApplyStdout string `json:"applyStdout"` ApplyStderr string `json:"applyStderr"` RenderError string `json:"renderError"` }
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"` }
type UpdateRedactRequest ¶
type UpdateRedactResponse ¶
type UpdateUndeployResultRequest ¶ added in v1.31.0
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 {
Slug string `json:"slug"`
}
type VeleroRBACResponse ¶
type VeleroStatus ¶
type VeleroStatus struct {
IsVeleroInstalled bool `json:"isVeleroInstalled"`
}
Source Files ¶
- airgap.go
- app.go
- appstatus.go
- backup.go
- config.go
- contents.go
- cors.go
- dashboard.go
- deploy.go
- download.go
- downstream.go
- errors.go
- gitops.go
- handlers.go
- healthz.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
- 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