Documentation ¶
Index ¶
- func CORS(w http.ResponseWriter, r *http.Request)
- func CorsMiddleware(next http.Handler) http.Handler
- func GetAppHistory(w http.ResponseWriter, r *http.Request)
- func GetAppUpdates(w http.ResponseWriter, r *http.Request)
- func GetCurrentAppInfo(w http.ResponseWriter, r *http.Request)
- func GetLicenseField(w http.ResponseWriter, r *http.Request)
- func GetLicenseFields(w http.ResponseWriter, r *http.Request)
- func GetLicenseInfo(w http.ResponseWriter, r *http.Request)
- func Healthz(w http.ResponseWriter, r *http.Request)
- func JSON(w http.ResponseWriter, code int, payload interface{})
- type AppRelease
- type GetAppHistoryResponse
- type GetCurrentAppInfoResponse
- type HealthzResponse
- type LicenseInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppHistory ¶
func GetAppHistory(w http.ResponseWriter, r *http.Request)
func GetAppUpdates ¶
func GetAppUpdates(w http.ResponseWriter, r *http.Request)
func GetCurrentAppInfo ¶
func GetCurrentAppInfo(w http.ResponseWriter, r *http.Request)
func GetLicenseField ¶
func GetLicenseField(w http.ResponseWriter, r *http.Request)
func GetLicenseFields ¶
func GetLicenseFields(w http.ResponseWriter, r *http.Request)
func GetLicenseInfo ¶
func GetLicenseInfo(w http.ResponseWriter, r *http.Request)
func JSON ¶
func JSON(w http.ResponseWriter, code int, payload interface{})
Types ¶
type AppRelease ¶
type AppRelease struct { VersionLabel string `json:"versionLabel"` ChannelID string `json:"channelID"` ChannelName string `json:"channelName"` ChannelSequence int64 `json:"channelSequence"` ReleaseSequence int64 `json:"releaseSequence"` IsRequired bool `json:"isRequired"` CreatedAt string `json:"createdAt"` ReleaseNotes string `json:"releaseNotes"` HelmReleaseName string `json:"helmReleaseName,omitempty"` HelmReleaseRevision int `json:"helmReleaseRevision,omitempty"` HelmReleaseNamespace string `json:"helmReleaseNamespace,omitempty"` }
type GetAppHistoryResponse ¶
type GetAppHistoryResponse struct {
Releases []AppRelease `json:"releases"`
}
type GetCurrentAppInfoResponse ¶
type GetCurrentAppInfoResponse struct { AppSlug string `json:"appSlug"` AppName string `json:"appName"` CurrentRelease AppRelease `json:"currentRelease"` }
type HealthzResponse ¶
type HealthzResponse struct {
Version string `json:"version"`
}
type LicenseInfo ¶
type LicenseInfo struct { LicenseID string `json:"licenseID"` ChannelID string `json:"channelID"` ChannelName string `json:"channelName"` CustomerName string `json:"customerName"` CustomerEmail string `json:"customerEmail"` LicenseType string `json:"licenseType"` IsAirgapSupported bool `json:"isAirgapSupported"` IsGitOpsSupported bool `json:"isGitOpsSupported"` IsSnapshotSupported bool `json:"isSnapshotSupported"` }
Click to show internal directories.
Click to hide internal directories.