handlers

package
v1.108.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 127 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedactionMask = "--- REDACTED ---"
)

Variables

This section is empty.

Functions

func CORS

func CORS(w http.ResponseWriter, r *http.Request)

func CorsMiddleware

func CorsMiddleware(next http.Handler) http.Handler

func DebugLoggingMiddleware

func DebugLoggingMiddleware(next http.Handler) http.Handler

func GetMetaDataConfig

func GetMetaDataConfig() (*v1.ConfigMap, types.Metadata, error)

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 LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

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 RegisterTokenAuthRoutes(handler *Handler, debugRouter *mux.Router, loggingRouter *mux.Router)

func RegisterUnauthenticatedRoutes

func RegisterUnauthenticatedRoutes(handler *Handler, kotsStore store.Store, debugRouter *mux.Router, loggingRouter *mux.Router)

func RequireValidSessionMiddleware

func RequireValidSessionMiddleware(kotsStore store.Store) mux.MiddlewareFunc

func RequireValidSessionQuietMiddleware

func RequireValidSessionQuietMiddleware(kotsStore store.Store) mux.MiddlewareFunc

func Root

func Root(w http.ResponseWriter, r *http.Request)

func StreamJSON

func StreamJSON(c *websocket.Conn, payload interface{})

func YAML

func YAML(w http.ResponseWriter, code int, payload interface{})

Types

type AdminConsoleMetadata

type AdminConsoleMetadata struct {
	IsAirgap          bool `json:"isAirgap"`
	IsKurl            bool `json:"isKurl"`
	IsEmbeddedCluster bool `json:"isEmbeddedCluster"`
}

type AdminConsoleUpgradeError

type AdminConsoleUpgradeError struct {
	IsCritical bool
	Message    string
}

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 AppUpdateRelease struct {
	Sequence int64  `json:"sequence"`
	Version  string `json:"version"`
}

type CanInstallAppVersionRequest

type CanInstallAppVersionRequest struct {
	AppSpec    string `json:"appSpec"`
	AirgapSpec string `json:"airgapSpec"`
	IsInstall  bool   `json:"isInstall"`
}

type CanInstallAppVersionResponse

type CanInstallAppVersionResponse struct {
	CanInstall bool   `json:"canInstall"`
	Error      string `json:"error,omitempty"`
}

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 CollectSupportBundlesResponse

type CollectSupportBundlesResponse struct {
	ID    string `json:"id"`
	Slug  string `json:"slug"`
	AppID string `json:"appId"`
}

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 ConfirmEmbeddedClusterManagementResponse added in v1.107.6

type ConfirmEmbeddedClusterManagementResponse struct {
	VersionStatus string `json:"versionStatus"`
}

type CreateAppFromAirgapRequest

type CreateAppFromAirgapRequest struct {
	RegistryHost string `json:"registryHost"`
	Namespace    string `json:"namespace"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	IsReadOnly   bool   `json:"isReadOnly"`
}

type CreateAppFromAirgapResponse

type CreateAppFromAirgapResponse struct {
}

type CreateApplicationBackupRequest

type CreateApplicationBackupRequest struct {
}

type CreateApplicationBackupResponse

type CreateApplicationBackupResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type CreateApplicationRestoreResponse

type CreateApplicationRestoreResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type CreateGitOpsInput

type CreateGitOpsInput struct {
	Provider string `json:"provider"`
	URI      string `json:"uri"`
	Hostname string `json:"hostname"`
	HTTPPort string `json:"httpPort"`
	SSHPort  string `json:"sshPort"`
}

type CreateGitOpsRequest

type CreateGitOpsRequest struct {
	GitOpsInput CreateGitOpsInput `json:"gitOpsInput"`
}

type CreateInstanceBackupRequest

type CreateInstanceBackupRequest struct {
}

type CreateInstanceBackupResponse

type CreateInstanceBackupResponse struct {
	Success    bool   `json:"success"`
	BackupName string `json:"backupName,omitempty"`
	Error      string `json:"error,omitempty"`
}

type CurrentAppConfigResponse

type CurrentAppConfigResponse struct {
	Success           bool                                     `json:"success"`
	Error             string                                   `json:"error,omitempty"`
	DownstreamVersion *downstreamtypes.DownstreamVersion       `json:"downstreamVersion"`
	ConfigGroups      []kotsv1beta1.ConfigGroup                `json:"configGroups"`
	ValidationErrors  []configtypes.ConfigGroupValidationError `json:"validationErrors,omitempty"`
}

type CustomAppMetricsData added in v1.103.2

type CustomAppMetricsData map[string]interface{}

type DatabaseResponse

type DatabaseResponse struct {
	Connected bool `json:"connected"`
}

type DeleteBackupResponse

type DeleteBackupResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type DeployAppVersionRequest

type DeployAppVersionRequest struct {
	IsSkipPreflights             bool `json:"isSkipPreflights"`
	ContinueWithFailedPreflights bool `json:"continueWithFailedPreflights"`
	IsCLI                        bool `json:"isCli"`
}

type DeployAppVersionResponse

type DeployAppVersionResponse struct {
	Success bool   `json:"success"`
	Status  string `json:"status"`
	Error   string `json:"error,omitempty"`
}

type DexConnectorInfo

type DexConnectorInfo struct {
	Type   string
	ID     string
	Name   string
	Config []byte
}

type DockerHubSecretUpdatedResponse

type DockerHubSecretUpdatedResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type DownloadAppVersionResponse

type DownloadAppVersionResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type DownloadFileFromConfigResponse

type DownloadFileFromConfigResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

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 EntitlementResponse struct {
	Title     string      `json:"title"`
	Value     interface{} `json:"value"`
	Label     string      `json:"label"`
	ValueType string      `json:"valueType"`
}

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 GenerateEmbeddedClusterNodeJoinCommandRequest added in v1.103.3

type GenerateEmbeddedClusterNodeJoinCommandRequest struct {
	Roles []string `json:"roles"`
}

type GenerateEmbeddedClusterNodeJoinCommandResponse added in v1.103.3

type GenerateEmbeddedClusterNodeJoinCommandResponse struct {
	Command []string `json:"command"`
}

type GenerateKurlNodeJoinCommandResponse added in v1.103.2

type GenerateKurlNodeJoinCommandResponse struct {
	Command []string `json:"command"`
	Expiry  string   `json:"expiry"`
}

type GetAdminConsoleUpdateStatusResponse

type GetAdminConsoleUpdateStatusResponse struct {
	Success bool   `json:"success"`
	Status  string `json:"status"`
	Message string `json:"message"`
	Error   string `json:"error"`
}

type GetAirgapUploadConfigResponse

type GetAirgapUploadConfigResponse struct {
	SimultaneousUploads int `json:"simultaneousUploads"`
}

type GetAppContentsResponse

type GetAppContentsResponse struct {
	Files map[string][]byte `json:"files"`
}

type GetAppDashboardResponse

type GetAppDashboardResponse struct {
	AppStatus            *appstatetypes.AppStatus `json:"appStatus"`
	Metrics              []version.MetricChart    `json:"metrics"`
	PrometheusAddress    string                   `json:"prometheusAddress"`
	EmbeddedClusterState string                   `json:"embeddedClusterState"`
}

type GetAppRegistryResponse

type GetAppRegistryResponse struct {
	Success    bool   `json:"success"`
	Error      string `json:"error,omitempty"`
	Hostname   string `json:"hostname"`
	Namespace  string `json:"namespace"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	IsReadOnly bool   `json:"isReadOnly"`
}

type GetAppRenderedContentsErrorResponse

type GetAppRenderedContentsErrorResponse struct {
	Error string `json:"error"`
}

type GetAppRenderedContentsResponse

type GetAppRenderedContentsResponse struct {
	Files map[string]string `json:"files"`
}

type GetAppVersionDownloadStatusResponse

type GetAppVersionDownloadStatusResponse struct {
	CurrentMessage string `json:"currentMessage"`
	Status         string `json:"status"`
	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 GetEmbeddedClusterNodeJoinCommandResponse added in v1.103.3

type GetEmbeddedClusterNodeJoinCommandResponse struct {
	ClusterID                 string `json:"clusterID"`
	K0sJoinCommand            string `json:"k0sJoinCommand"`
	K0sToken                  string `json:"k0sToken"`
	K0sUnsupportedOverrides   string `json:"k0sUnsupportedOverrides"`
	EndUserK0sConfigOverrides string `json:"endUserK0sConfigOverrides"`
	MetricsBaseURL            string `json:"metricsBaseURL"`
	EmbeddedClusterVersion    string `json:"embeddedClusterVersion"`
	AirgapRegistryAddress     string `json:"airgapRegistryAddress"`
	IsAirgap                  bool   `json:"isAirgap"`
}

type GetEmbeddedClusterRolesResponse added in v1.104.2

type GetEmbeddedClusterRolesResponse struct {
	Roles []string `json:"roles"`
}

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 GetImageRewriteStatusResponse

type GetImageRewriteStatusResponse struct {
	Status         string `json:"status"`
	CurrentMessage string `json:"currentMessage"`
}

type GetKotsadmRegistryResponse

type GetKotsadmRegistryResponse struct {
	Success    bool   `json:"success"`
	Error      string `json:"error,omitempty"`
	Hostname   string `json:"hostname"`
	Namespace  string `json:"namespace"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	IsReadOnly bool   `json:"isReadOnly"`
}

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 GetRedactResponse struct {
	Success     bool   `json:"success"`
	Error       string `json:"error,omitempty"`
	UpdatedSpec string `json:"updatedSpec"`
}

type GetRedactorResponse

type GetRedactorResponse struct {
	Redactor string                   `json:"redactor"`
	Metadata redacttypes.RedactorList `json:"redactorMetadata"`

	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type GetRestoreAppsStatusRequest

type GetRestoreAppsStatusRequest struct {
	CheckAll bool     `json:"checkAll"`
	AppSlugs []string `json:"appSlugs"`
}

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 GetRestoreStatusResponse

type GetRestoreStatusResponse struct {
	Status      string `json:"status,omitempty"`
	RestoreName string `json:"restore_name,omitempty"`
	Error       string `json:"error,omitempty"`
}

type GetSupportBundleCommandRequest

type GetSupportBundleCommandRequest struct {
	Origin string `json:"origin"`
}

type GetSupportBundleCommandResponse

type GetSupportBundleCommandResponse struct {
	Command []string `json:"command"`
}

type GetSupportBundleFilesResponse

type GetSupportBundleFilesResponse struct {
	Files map[string][]byte `json:"files"`

	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

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"`
	SharedAt   *time.Time                   `json:"sharedAt"`
	IsArchived bool                         `json:"isArchived"`
	Analysis   *types.SupportBundleAnalysis `json:"analysis"`
	Progress   *types.SupportBundleProgress `json:"progress"`
}

type GetUpdateDownloadStatusResponse

type GetUpdateDownloadStatusResponse struct {
	CurrentMessage string `json:"currentMessage"`
	Status         string `json:"status"`
}

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) 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) ConfirmEmbeddedClusterManagement added in v1.107.6

func (h *Handler) ConfirmEmbeddedClusterManagement(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) DeleteEmbeddedClusterNode added in v1.103.3

func (h *Handler) DeleteEmbeddedClusterNode(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteKurlNode added in v1.103.2

func (h *Handler) DeleteKurlNode(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) DrainEmbeddedClusterNode added in v1.103.3

func (h *Handler) DrainEmbeddedClusterNode(w http.ResponseWriter, r *http.Request)

func (*Handler) DrainKurlNode added in v1.103.2

func (h *Handler) DrainKurlNode(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) GenerateEmbeddedClusterNodeJoinCommand added in v1.103.3

func (h *Handler) GenerateEmbeddedClusterNodeJoinCommand(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateKurlNodeJoinCommandMaster added in v1.103.2

func (h *Handler) GenerateKurlNodeJoinCommandMaster(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateKurlNodeJoinCommandPrimary added in v1.103.2

func (h *Handler) GenerateKurlNodeJoinCommandPrimary(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateKurlNodeJoinCommandSecondary added in v1.103.2

func (h *Handler) GenerateKurlNodeJoinCommandSecondary(w http.ResponseWriter, r *http.Request)

func (*Handler) GenerateKurlNodeJoinCommandWorker added in v1.103.2

func (h *Handler) GenerateKurlNodeJoinCommandWorker(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) GetApp

func (h *Handler) GetApp(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) 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) GetBackup

func (h *Handler) GetBackup(w http.ResponseWriter, r *http.Request)

func (*Handler) GetDownstreamOutput

func (h *Handler) GetDownstreamOutput(w http.ResponseWriter, r *http.Request)

func (*Handler) GetEmbeddedClusterNode added in v1.103.3

func (h *Handler) GetEmbeddedClusterNode(w http.ResponseWriter, r *http.Request)

func (*Handler) GetEmbeddedClusterNodeJoinCommand added in v1.103.3

func (h *Handler) GetEmbeddedClusterNodeJoinCommand(w http.ResponseWriter, r *http.Request)

this function relies on the token being valid for authentication

func (*Handler) GetEmbeddedClusterNodes added in v1.103.3

func (h *Handler) GetEmbeddedClusterNodes(w http.ResponseWriter, r *http.Request)

func (*Handler) GetEmbeddedClusterRoles added in v1.104.2

func (h *Handler) GetEmbeddedClusterRoles(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) GetRedact

func (h *Handler) GetRedact(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) GetSendCustomAppMetricsHandler added in v1.103.2

func (h *Handler) GetSendCustomAppMetricsHandler(kotsStore store.Store) http.HandlerFunc

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) ListApps

func (h *Handler) ListApps(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) Login

func (h *Handler) Login(w http.ResponseWriter, r *http.Request)

func (*Handler) Logout

func (h *Handler) Logout(w http.ResponseWriter, r *http.Request)

func (*Handler) OIDCLogin

func (h *Handler) OIDCLogin(w http.ResponseWriter, r *http.Request)

func (*Handler) OIDCLoginCallback

func (h *Handler) OIDCLoginCallback(w http.ResponseWriter, r *http.Request)

func (*Handler) Ping

func (h *Handler) Ping(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) RemoveApp

func (h *Handler) RemoveApp(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 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)
	ShareSupportBundle(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
	GenerateKurlNodeJoinCommandWorker(w http.ResponseWriter, r *http.Request)
	GenerateKurlNodeJoinCommandMaster(w http.ResponseWriter, r *http.Request)
	GenerateKurlNodeJoinCommandSecondary(w http.ResponseWriter, r *http.Request)
	GenerateKurlNodeJoinCommandPrimary(w http.ResponseWriter, r *http.Request)
	DrainKurlNode(w http.ResponseWriter, r *http.Request)
	DeleteKurlNode(w http.ResponseWriter, r *http.Request)
	GetKurlNodes(w http.ResponseWriter, r *http.Request)

	// EmbeddedCLuster
	ConfirmEmbeddedClusterManagement(w http.ResponseWriter, r *http.Request)
	GenerateEmbeddedClusterNodeJoinCommand(w http.ResponseWriter, r *http.Request)
	DrainEmbeddedClusterNode(w http.ResponseWriter, r *http.Request)
	DeleteEmbeddedClusterNode(w http.ResponseWriter, r *http.Request)
	GetEmbeddedClusterNodes(w http.ResponseWriter, r *http.Request)
	GetEmbeddedClusterNode(w http.ResponseWriter, r *http.Request)
	GetEmbeddedClusterRoles(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)
}

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"`
	ValidationErrors []configtypes.ConfigGroupValidationError `json:"validationErrors,omitempty"`
}

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 LoginResponse struct {
	Error string `json:"error,omitempty"`
}

type MetadataK8sFn

type MetadataK8sFn func() (*v1.ConfigMap, types.Metadata, error)

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 MetadataResponseBranding struct {
	Css       []string `json:"css"`
	FontFaces []string `json:"fontFaces"`
}

type OIDCClaimMapping

type OIDCClaimMapping struct {
	PreferredUsernameKey string `json:"preferredUsername,omitempty"`
	EmailKey             string `json:"email,omitempty"`
	GroupsKey            string `json:"groups,omitempty"`
}

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 OIDCLoginResponse struct {
	AuthCodeURL string `json:"authCodeURL"`
	Error       string `json:"error,omitempty"`
}

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 PingResponse struct {
	Ping                   string   `json:"ping"`
	Error                  string   `json:"error,omitempty"`
	SnapshotInProgressApps []string `json:"snapshotInProgressApps"`
}

type PodContainer

type PodContainer struct {
	Name            string `json:"name"`
	LogsFilePath    string `json:"logsFilePath"`
	IsInitContainer bool   `json:"isInitContainer"`
}

type PostRedactorEnabledMetadata

type PostRedactorEnabledMetadata struct {
	Enabled bool `json:"enabled"`
}

type PostRedactorMetadata

type PostRedactorMetadata struct {
	Enabled     bool   `json:"enabled"`
	Description string `json:"description"`
	New         bool   `json:"new"`
	Redactor    string `json:"redactor"`
}

type PutSupportBundleRedactions

type PutSupportBundleRedactions struct {
	Redactions redact2.RedactionList `json:"redactions"`
}

type RemoveAppRequest

type RemoveAppRequest struct {
	Undeploy bool `json:"undeploy"`
	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"`
	SharedAt   *time.Time                   `json:"sharedAt"`
	IsArchived bool                         `json:"isArchived"`
	Analysis   *types.SupportBundleAnalysis `json:"analysis"`
}

type RestoreAppsRequest

type RestoreAppsRequest struct {
	RestoreAll bool     `json:"restoreAll"`
	AppSlugs   []string `json:"appSlugs"`
}

type RestoreAppsResponse

type RestoreAppsResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type ResumeInstallOnlineRequest

type ResumeInstallOnlineRequest struct {
	Slug string `json:"slug"`
}

type ResumeInstallOnlineResponse

type ResumeInstallOnlineResponse struct {
	Success        bool   `json:"success"`
	Error          string `json:"error,omitempty"`
	HasPreflight   bool   `json:"hasPreflight"`
	Slug           string `json:"slug"`
	IsConfigurable bool   `json:"isConfigurable"`
}

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 SaveInstanceSnapshotConfigRequest

type SaveInstanceSnapshotConfigRequest struct {
	InputValue    string `json:"inputValue"`
	InputTimeUnit string `json:"inputTimeUnit"`
	Schedule      string `json:"schedule"`
	AutoEnabled   bool   `json:"autoEnabled"`
}

type SaveInstanceSnapshotConfigResponse

type SaveInstanceSnapshotConfigResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type SaveSnapshotConfigRequest

type SaveSnapshotConfigRequest struct {
	AppID         string `json:"appId"`
	InputValue    string `json:"inputValue"`
	InputTimeUnit string `json:"inputTimeUnit"`
	Schedule      string `json:"schedule"`
	AutoEnabled   bool   `json:"autoEnabled"`
}

type SaveSnapshotConfigResponse

type SaveSnapshotConfigResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type SendCustomAppMetricsRequest added in v1.103.2

type SendCustomAppMetricsRequest struct {
	Data CustomAppMetricsData `json:"data"`
}

type SetAppConfigValuesRequest

type SetAppConfigValuesRequest struct {
	ConfigValues   []byte `json:"configValues"`
	Merge          bool   `json:"merge"`
	Deploy         bool   `json:"deploy"`
	SkipPreflights bool   `json:"skipPreflights"`
	Current        bool   `json:"current"`
	Sequence       int64  `json:"sequence"`
}

type SetAppConfigValuesResponse

type SetAppConfigValuesResponse struct {
	Success          bool                                     `json:"success"`
	Error            string                                   `json:"error,omitempty"`
	ValidationErrors []configtypes.ConfigGroupValidationError `json:"validationErrors,omitempty"`
}

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

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 UpdateAdminConsoleResponse

type UpdateAdminConsoleResponse struct {
	Success      bool   `json:"success"`
	UpdateStatus string `json:"updateStatus"`
	Error        string `json:"error,omitempty"`
}

type UpdateAppConfigRequest

type UpdateAppConfigRequest struct {
	Sequence         int64                     `json:"sequence"`
	CreateNewVersion bool                      `json:"createNewVersion"`
	ConfigGroups     []kotsv1beta1.ConfigGroup `json:"configGroups"`
}

type UpdateAppConfigResponse

type UpdateAppConfigResponse struct {
	Success          bool                                     `json:"success"`
	Error            string                                   `json:"error,omitempty"`
	RequiredItems    []string                                 `json:"requiredItems,omitempty"`
	ValidationErrors []configtypes.ConfigGroupValidationError `json:"validationErrors,omitempty"`
}

type UpdateAppFromAirgapRequest

type UpdateAppFromAirgapRequest struct {
	AppID string `json:"appId"`
}

type UpdateAppFromAirgapResponse

type UpdateAppFromAirgapResponse struct {
}

type UpdateAppGitOpsInput

type UpdateAppGitOpsInput struct {
	URI    string `json:"uri"`
	Branch string `json:"branch"`
	Path   string `json:"path"`
	Format string `json:"format"`
	Action string `json:"action"`
}

type UpdateAppGitOpsRequest

type UpdateAppGitOpsRequest struct {
	GitOpsInput UpdateAppGitOpsInput `json:"gitOpsInput"`
}

type UpdateAppRegistryRequest

type UpdateAppRegistryRequest struct {
	Hostname   string `json:"hostname"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	Namespace  string `json:"namespace"`
	IsReadOnly bool   `json:"isReadOnly"`
}

type UpdateAppRegistryResponse

type UpdateAppRegistryResponse struct {
	Success   bool   `json:"success"`
	Error     string `json:"error,omitempty"`
	Hostname  string `json:"hostname"`
	Username  string `json:"username"`
	Namespace string `json:"namespace"`
}

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 UpdateRedactRequest struct {
	RedactSpec    string `json:"redactSpec"`
	RedactSpecURL string `json:"redactSpecUrl"`
}

type UpdateRedactResponse

type UpdateRedactResponse struct {
	Success     bool   `json:"success"`
	Error       string `json:"error,omitempty"`
	UpdatedSpec string `json:"updatedSpec"`
}

type UploadExistingAppRequest

type UploadExistingAppRequest struct {
	Slug           string `json:"slug"`
	VersionLabel   string `json:"versionLabel,omitempty"`
	UpdateCursor   string `json:"updateCursor,omitempty"`
	Deploy         bool   `json:"deploy"`
	SkipPreflights bool   `json:"skipPreflights"`
}

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 ValidateAppRegistryRequest

type ValidateAppRegistryRequest struct {
	Hostname   string `json:"hostname"`
	Namespace  string `json:"namespace"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	IsReadOnly bool   `json:"isReadOnly"`
}

type ValidateAppRegistryResponse

type ValidateAppRegistryResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type VeleroRBACResponse

type VeleroRBACResponse struct {
	Success                     bool   `json:"success"`
	Error                       string `json:"error,omitempty"`
	KotsadmNamespace            string `json:"kotsadmNamespace,omitempty"`
	KotsadmRequiresVeleroAccess bool   `json:"kotsadmRequiresVeleroAccess,omitempty"`
}

type VeleroStatus

type VeleroStatus struct {
	IsVeleroInstalled bool `json:"isVeleroInstalled"`
}

Directories

Path Synopsis
Package mock_handlers is a generated GoMock package.
Package mock_handlers is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL