Documentation ¶
Overview ¶
Package handlers : collection of handlers (aka "HTTP middleware")
Package handlers Meshery API.
the purpose of this application is to provide an application that is using plain go code to define an API
This should demonstrate all the possible comment annotations that are available to turn go code into a fully compliant swagger 2.0 spec
Schemes: http BasePath: / Version: 0.4.27 License: Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0.txt Consumes: - application/json - multipart/form-data Produces: - application/json Security: - token: [] SecurityDefinitions: token: type: apiKey name: token in: cookie
swagger:meta
Package handlers :collection of handlers (aka "HTTP middleware")
Package handlers : collection of handlers (aka "HTTP middleware")
Package handlers : collection of handlers (aka "HTTP middleware")
Package handlers : collection of handlers (aka "HTTP middleware")
Package handlers : collection of handlers (aka "HTTP middleware")
Package handlers : collection of handlers (aka "HTTP middleware")
Package handlers : collection of handlers (aka "HTTP middleware")
Package handlers : collection of handlers (aka "HTTP middleware")
Package handlers : collection of handlers (aka "HTTP middleware")
Index ¶
- Constants
- Variables
- func CheckLatestVersion(serverVersion string) (*latest.CheckResponse, error)
- func ErrApplicationFailure(err error, obj string) error
- func ErrApplyChange(err error) error
- func ErrBlankName(err error) error
- func ErrChangeK8sContext(err error) error
- func ErrCompConfigPairs(err error) error
- func ErrConversion(err error) error
- func ErrConvertToSpec(err error) error
- func ErrCreateDir(err error, obj string) error
- func ErrDecoding(err error, obj string) error
- func ErrEncoding(err error, obj string) error
- func ErrExecutionPlan(err error) error
- func ErrFailToDelete(err error, obj string) error
- func ErrFailToLoadExtensions(err error) error
- func ErrFailToSave(err error, obj string) error
- func ErrFetchKubernetes(err error) error
- func ErrFetchSMIResults(err error) error
- func ErrFormFile(err error) error
- func ErrGetResult(err error) error
- func ErrGrafanaBoards(err error) error
- func ErrGrafanaQuery(err error) error
- func ErrGrafanaScan(err error) error
- func ErrInvalidLTURL(url string) error
- func ErrInvalidPattern(err error) error
- func ErrInvalidRequestObject(fields ...string) error
- func ErrKubeClient(err error) error
- func ErrKubeVersion(err error) error
- func ErrLoadConfig(err error) error
- func ErrLoadTest(err error, obj string) error
- func ErrMarshal(err error, obj string) error
- func ErrOpenFile(file string) error
- func ErrOperationID(err error) error
- func ErrPanicRecovery(r interface{}) error
- func ErrParseBool(err error, obj string) error
- func ErrParseForm(err error) error
- func ErrPatternFile(err error) error
- func ErrPluginLookup(err error) error
- func ErrPluginOpen(err error) error
- func ErrPluginRun(err error) error
- func ErrPrometheusBoards(err error) error
- func ErrPrometheusQuery(err error) error
- func ErrPrometheusScan(err error) error
- func ErrPublishSmiResults(err error) error
- func ErrQueryGet(obj string) error
- func ErrReadConfig(err error) error
- func ErrRecordPreferences(err error) error
- func ErrRequestBody(err error) error
- func ErrRetrieveData(err error) error
- func ErrRetrieveMeshData(err error) error
- func ErrRetrieveUserToken(err error) error
- func ErrSaveSession(err error) error
- func ErrScopeDefinition(err error) error
- func ErrStreamClient(err error) error
- func ErrStreamEvents(err error) error
- func ErrTraitDefinition(err error) error
- func ErrUnmarshal(err error, obj string) error
- func ErrVersionCompare(err error) error
- func ErrWorkloadDefinition(err error) error
- func NewHandlerInstance(handlerConfig *models.HandlerConfig, meshSyncCh chan struct{}, ...) models.HandlerInterface
- func ServeReactComponentFromPackage(w http.ResponseWriter, r *http.Request, reqBasePath string, ...)
- func ServeUI(w http.ResponseWriter, r *http.Request, reqBasePath, baseFolderPath string)
- type ExtensionVersion
- type FilterFilesResponseWrapper
- type Handler
- func (h *Handler) AdapterPingHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) AdaptersHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ApplicationFileHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ApplicationFileRequestHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) AuthMiddleware(next http.Handler) http.Handler
- func (h *Handler) CollectStaticMetrics(config *models.SubmitMetricsConfig) error
- func (h *Handler) DeleteMesheryApplicationHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) DeleteMesheryFilterHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) DeleteMesheryPatternHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) DeletePerformanceProfileHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) DeleteScheduleHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) EventStreamHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ExtensionsEndpointHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ExtensionsVersionHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) FetchAllResultsHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, ...)
- func (h *Handler) FetchResultsHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, ...)
- func (h *Handler) FetchSmiResultsHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, ...)
- func (h *Handler) FilterFileHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) FilterFileRequestHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GETOAMRegisterHandler(typ string, rw http.ResponseWriter, trim bool)
- func (h *Handler) GetContextsFromK8SConfig(w http.ResponseWriter, req *http.Request)
- func (h *Handler) GetMesheryApplicationHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetMesheryApplicationsHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetMesheryFilterFileHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetMesheryFilterHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetMesheryFiltersHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetMesheryPatternHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetMesheryPatternsHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetPerformanceProfileHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetPerformanceProfilesHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetResultHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, ...)
- func (h *Handler) GetSMPServiceMeshes(w http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetScheduleHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GetSchedulesHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GrafanaBoardImportForPrometheusHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GrafanaBoardsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GrafanaConfigHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GrafanaPingHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GrafanaQueryHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) GrafanaQueryRangeHandler(w http.ResponseWriter, req *http.Request)
- func (h *Handler) GraphqlMiddleware(next http.Handler) ...
- func (h *Handler) K8SConfigHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) KubernetesPingHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) LoadExtensionFromPackage(w http.ResponseWriter, req *http.Request, provider models.Provider) error
- func (h *Handler) LoadTestHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) LoadTestUsingSMPHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) LoginHandler(w http.ResponseWriter, r *http.Request, p models.Provider, fromMiddleWare bool)
- func (h *Handler) LogoutHandler(w http.ResponseWriter, req *http.Request, p models.Provider)
- func (h *Handler) MeshAdapterConfigHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) MeshOpsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) OAMComponentDetailByIDHandler(rw http.ResponseWriter, r *http.Request)
- func (h *Handler) OAMComponentDetailsHandler(rw http.ResponseWriter, r *http.Request)
- func (h *Handler) OAMRegisterHandler(rw http.ResponseWriter, r *http.Request)
- func (h *Handler) POSTOAMRegisterHandler(typ string, r *http.Request) error
- func (h *Handler) PatternFileHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) PatternFileRequestHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) PrometheusConfigHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) PrometheusPingHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) PrometheusQueryHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) PrometheusQueryRangeHandler(w http.ResponseWriter, req *http.Request)
- func (h *Handler) PrometheusStaticBoardHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ProviderCapabilityHandler(w http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ProviderComponentsHandler(w http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ProviderHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ProviderMiddleware(next http.Handler) http.Handler
- func (h *Handler) ProviderUIHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ProvidersHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SavePerformanceProfileHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) SaveScheduleHandler(rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) SaveSelectedGrafanaBoardsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) SaveSelectedPrometheusBoardsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ScanGrafanaHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ScanPromGrafanaHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ScanPrometheusHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) ServerVersionHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SessionInjectorMiddleware(...) http.Handler
- func (h *Handler) SessionSyncHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) TokenHandler(w http.ResponseWriter, r *http.Request, p models.Provider, fromMiddleWare bool)
- func (h *Handler) UserHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, ...)
- func (h *Handler) UserPrefsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) UserTestPreferenceDelete(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) UserTestPreferenceGet(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) UserTestPreferenceHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- func (h *Handler) UserTestPreferenceStore(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, ...)
- type IDParameterWrapper
- type MesheryApplicationRequestBody
- type MesheryFilterRequestBody
- type MesheryPatternRequestBody
- type SMPMeshes
- type UUIDParamsWrapper
- type Version
Constants ¶
const ( ErrInvalidK8SConfigCode = "2000" ErrNilClientCode = "2001" ErrPrometheusScanCode = "2002" ErrGrafanaScanCode = "2003" ErrRecordPreferencesCode = "2004" ErrGrafanaConfigCode = "2005" ErrPrometheusConfigCode = "2006" ErrGrafanaQueryCode = "2007" ErrPrometheusQueryCode = "2008" ErrGrafanaBoardsCode = "2009" ErrPrometheusBoardsCode = "2010" ErrStaticBoardsCode = "2011" ErrRequestBodyCode = "2012" ErrMarshalCode = "2013" ErrUnmarshalCode = "2014" ErrEncodingCode = "2015" ErrParseBoolCode = "2016" ErrStreamEventsCode = "2017" ErrStreamClientCode = "2018" ErrUnmarshalEventCode = "2019" ErrPublishSmiResultsCode = "2020" ErrMarshalEventCode = "2021" ErrPluginOpenCode = "2022" ErrPluginLookupCode = "2023" ErrPluginRunCode = "2024" ErrParseFormCode = "2025" ErrQueryGetCode = "2026" ErrGetResultCode = "2027" ErrConvertToSpecCode = "2028" ErrFetchSMIResultsCode = "2029" ErrFormFileCode = "2030" ErrReadConfigCode = "2031" ErrLoadConfigCode = "2032" ErrOpenFileCode = "2033" ErrKubeVersionCode = "2034" ErrAddAdapterCode = "2035" ErrRetrieveDataCode = "2036" ErrValidAdapterCode = "2037" ErrOperationIDCode = "2038" ErrMeshClientCode = "2039" ErrApplyChangeCode = "2040" ErrRetrieveMeshDataCode = "2041" ErrApplicationFailureCode = "2042" ErrDecodingCode = "2043" ErrRetrieveUserTokenCode = "2044" ErrFailToSaveCode = "2045" ErrFailToDeleteCode = "2046" ErrWriteResponseCode = "2052" ErrTestConfigsCode = "2053" ErrInvalidGenValueCode = "2054" ErrFailToLoadExtensionsCode = "2047" ErrConversionCode = "2048" ErrParseDurationCode = "2049" ErrLoadTestCode = "2050" ErrFetchKubernetesCode = "2051" ErrPanicRecoveryCode = "2052" ErrBlankNameCode = "2053" ErrInvalidLTURLCode = "2053" ErrDataSendCode = "2137" ErrVersionCompareCode = "2138" ErrSaveSessionCode = "2136" ErrKubeClientCode = "2139" ErrWorkloadDefinitionCode = "2140" ErrTraitDefinitionCode = "2141" ErrScopeDefinitionCode = "2142" ErrPatternFileCode = "2143" ErrExecutionPlanCode = "2144" ErrInvalidPatternCode = "2145" ErrCompConfigPairsCode = "2146" ErrCreateDirCode = "2150" ErrInvalidRequestObjectCode = "2151" ErrChangeK8sContextCode = "2152" )
Variables ¶
var ( ErrInvalidK8SConfig = errors.New(ErrInvalidK8SConfigCode, errors.Alert, []string{"No valid kubernetes config found"}, []string{"Kubernetes config is not initialized with Meshery"}, []string{"Kubernetes config is not accessible to meshery or not valid"}, []string{"Upload your kubernetes config via the settings dashboard. If uploaded, wait for a minute for it to get initialized"}) ErrNilClient = errors.New(ErrNilClientCode, errors.Alert, []string{"Kubernetes client not initialized"}, []string{"Kubernetes config is not initialized with Meshery"}, []string{"Kubernetes config is not accessible to meshery or not valid"}, []string{"Upload your kubernetes config via the settings dashboard. If uploaded, wait for a minute for it to get initialized"}) ErrPrometheusConfig = errors.New(ErrPrometheusConfigCode, errors.Alert, []string{"Prometheus endpoint not configured"}, []string{"Cannot find valid Prometheus endpoint in user pref"}, []string{"Prometheus endpoint might not be reachable from meshery"}, []string{"Setup your Prometheus Endpoint via the settings dashboard"}) ErrGrafanaConfig = errors.New(ErrGrafanaConfigCode, errors.Alert, []string{"Grafana endpoint not configured"}, []string{"Cannot find valid grafana endpoint in user pref"}, []string{"Grafana endpoint might not be reachable from meshery"}, []string{"Setup your Grafana Endpoint via the settings dashboard"}) ErrStaticBoards = errors.New(ErrStaticBoardsCode, errors.Alert, []string{"unable to get static board"}, []string{"unable to get static board"}, []string{"No boards could be available in grafana"}, []string{}) ErrValidAdapter = errors.New(ErrValidAdapterCode, errors.Alert, []string{"Unable to find valid Adapter URL"}, []string{"unable to find a valid adapter for the given adapter URL"}, []string{"Given adapter URL is not valid"}, []string{"Please provide a valid Adapter URL"}) ErrAddAdapter = errors.New(ErrAddAdapterCode, errors.Alert, []string{"meshLocationURL is empty"}, []string{"meshLocationURL is empty to add an adapter"}, []string{"meshLocationURL cannot be empty to add an adapter"}, []string{"please provide the meshLocationURL"}) ErrMeshClient = errors.New(ErrMeshClientCode, errors.Alert, []string{"Error creating a mesh client", "Error pinging the mesh adapter"}, []string{"Unable to create a mesh client", "Unable to ping the mesh adapter"}, []string{"Adapter could not be pinged"}, []string{"Unable to connect to the Mesh adapter using the given config, please try again"}) ErrWriteResponse = errors.New(ErrWriteResponseCode, errors.Alert, []string{"Error writing response"}, []string{}, []string{}, []string{}) ErrTestConfigs = errors.New(ErrTestConfigsCode, errors.Alert, []string{"Error fetching test configs"}, []string{}, []string{}, []string{}) ErrInvalidGenValue = errors.New(ErrInvalidGenValueCode, errors.Alert, []string{"Invalid value for gen"}, []string{}, []string{}, []string{"please provide a valid value for gen (load generator)"}) ErrParseDuration = errors.New(ErrParseDurationCode, errors.Alert, []string{"error parsing test duration"}, []string{}, []string{"The format of the duration passed could be incorrect"}, []string{"please refer to: https://docs.meshery.io/guides/mesheryctl#performance-management"}) )
var ( ErrInvalidKubeConfig = fmt.Errorf("given file is not a valid Kubernetes config file, please try again") ErrInvalidK8sContextName = fmt.Errorf("given context name is not valid, please try again with a valid value") )
Functions ¶
func CheckLatestVersion ¶ added in v0.4.16
CheckLatestVersion takes in the current server version compares it with the target and returns the result (latest.CheckResponse)
func ErrApplicationFailure ¶ added in v0.5.30
func ErrApplyChange ¶ added in v0.5.30
func ErrBlankName ¶ added in v0.5.37
func ErrChangeK8sContext ¶ added in v0.5.50
func ErrCompConfigPairs ¶ added in v0.5.38
func ErrConversion ¶ added in v0.5.37
func ErrConvertToSpec ¶ added in v0.5.30
func ErrCreateDir ¶ added in v0.5.46
func ErrDecoding ¶ added in v0.5.30
func ErrEncoding ¶ added in v0.5.30
func ErrExecutionPlan ¶ added in v0.5.38
func ErrFailToDelete ¶ added in v0.5.32
func ErrFailToLoadExtensions ¶ added in v0.5.37
func ErrFailToSave ¶ added in v0.5.32
func ErrFetchKubernetes ¶ added in v0.5.37
func ErrFetchSMIResults ¶ added in v0.5.30
func ErrFormFile ¶ added in v0.5.30
func ErrGetResult ¶ added in v0.5.30
func ErrGrafanaBoards ¶ added in v0.5.26
func ErrGrafanaQuery ¶ added in v0.5.26
func ErrGrafanaScan ¶ added in v0.5.26
func ErrInvalidLTURL ¶ added in v0.5.38
func ErrInvalidPattern ¶ added in v0.5.38
func ErrInvalidRequestObject ¶ added in v0.5.50
func ErrKubeClient ¶ added in v0.5.38
func ErrKubeVersion ¶ added in v0.5.30
func ErrLoadConfig ¶ added in v0.5.30
func ErrLoadTest ¶ added in v0.5.37
func ErrMarshal ¶ added in v0.5.26
func ErrOpenFile ¶ added in v0.5.30
func ErrOperationID ¶ added in v0.5.30
func ErrPanicRecovery ¶ added in v0.5.37
func ErrPanicRecovery(r interface{}) error
func ErrParseBool ¶ added in v0.5.30
func ErrParseForm ¶ added in v0.5.30
func ErrPatternFile ¶ added in v0.5.38
func ErrPluginLookup ¶ added in v0.5.30
func ErrPluginOpen ¶ added in v0.5.30
func ErrPluginRun ¶ added in v0.5.30
func ErrPrometheusBoards ¶ added in v0.5.26
func ErrPrometheusQuery ¶ added in v0.5.26
func ErrPrometheusScan ¶ added in v0.5.26
func ErrPublishSmiResults ¶ added in v0.5.30
func ErrQueryGet ¶ added in v0.5.30
func ErrReadConfig ¶ added in v0.5.30
func ErrRecordPreferences ¶ added in v0.5.26
func ErrRequestBody ¶ added in v0.5.26
func ErrRetrieveData ¶ added in v0.5.30
func ErrRetrieveMeshData ¶ added in v0.5.30
func ErrRetrieveUserToken ¶ added in v0.5.30
func ErrSaveSession ¶ added in v0.5.38
func ErrScopeDefinition ¶ added in v0.5.38
func ErrStreamClient ¶ added in v0.5.30
func ErrStreamEvents ¶ added in v0.5.30
func ErrTraitDefinition ¶ added in v0.5.38
func ErrUnmarshal ¶ added in v0.5.26
func ErrVersionCompare ¶ added in v0.5.38
func ErrWorkloadDefinition ¶ added in v0.5.38
func NewHandlerInstance ¶ added in v0.0.4
func NewHandlerInstance( handlerConfig *models.HandlerConfig, meshSyncCh chan struct{}, logger logger.Handler, brokerConn broker.Handler, ) models.HandlerInterface
NewHandlerInstance returns a Handler instance
func ServeReactComponentFromPackage ¶ added in v0.5.1
func ServeReactComponentFromPackage( w http.ResponseWriter, r *http.Request, reqBasePath string, provider models.Provider, )
ServeReactComponentFromPackage serves static assets from the package located at provider.PackageLocation()
Types ¶
type ExtensionVersion ¶ added in v0.5.68
type ExtensionVersion struct {
Version string `json:"version,omitempty"`
}
Defines the version metadata for the extension
type FilterFilesResponseWrapper ¶ added in v0.5.59
type FilterFilesResponseWrapper struct { // in: body Body *models.MesheryFilter }
Returns the response of the Filter files swagger:response FilterFilesResponseWrapper
type Handler ¶ added in v0.0.4
type Handler struct {
// contains filtered or unexported fields
}
Handler type is the bucket for configs and http handlers
func (*Handler) AdapterPingHandler ¶ added in v0.0.6
func (h *Handler) AdapterPingHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
AdapterPingHandler is used to ping a given adapter
func (*Handler) AdaptersHandler ¶ added in v0.5.46
func (h *Handler) AdaptersHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
AdaptersHandler is used to fetch all the adapters
func (*Handler) ApplicationFileHandler ¶ added in v0.5.30
func (h *Handler) ApplicationFileHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
ApplicationFileHandler handles the requested related to application files
func (*Handler) ApplicationFileRequestHandler ¶ added in v0.5.26
func (h *Handler) ApplicationFileRequestHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
ApplicationFileRequestHandler will handle requests of both type GET and POST on the route /api/application
func (*Handler) AuthMiddleware ¶ added in v0.0.4
AuthMiddleware is a middleware to validate if a user is authenticated
func (*Handler) CollectStaticMetrics ¶ added in v0.0.6
func (h *Handler) CollectStaticMetrics(config *models.SubmitMetricsConfig) error
CollectStaticMetrics is used for collecting static metrics from prometheus and submitting it to Remote Provider
func (*Handler) DeleteMesheryApplicationHandler ¶ added in v0.5.26
func (h *Handler) DeleteMesheryApplicationHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
DeleteMesheryApplicationHandler deletes a application with the given id
func (*Handler) DeleteMesheryFilterHandler ¶ added in v0.5.4
func (h *Handler) DeleteMesheryFilterHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
swagger:route DELETE /api/filter/{id} FiltersAPI idDeleteMesheryFilter Handle Delete for a Meshery Filter
Deletes a meshery filter with ID: id responses:
200: noContentWrapper
DeleteMesheryFilterHandler deletes a filter with the given id
func (*Handler) DeleteMesheryPatternHandler ¶ added in v0.5.1
func (h *Handler) DeleteMesheryPatternHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
swagger:route DELETE /api/pattern/{id} PatternsAPI idDeleteMesheryPattern Handle Delete for a Meshery Pattern
Deletes a meshery pattern with ID: id responses:
200: noContentWrapper
DeleteMesheryPatternHandler deletes a pattern with the given id
func (*Handler) DeletePerformanceProfileHandler ¶ added in v0.5.2
func (h *Handler) DeletePerformanceProfileHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
DeletePerformanceProfileHandler deletes a performance profile with the given id
func (*Handler) DeleteScheduleHandler ¶ added in v0.5.2
func (h *Handler) DeleteScheduleHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
DeleteScheduleHandler deletes a schedule with the given id
func (*Handler) EventStreamHandler ¶ added in v0.0.6
func (h *Handler) EventStreamHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, p models.Provider)
EventStreamHandler endpoint is used for streaming events to the frontend
func (*Handler) ExtensionsEndpointHandler ¶ added in v0.5.1
func (*Handler) ExtensionsVersionHandler ¶ added in v0.5.68
func (*Handler) FetchAllResultsHandler ¶ added in v0.5.2
func (h *Handler) FetchAllResultsHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, user *models.User, p models.Provider)
FetchAllResultsHandler fetchs pages of results from Remote Provider and presents it to the UI
func (*Handler) FetchResultsHandler ¶ added in v0.0.6
func (h *Handler) FetchResultsHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, user *models.User, p models.Provider)
FetchResultsHandler fetchs pages of results from Remote Provider and presents it to the UI
func (*Handler) FetchSmiResultsHandler ¶ added in v0.4.7
func (h *Handler) FetchSmiResultsHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, user *models.User, p models.Provider)
GetSmiResultsHandler gets the results of all the smi conformance tests
func (*Handler) FilterFileHandler ¶ added in v0.5.59
func (h *Handler) FilterFileHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
FilterFileHandler handles the requested related to filter files
func (*Handler) FilterFileRequestHandler ¶ added in v0.5.4
func (h *Handler) FilterFileRequestHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
swagger:route GET /api/filter FiltersAPI idGetFilterFile Handle GET request for all filters
Returns all the Meshery Filters saved by the current user responses:
200: mesheryFiltersResponseWrapper
FilterFileRequestHandler will handle requests of both type GET and POST on the route /api/filter
func (*Handler) GETOAMRegisterHandler ¶ added in v0.5.38
func (h *Handler) GETOAMRegisterHandler(typ string, rw http.ResponseWriter, trim bool)
GETOAMRegisterHandler handles the get requests for the OAM objects
func (*Handler) GetContextsFromK8SConfig ¶ added in v0.0.6
func (h *Handler) GetContextsFromK8SConfig(w http.ResponseWriter, req *http.Request)
GetContextsFromK8SConfig returns the context list for a given k8s config
func (*Handler) GetMesheryApplicationHandler ¶ added in v0.5.26
func (h *Handler) GetMesheryApplicationHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetMesheryApplicationHandler fetched the application with the given id
func (*Handler) GetMesheryApplicationsHandler ¶ added in v0.5.26
func (h *Handler) GetMesheryApplicationsHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetMesheryApplicationsHandler returns the list of all the applications saved by the current user
func (*Handler) GetMesheryFilterFileHandler ¶ added in v0.5.37
func (h *Handler) GetMesheryFilterFileHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
swagger:route GET /api/filter/file/{id} FiltersAPI idGetFilterFiles Handle GET request for filter file with given id
Returns the Meshery Filter file saved by the current user with the given id responses:
200: mesheryFilterResponseWrapper
func (*Handler) GetMesheryFilterHandler ¶ added in v0.5.4
func (h *Handler) GetMesheryFilterHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetMesheryFilterHandler fetched the filter with the given id
func (*Handler) GetMesheryFiltersHandler ¶ added in v0.5.4
func (h *Handler) GetMesheryFiltersHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetMesheryFiltersHandler returns the list of all the filters saved by the current user
func (*Handler) GetMesheryPatternHandler ¶ added in v0.5.1
func (h *Handler) GetMesheryPatternHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetMesheryPatternHandler fetched the pattern with the given id
func (*Handler) GetMesheryPatternsHandler ¶ added in v0.5.1
func (h *Handler) GetMesheryPatternsHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetMesheryPatternsHandler returns the list of all the patterns saved by the current user
func (*Handler) GetPerformanceProfileHandler ¶ added in v0.5.2
func (h *Handler) GetPerformanceProfileHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
swagger:route GET /api/user/performance/profiles/{id} PerformanceAPI idGetSinglePerformanceProfile Handle GET requests for performance results of a profile
Returns single performance profile with the given id responses:
200: performanceProfileResponseWrapper
GetPerformanceProfileHandler fetched the performance profile with the given id
func (*Handler) GetPerformanceProfilesHandler ¶ added in v0.5.2
func (h *Handler) GetPerformanceProfilesHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetPerformanceProfilesHandler returns the list of all the performance profiles saved by the current user
func (*Handler) GetResultHandler ¶ added in v0.3.10
func (h *Handler) GetResultHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, user *models.User, p models.Provider)
GetResultHandler gets an individual result from provider
func (*Handler) GetSMPServiceMeshes ¶ added in v0.5.1
func (h *Handler) GetSMPServiceMeshes(w http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
GetSMPServiceMeshes handles the available meshes request
func (*Handler) GetScheduleHandler ¶ added in v0.5.2
func (h *Handler) GetScheduleHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetScheduleHandler fetches the schedule with the given id
func (*Handler) GetSchedulesHandler ¶ added in v0.5.2
func (h *Handler) GetSchedulesHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
GetSchedulesHandler returns the list of all the schedules saved by the current user
func (*Handler) GrafanaBoardImportForPrometheusHandler ¶ added in v0.0.6
func (h *Handler) GrafanaBoardImportForPrometheusHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
GrafanaBoardImportForPrometheusHandler accepts a Grafana board json, parses it and returns the list of panels
func (*Handler) GrafanaBoardsHandler ¶ added in v0.0.6
func (h *Handler) GrafanaBoardsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, p models.Provider)
GrafanaBoardsHandler is used for fetching Grafana boards and panels
func (*Handler) GrafanaConfigHandler ¶ added in v0.0.6
func (h *Handler) GrafanaConfigHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, p models.Provider)
GrafanaConfigHandler is used for fetching or persisting or removing Grafana configuration
func (*Handler) GrafanaPingHandler ¶ added in v0.3.5
func (h *Handler) GrafanaPingHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, p models.Provider)
GrafanaPingHandler - used to initiate a Grafana ping
func (*Handler) GrafanaQueryHandler ¶ added in v0.0.6
func (h *Handler) GrafanaQueryHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, p models.Provider)
GrafanaQueryHandler is used for handling Grafana queries
func (*Handler) GrafanaQueryRangeHandler ¶ added in v0.0.6
func (h *Handler) GrafanaQueryRangeHandler(w http.ResponseWriter, req *http.Request)
GrafanaQueryRangeHandler is used for handling Grafana Range queries
func (*Handler) GraphqlMiddleware ¶ added in v0.5.38
func (h *Handler) GraphqlMiddleware(next http.Handler) func(http.ResponseWriter, *http.Request, *models.Preference, *models.User, models.Provider)
GraphqlSessionInjectorMiddleware - is a middleware which injects user and session object
func (*Handler) K8SConfigHandler ¶ added in v0.0.4
func (h *Handler) K8SConfigHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
K8SConfigHandler is used for persisting kubernetes config and context info
func (*Handler) KubernetesPingHandler ¶ added in v0.1.6
func (h *Handler) KubernetesPingHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
KubernetesPingHandler - fetches server version to simulate ping
func (*Handler) LoadExtensionFromPackage ¶ added in v0.5.1
func (*Handler) LoadTestHandler ¶ added in v0.0.4
func (h *Handler) LoadTestHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
LoadTestHandler runs the load test with the given parameters
func (*Handler) LoadTestUsingSMPHandler ¶ added in v0.4.7
func (h *Handler) LoadTestUsingSMPHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
LoadTestUsingSMPHandler runs the load test with the given parameters and SMP
func (*Handler) LoginHandler ¶ added in v0.0.4
func (h *Handler) LoginHandler(w http.ResponseWriter, r *http.Request, p models.Provider, fromMiddleWare bool)
LoginHandler redirects user for auth or issues session
func (*Handler) LogoutHandler ¶ added in v0.0.4
LogoutHandler destroys the session and redirects to home.
func (*Handler) MeshAdapterConfigHandler ¶ added in v0.0.6
func (h *Handler) MeshAdapterConfigHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
MeshAdapterConfigHandler is used to persist adapter config
func (*Handler) MeshOpsHandler ¶ added in v0.0.4
func (h *Handler) MeshOpsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
MeshOpsHandler is used to send operations to the adapters
func (*Handler) OAMComponentDetailByIDHandler ¶ added in v0.5.65
func (h *Handler) OAMComponentDetailByIDHandler(rw http.ResponseWriter, r *http.Request)
func (*Handler) OAMComponentDetailsHandler ¶ added in v0.5.65
func (h *Handler) OAMComponentDetailsHandler(rw http.ResponseWriter, r *http.Request)
func (*Handler) OAMRegisterHandler ¶ added in v0.5.1
func (h *Handler) OAMRegisterHandler(rw http.ResponseWriter, r *http.Request)
OAMRegisterHandler handles OAM registry related operations
These operations can be: 1. Adding a workload/trait/scope 2. Getting list of workloads/traits/scopes
func (*Handler) POSTOAMRegisterHandler ¶ added in v0.5.38
POSTOAMRegisterHandler handles registering OMA objects
func (*Handler) PatternFileHandler ¶ added in v0.5.1
func (h *Handler) PatternFileHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
PatternFileHandler handles the requested related to pattern files
func (*Handler) PatternFileRequestHandler ¶ added in v0.5.1
func (h *Handler) PatternFileRequestHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
PatternFileRequestHandler will handle requests of both type GET and POST on the route /api/pattern
func (*Handler) PrometheusConfigHandler ¶ added in v0.0.6
func (h *Handler) PrometheusConfigHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
PrometheusConfigHandler is used for persisting prometheus configuration
func (*Handler) PrometheusPingHandler ¶ added in v0.3.7
func (h *Handler) PrometheusPingHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
PrometheusPingHandler - fetches server version to simulate ping
func (*Handler) PrometheusQueryHandler ¶ added in v0.0.6
func (h *Handler) PrometheusQueryHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
PrometheusQueryHandler handles prometheus queries
func (*Handler) PrometheusQueryRangeHandler ¶ added in v0.0.6
func (h *Handler) PrometheusQueryRangeHandler(w http.ResponseWriter, req *http.Request)
PrometheusQueryRangeHandler handles prometheus range queries
func (*Handler) PrometheusStaticBoardHandler ¶ added in v0.0.6
func (h *Handler) PrometheusStaticBoardHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
PrometheusStaticBoardHandler returns the static board
func (*Handler) ProviderCapabilityHandler ¶ added in v0.5.1
func (h *Handler) ProviderCapabilityHandler( w http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
ProviderCapabilityHandler returns the capabilities.json for the provider
func (*Handler) ProviderComponentsHandler ¶ added in v0.5.1
func (h *Handler) ProviderComponentsHandler( w http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
ProviderComponentsHandler handlers the requests to serve react components from the provider package
func (*Handler) ProviderHandler ¶ added in v0.3.10
func (h *Handler) ProviderHandler(w http.ResponseWriter, r *http.Request)
ProviderHandler - handles the choice of provider
func (*Handler) ProviderMiddleware ¶ added in v0.3.10
ProviderMiddleware is a middleware to validate if a provider is set
func (*Handler) ProviderUIHandler ¶ added in v0.3.10
func (h *Handler) ProviderUIHandler(w http.ResponseWriter, r *http.Request)
ProviderUIHandler - serves providers UI
func (*Handler) ProvidersHandler ¶ added in v0.3.10
func (h *Handler) ProvidersHandler(w http.ResponseWriter, r *http.Request)
ProvidersHandler returns a list of providers
func (*Handler) SavePerformanceProfileHandler ¶ added in v0.5.2
func (h *Handler) SavePerformanceProfileHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
SavePerformanceProfileHandler will save performance profile using the current provider's persistence mechanism
func (*Handler) SaveScheduleHandler ¶ added in v0.5.2
func (h *Handler) SaveScheduleHandler( rw http.ResponseWriter, r *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider, )
SaveScheduleHandler will save schedule using the current provider's persistence mechanism
func (*Handler) SaveSelectedGrafanaBoardsHandler ¶ added in v0.0.6
func (h *Handler) SaveSelectedGrafanaBoardsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, p models.Provider)
SaveSelectedGrafanaBoardsHandler is used to persist board and panel selection
func (*Handler) SaveSelectedPrometheusBoardsHandler ¶ added in v0.0.6
func (h *Handler) SaveSelectedPrometheusBoardsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
SaveSelectedPrometheusBoardsHandler persists selected board and panels
func (*Handler) ScanGrafanaHandler ¶ added in v0.3.13
func (h *Handler) ScanGrafanaHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
ScanGrafanaHandler - fetches Grafana
func (*Handler) ScanPromGrafanaHandler ¶ added in v0.3.13
func (h *Handler) ScanPromGrafanaHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
ScanPromGrafanaHandler - fetches Prometheus and Grafana
func (*Handler) ScanPrometheusHandler ¶ added in v0.4.4
func (h *Handler) ScanPrometheusHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
ScanPrometheusHandler - fetches Prometheus
func (*Handler) ServerVersionHandler ¶ added in v0.3.18
func (h *Handler) ServerVersionHandler(w http.ResponseWriter, r *http.Request)
ServerVersionHandler handles the version api request for the server
func (*Handler) SessionInjectorMiddleware ¶ added in v0.2.0
func (h *Handler) SessionInjectorMiddleware(next func(http.ResponseWriter, *http.Request, *models.Preference, *models.User, models.Provider)) http.Handler
SessionInjectorMiddleware - is a middleware which injects user and session object
func (*Handler) SessionSyncHandler ¶ added in v0.0.6
func (h *Handler) SessionSyncHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
SessionSyncHandler is used to send session data to the UI for initial sync
func (*Handler) TokenHandler ¶ added in v0.3.15
func (h *Handler) TokenHandler(w http.ResponseWriter, r *http.Request, p models.Provider, fromMiddleWare bool)
TokenHandler Receives token from the actual provider
func (*Handler) UserHandler ¶ added in v0.0.4
func (h *Handler) UserHandler(w http.ResponseWriter, req *http.Request, _ *models.Preference, user *models.User, provider models.Provider)
UserHandler returns info about the logged in user
func (*Handler) UserPrefsHandler ¶ added in v0.5.39
func (h *Handler) UserPrefsHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
UserPrefsHandler updates anonymous stats for user or for persisting load test preferences
func (*Handler) UserTestPreferenceDelete ¶ added in v0.4.2
func (h *Handler) UserTestPreferenceDelete(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
UserTestPreferenceDelete deletes the PerformanceTestConfig object
func (*Handler) UserTestPreferenceGet ¶ added in v0.4.2
func (h *Handler) UserTestPreferenceGet(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
UserTestPreferenceGet gets the PerformanceTestConfig object
func (*Handler) UserTestPreferenceHandler ¶ added in v0.4.2
func (h *Handler) UserTestPreferenceHandler(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
UserTestPreferenceHandler is used for persisting load test preferences
func (*Handler) UserTestPreferenceStore ¶ added in v0.4.2
func (h *Handler) UserTestPreferenceStore(w http.ResponseWriter, req *http.Request, prefObj *models.Preference, user *models.User, provider models.Provider)
UserTestPreferenceStore is used for persisting load test preferences
type IDParameterWrapper ¶ added in v0.5.18
type IDParameterWrapper struct { // id for a specific // in: path // required: true ID strfmt.UUID `json:"id"` }
swagger:parameters idGetMesheryPattern idDeleteMesheryPattern idGetSinglePerformanceProfile idDeletePerformanceProfile idGETProfileResults idDeleteSchedules idGetSingleSchedule idDeleteMesheryApplicationFile idGetMesheryApplication idDeleteMesheryFilter idGetMesheryFilter
type MesheryApplicationRequestBody ¶ added in v0.5.26
type MesheryApplicationRequestBody struct { URL string `json:"url,omitempty"` Path string `json:"path,omitempty"` Save bool `json:"save,omitempty"` ApplicationData *models.MesheryApplication `json:"application_data,omitempty"` }
MesheryApplicationRequestBody refers to the type of request body that SaveMesheryApplication would receive
type MesheryFilterRequestBody ¶ added in v0.5.12
type MesheryFilterRequestBody struct { URL string `json:"url,omitempty"` Path string `json:"path,omitempty"` Save bool `json:"save,omitempty"` FilterData *models.MesheryFilter `json:"filter_data,omitempty"` }
MesheryFilterRequestBody refers to the type of request body that SaveMesheryFilter would receive
type MesheryPatternRequestBody ¶ added in v0.5.6
type MesheryPatternRequestBody struct { URL string `json:"url,omitempty"` Path string `json:"path,omitempty"` Save bool `json:"save,omitempty"` PatternData *models.MesheryPattern `json:"pattern_data,omitempty"` CytoscapeJSON string `json:"cytoscape_json,omitempty"` K8sManifest string `json:"k8s_manifest,omitempty"` }
MesheryPatternRequestBody refers to the type of request body that SaveMesheryPattern would receive
type SMPMeshes ¶ added in v0.5.1
type SMPMeshes struct {
AvailableMeshes []string `json:"available_meshes,omitempty"`
}
SMPMeshes defines the JSON payload structure for available meshes api
type UUIDParamsWrapper ¶ added in v0.5.30
Parameter swagger:parameters idDeleteLoadPreferences idGetLoadPreferences
type Version ¶ added in v0.3.18
type Version struct { Build string `json:"build,omitempty"` Latest string `json:"latest,omitempty"` Outdated *bool `json:"outdated,omitempty"` CommitSHA string `json:"commitsha,omitempty"` ReleaseChannel string `json:"release_channel,omitempty"` }
Version defines the Json payload structure for version api\
Source Files ¶
- common_handlers.go
- doc.go
- error.go
- events_streamer.go
- extensions.go
- fetch_results_handler.go
- grafana_handlers.go
- handler_instance.go
- k8sconfig_handler.go
- load_test_handler.go
- load_test_meshes_handler.go
- load_test_preferences_handler.go
- mesh_ops_handlers.go
- meshery_application_handler.go
- meshery_filter_handler.go
- meshery_pattern_handler.go
- middlewares.go
- oam_handler.go
- performance_profiles_handler.go
- prometheus_handlers.go
- provider_handler.go
- remote_components_handler.go
- schedule_handlers.go
- server_spec_handler.go
- session_sync_handler.go
- ui_handler.go
- user_handler.go
- vars.go