handlers

package
v1.0.0-beta.12 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

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 EnforceMockAccess

func EnforceMockAccess(next http.HandlerFunc) http.HandlerFunc

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 GetIntegrationMockData

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

func GetIntegrationStatus

func GetIntegrationStatus(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 Healthz

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

func JSON

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

func JSONCached

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

func PostIntegrationMockData

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

func RequireValidLicenseIDMiddleware

func RequireValidLicenseIDMiddleware(next http.Handler) http.Handler

func SendCustomAppMetrics

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

Types

type AppRelease

type AppRelease struct {
	VersionLabel         string `json:"versionLabel"`
	ReleaseNotes         string `json:"releaseNotes"`
	CreatedAt            string `json:"createdAt"`
	DeployedAt           string `json:"deployedAt"`
	HelmReleaseName      string `json:"helmReleaseName,omitempty"`
	HelmReleaseRevision  int    `json:"helmReleaseRevision,omitempty"`
	HelmReleaseNamespace string `json:"helmReleaseNamespace,omitempty"`
}

type CustomAppMetricsData

type CustomAppMetricsData map[string]interface{}

type GetAppHistoryResponse

type GetAppHistoryResponse struct {
	Releases []AppRelease `json:"releases"`
}

type GetCurrentAppInfoResponse

type GetCurrentAppInfoResponse struct {
	AppSlug        string              `json:"appSlug"`
	AppName        string              `json:"appName"`
	AppStatus      appstatetypes.State `json:"appStatus"`
	HelmChartURL   string              `json:"helmChartURL,omitempty"`
	CurrentRelease AppRelease          `json:"currentRelease"`
}

type GetIntegrationStatusResponse

type GetIntegrationStatusResponse struct {
	IsEnabled bool `json:"isEnabled"`
}

type HealthzResponse

type HealthzResponse struct {
	Version string `json:"version"`
}

type LicenseInfo

type LicenseInfo struct {
	LicenseID     string `json:"licenseID"`
	ChannelName   string `json:"channelName"`
	CustomerName  string `json:"customerName"`
	CustomerEmail string `json:"customerEmail"`
	LicenseType   string `json:"licenseType"`
}

type SendCustomAppMetricsRequest

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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