handlers

package
v1.49.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 115 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAPIEndpoint = "https://replicated.app"
)
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 JSON

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

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

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 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 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"`
}

type CollectSupportBundlesResponse

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

type ConfigureFileSystemSnapshotProviderRequest

type ConfigureFileSystemSnapshotProviderRequest struct {
	FileSystemOptions FileSystemOptions `json:"fileSystemOptions"`
}

type ConfigureFileSystemSnapshotProviderResponse

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

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 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"`
	ConfigGroups []kotsv1beta1.ConfigGroup `json:"configGroups"`
}

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 DexConnectorInfo

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

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 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 GarbageCollectImagesResponse

type GarbageCollectImagesResponse struct {
	Error string `json:"error,omitempty"`
}

type GenerateNodeJoinCommandResponse

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

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         *appstatustypes.AppStatus `json:"appStatus"`
	Metrics           []version.MetricChart     `json:"metrics"`
	PrometheusAddress string                    `json:"prometheusAddress"`
}

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 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 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 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 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"`
	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"`
	VeleroPod       string   `json:"veleroPod"`
	ResticVersion   string   `json:"resticVersion"`
	IsResticRunning bool     `json:"isResticRunning"`
	ResticPods      []string `json:"resticPods"`

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

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

func (*Handler) ExchangePlatformLicense

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

func (*Handler) GarbageCollectImages

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

func (*Handler) GenerateNodeJoinCommandMaster

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

func (*Handler) GenerateNodeJoinCommandPrimary

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

func (*Handler) GenerateNodeJoinCommandSecondary

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

func (*Handler) GenerateNodeJoinCommandWorker

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

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

	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 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"`
	IsSnapshotSupported        bool                  `json:"isSnapshotSupported"`
}

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

type MetadataResponse

type MetadataResponse struct {
	IconURI       string `json:"iconUri"`
	Name          string `json:"name"`
	Namespace     string `json:"namespace"`
	IsKurlEnabled bool   `json:"isKurlEnabled"`
	UpstreamURI   string `json:"upstreamUri"`
}

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"`
	HostedDomains             []string         `json:"hostedDomains,omitempty"`
	ClaimMapping              OIDCClaimMapping `json:"claimMapping,omitempty"`
}

type OIDCLoginResponse

type OIDCLoginResponse struct {
	AuthCodeURL string `json:"authCodeURL"`
	Error       string `json:"error,omitempty"`
}

type PingResponse

type PingResponse struct {
	Ping                   string   `json:"ping"`
	Error                  string   `json:"error,omitempty"`
	SnapshotInProgressApps []string `json:"snapshotInProgressApps"`
}

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 {
	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 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 SetAppConfigValuesRequest

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

type SetAppConfigValuesResponse

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

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 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"`
}

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 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"`
	HelmStdout   string `json:"helmStdout"`
	HelmStderr   string `json:"helmStderr"`
	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 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 UpdateUndeployResultRequest added in v1.31.0

type UpdateUndeployResultRequest struct {
	AppID   string `json:"appId"`
	IsError bool   `json:"isError"`
}

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 {
	Slug string `json:"slug"`
}

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