Documentation ¶
Index ¶
- func BuildHTTPHandler(r *mux.Router, access *middleware.Access) http.Handler
- func ConsoleConfigRoute(r *mux.Router, handler *ConsoleConfigHandler)
- func MobileAppRoute(r *mux.Router, handler *MobileAppHandler)
- func MobileBuildRoute(r *mux.Router, handler *BuildHandler)
- func MobileServiceRoute(r *mux.Router, handler *MobileServiceHandler)
- func NewRouter() *mux.Router
- func SDKConfigRoute(r *mux.Router, handler *SDKConfigHandler)
- func StaticRoute(handler *StaticHandler)
- func SysRoute(r *mux.Router, handler *SysHandler)
- type BuildHandler
- func (bh *BuildHandler) AddAsset(rw http.ResponseWriter, req *http.Request)
- func (bh *BuildHandler) Build(rw http.ResponseWriter, req *http.Request)
- func (bh *BuildHandler) Create(rw http.ResponseWriter, req *http.Request)
- func (bh *BuildHandler) Download(rw http.ResponseWriter, req *http.Request)
- func (bh *BuildHandler) GenerateDownload(rw http.ResponseWriter, req *http.Request)
- func (bh *BuildHandler) GenerateKeys(rw http.ResponseWriter, req *http.Request)
- type ConsoleConfigHandler
- type MobileAppHandler
- func (m *MobileAppHandler) Create(rw http.ResponseWriter, req *http.Request)
- func (m *MobileAppHandler) Delete(rw http.ResponseWriter, req *http.Request)
- func (m *MobileAppHandler) List(rw http.ResponseWriter, req *http.Request)
- func (m *MobileAppHandler) Read(rw http.ResponseWriter, req *http.Request)
- func (m *MobileAppHandler) Update(rw http.ResponseWriter, req *http.Request)
- type MobileServiceHandler
- func (msh *MobileServiceHandler) Configure(rw http.ResponseWriter, req *http.Request)
- func (msh *MobileServiceHandler) Create(rw http.ResponseWriter, req *http.Request)
- func (msh *MobileServiceHandler) Deconfigure(rw http.ResponseWriter, req *http.Request)
- func (msh *MobileServiceHandler) Delete(rw http.ResponseWriter, req *http.Request)
- func (msh *MobileServiceHandler) GetMetrics(rw http.ResponseWriter, req *http.Request)
- func (msh *MobileServiceHandler) List(rw http.ResponseWriter, req *http.Request)
- func (msh *MobileServiceHandler) Read(rw http.ResponseWriter, req *http.Request)
- type SDKConfigHandler
- type StaticHandler
- type SysHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHTTPHandler ¶
BuildHTTPHandler puts together our HTTPHandler
func ConsoleConfigRoute ¶
func ConsoleConfigRoute(r *mux.Router, handler *ConsoleConfigHandler)
func MobileAppRoute ¶
func MobileAppRoute(r *mux.Router, handler *MobileAppHandler)
MobileAppRoute configure and setup the /mobileapp route. The middleware.Builder is responsible for building per request instances of clients
func MobileBuildRoute ¶
func MobileBuildRoute(r *mux.Router, handler *BuildHandler)
MobileBuildRoute sets up the /build route
func MobileServiceRoute ¶
func MobileServiceRoute(r *mux.Router, handler *MobileServiceHandler)
MobileServiceRoute configures and sets up the /mobileservice routes
func SDKConfigRoute ¶
func SDKConfigRoute(r *mux.Router, handler *SDKConfigHandler)
SDKConfigRoute configures and sets up the /sdk routes
func StaticRoute ¶
func StaticRoute(handler *StaticHandler)
StaticRoute configures & sets up the /console route.
func SysRoute ¶
func SysRoute(r *mux.Router, handler *SysHandler)
SysRoute congifures and sets up the /sys/* route
Types ¶
type BuildHandler ¶
type BuildHandler struct {
// contains filtered or unexported fields
}
func NewBuildHandler ¶
func NewBuildHandler(br mobile.BuildRepoBuilder, buildService *app.Build, logger *logrus.Logger) *BuildHandler
NewBuildHandler returns a configured build handler
func (*BuildHandler) AddAsset ¶
func (bh *BuildHandler) AddAsset(rw http.ResponseWriter, req *http.Request)
func (*BuildHandler) Build ¶
func (bh *BuildHandler) Build(rw http.ResponseWriter, req *http.Request)
func (*BuildHandler) Create ¶
func (bh *BuildHandler) Create(rw http.ResponseWriter, req *http.Request)
Create will parse the create request and hand it off to app build service
func (*BuildHandler) Download ¶
func (bh *BuildHandler) Download(rw http.ResponseWriter, req *http.Request)
func (*BuildHandler) GenerateDownload ¶
func (bh *BuildHandler) GenerateDownload(rw http.ResponseWriter, req *http.Request)
func (*BuildHandler) GenerateKeys ¶
func (bh *BuildHandler) GenerateKeys(rw http.ResponseWriter, req *http.Request)
GenerateKeys will parse the request and hand it off to the service logic to setup a new public private key pair
type ConsoleConfigHandler ¶
type ConsoleConfigHandler struct {
// contains filtered or unexported fields
}
ConsoleConfigHandler handle console config route
func NewConsoleConfigHandler ¶
func NewConsoleConfigHandler(logger *logrus.Logger, k8sHost, k8sAuthorizeEndpoint, namespace string) *ConsoleConfigHandler
NewConsoleConfigHandler returns a new console config handler
func (ConsoleConfigHandler) Config ¶
func (cch ConsoleConfigHandler) Config(res http.ResponseWriter, req *http.Request)
type MobileAppHandler ¶
type MobileAppHandler struct {
// contains filtered or unexported fields
}
MobileAppHandler handle mobile actions
func NewMobileAppHandler ¶
func NewMobileAppHandler(logger *logrus.Logger, app mobile.AppRepoBuilder, appService *app.Service) *MobileAppHandler
NewMobileAppHandler returns a new mobile app handler
func (*MobileAppHandler) Create ¶
func (m *MobileAppHandler) Create(rw http.ResponseWriter, req *http.Request)
Create creates a mobileapp
func (*MobileAppHandler) Delete ¶
func (m *MobileAppHandler) Delete(rw http.ResponseWriter, req *http.Request)
Delete will delete a mobile app
func (*MobileAppHandler) List ¶
func (m *MobileAppHandler) List(rw http.ResponseWriter, req *http.Request)
List will list mobile apps
func (*MobileAppHandler) Read ¶
func (m *MobileAppHandler) Read(rw http.ResponseWriter, req *http.Request)
Read reads a mobileapp based on an id
func (*MobileAppHandler) Update ¶
func (m *MobileAppHandler) Update(rw http.ResponseWriter, req *http.Request)
Update will update a mobile app
type MobileServiceHandler ¶
type MobileServiceHandler struct {
// contains filtered or unexported fields
}
MobileServiceHandler handles endpoints associated with mobile enabled services. It will list services in the namespace that it knows about so that they can be rendered in the MCP
func NewMobileServiceHandler ¶
func NewMobileServiceHandler(logger *logrus.Logger, integrationService *integration.MobileService, mg mobile.MetricsGetter, serviceRepoBuilder mobile.ServiceRepoBuilder, userRepoBuilder mobile.UserRepoBuilder, authCheckerBuilder mobile.AuthCheckerBuilder, sccClientBuilder mobile.SCClientBuilder, namespace string) *MobileServiceHandler
NewMobileServiceHandler returns a new MobileServiceHandler
func (*MobileServiceHandler) Configure ¶
func (msh *MobileServiceHandler) Configure(rw http.ResponseWriter, req *http.Request)
Configure configures components binding
func (*MobileServiceHandler) Create ¶
func (msh *MobileServiceHandler) Create(rw http.ResponseWriter, req *http.Request)
Create will create a mobile service
func (*MobileServiceHandler) Deconfigure ¶
func (msh *MobileServiceHandler) Deconfigure(rw http.ResponseWriter, req *http.Request)
Deconfigure removes configuration for components binding
func (*MobileServiceHandler) Delete ¶
func (msh *MobileServiceHandler) Delete(rw http.ResponseWriter, req *http.Request)
func (*MobileServiceHandler) GetMetrics ¶
func (msh *MobileServiceHandler) GetMetrics(rw http.ResponseWriter, req *http.Request)
func (*MobileServiceHandler) List ¶
func (msh *MobileServiceHandler) List(rw http.ResponseWriter, req *http.Request)
List allows you to list mobile services
func (*MobileServiceHandler) Read ¶
func (msh *MobileServiceHandler) Read(rw http.ResponseWriter, req *http.Request)
Read details of a specific service provided in the name URL parameter
type SDKConfigHandler ¶
type SDKConfigHandler struct {
// contains filtered or unexported fields
}
SDKConfigHandler handles sdk configuration requests
func NewSDKConfigHandler ¶
func NewSDKConfigHandler(logger *logrus.Logger, service *integration.SDKService, serviceRepoBuilder mobile.ServiceRepoBuilder, repoBuilder mobile.AppRepoBuilder) *SDKConfigHandler
NewSDKConfigHandler returns an sdk handler
func (*SDKConfigHandler) Read ¶
func (sdk *SDKConfigHandler) Read(rw http.ResponseWriter, req *http.Request)
type StaticHandler ¶
type StaticHandler struct {
// contains filtered or unexported fields
}
StaticHandler handle static routes
func NewStaticHandler ¶
func NewStaticHandler(logger *logrus.Logger, staticDirectory string, prefix string, fallback string) *StaticHandler
NewStaticHandler returns a new static handler
func (StaticHandler) Static ¶
func (sh StaticHandler) Static(res http.ResponseWriter, req *http.Request)
type SysHandler ¶
type SysHandler struct {
// contains filtered or unexported fields
}
SysHandler handles the /sys route
func NewSysHandler ¶
func NewSysHandler(logger *logrus.Logger) *SysHandler
func (*SysHandler) Health ¶
func (sh *SysHandler) Health(rw http.ResponseWriter, req *http.Request)
Health tells us if parts of the system are ok
func (*SysHandler) Ping ¶
func (sh *SysHandler) Ping(rw http.ResponseWriter, req *http.Request)
Ping just returns a 200 ok