controllers

package
v0.0.0-...-9b02830 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIAnalytics

func APIAnalytics(c *routing.Context) error

func ActivePlugins

func ActivePlugins(c *routing.Context) error

func AddPermissionToApplicationGroupHandler

func AddPermissionToApplicationGroupHandler(c *routing.Context) error

func AddServiceToGroupHandler

func AddServiceToGroupHandler(c *routing.Context) error

AddServiceToGroupHandler handle POST /service-groups

func AppGroupsMatches

func AppGroupsMatches(c *routing.Context) error

AppGroupsMatches handles GET /apps-groups/matches api endpoint. Finds possible matches for the group. Only available on mongo

func ApplicationGroupAnalytics

func ApplicationGroupAnalytics(c *routing.Context) error

func AssociateServiceToAppGroup

func AssociateServiceToAppGroup(c *routing.Context) error

AssociateServiceToAppGroup handles POST /apps-groups/<group_id>/<service_id> api endpoint

func AuthorizeTokenHandler

func AuthorizeTokenHandler(c *routing.Context) error

func AutoDeRegisterHandler

func AutoDeRegisterHandler(c *routing.Context) error

AutoDeRegisterHandler handles auto deregister post request

func AutoRegisterHandler

func AutoRegisterHandler(c *routing.Context) error

AutoRegisterHandler handles auto register post request

func ContainsService

func ContainsService(servicesList []service.Service, permission user_permission_models.UserPermission) bool

func CreateAppGroup

func CreateAppGroup(c *routing.Context) error

CreateAppGroup handle POST /apps-groups

func CreateUserHandler

func CreateUserHandler(c *routing.Context) error

CreateUserHandler handle POST /users

func DeassociateServiceFromApplicationGroup

func DeassociateServiceFromApplicationGroup(c *routing.Context) error

DeassociateServiceFromApplicationGroup handles DELETE /apps-groups/<group_id>/<service_id> api endpoint

func DeassociateServiceFromGroup

func DeassociateServiceFromGroup(c *routing.Context) error

DeassociateServiceFromGroup handle DELETE /

func DeleteAppGroup

func DeleteAppGroup(c *routing.Context) error

DeleteAppGroup handles DELETE /app-groups/<group_id> api endpoint

func DeleteEndpointHandler

func DeleteEndpointHandler(c *routing.Context) error

DeleteEndpointHandler handles DELETE /service/<service_id> request

func FindAppGroupForService

func FindAppGroupForService(c *routing.Context) error

FindAppGroupForService handles GET /apps-groups/search/<service_id> api endpoint. Finds the group for the given service id

func FindUsersHandler

func FindUsersHandler(c *routing.Context) error

FindUsersHandler handle GET /users

func GetAppGroupByID

func GetAppGroupByID(c *routing.Context) error

GetAppGroupByID handles GET /app-groups/<group_id> api endpoint

func GetAppGroups

func GetAppGroups(c *routing.Context) error

GetAppGroups handle GET /apps-groups

func GetEndpointHandler

func GetEndpointHandler(c *routing.Context) error

GetEndpointHandler handles GET /endpoint request

func GetHtml

func GetHtml(url string) (*http.Response, string, error)

func GetServiceDocumentationUrl

func GetServiceDocumentationUrl(serviceIdentifier string) (string, error)

func GetServiceGroupHandler

func GetServiceGroupHandler(c *routing.Context) error

GetServiceGroupHandler handle GET /

func GetTokenHandler

func GetTokenHandler(c *routing.Context) error

func GetUserHandler

func GetUserHandler(c *routing.Context) error

GetUserHandler handle GET /user/<username>

func GetUserPermissionsHandler

func GetUserPermissionsHandler(c *routing.Context) error

func HandleServiceDocumentationJSRequest

func HandleServiceDocumentationJSRequest(c *routing.Context) error

func HandleServiceDocumentationRequest

func HandleServiceDocumentationRequest(c *routing.Context) error

func InternalServiceDiscovery

func InternalServiceDiscovery() *servicediscovery.ServiceDiscovery

InternalServiceDiscovery return service discovery object as internal, with access to everything

func InvalidateCache

func InvalidateCache(c *routing.Context) error

func ListPluginsAvailable

func ListPluginsAvailable(c *routing.Context) error

func ListServiceGroupsHandler

func ListServiceGroupsHandler(c *routing.Context) error

ListServiceGroupsHandler handle GET /service-groups

func ListServicesHandler

func ListServicesHandler(c *routing.Context) error

ListServicesHandler handles /services get request

func Logs

func Logs(c *routing.Context) error

func ManageServiceHandler

func ManageServiceHandler(c *routing.Context) error

ManageServiceHandler call management service

func ManageServiceTypesHandler

func ManageServiceTypesHandler(c *routing.Context) error

ManageServiceTypesHandler call management service

func MeHandler

func MeHandler(c *routing.Context) error

func NormalizeServices

func NormalizeServices(c *routing.Context) error

NormalizeServices normalizes all services so theyt match the specified rules

func PermissionsServiceName

func PermissionsServiceName() string

func PluginsServiceName

func PluginsServiceName() string

func ProfileGApiUsage

func ProfileGApiUsage(c *routing.Context) error

func RegisterHandler

func RegisterHandler(c *routing.Context) error

RegisterHandler handles register post request

func RegisterServiceGroupHandler

func RegisterServiceGroupHandler(c *routing.Context) error

RegisterServiceGroupHandler handle POST /service-groups

func ReloadServices

func ReloadServices(c *routing.Context) error

func RemovePermissionFromApplicationGroupHandler

func RemovePermissionFromApplicationGroupHandler(c *routing.Context) error

func RemoveServiceGroup

func RemoveServiceGroup(c *routing.Context) error

RemoveServiceGroup handle DELETE /

func ServiceDiscovery

func ServiceDiscovery(c *routing.Context) *servicediscovery.ServiceDiscovery

ServiceDiscovery return service discovery object with user context, only with access to user's resources

func ServiceDiscoveryServiceName

func ServiceDiscoveryServiceName() string

ServiceDiscoveryServiceName Name of group of services to use on log storage

func ServiceNotFound

func ServiceNotFound(c *routing.Context) error

ServiceNotFound return Service not found response

func UngroupedApps

func UngroupedApps(c *routing.Context) error

UngroupedApps handles GET /apps-groups/ungrouped api endpoint. Gets all services that don't have an application group

func UpdateAppGroup

func UpdateAppGroup(c *routing.Context) error

UpdateAppGroup handles PUT /app-groups/<group_id> api endpoint

func UpdateHandler

func UpdateHandler(c *routing.Context) error

UpdateHandler updates the service

func UpdateServiceGroup

func UpdateServiceGroup(c *routing.Context) error

UpdateServicecGroup handle PUT /

func UpdateUserByAdminHandler

func UpdateUserByAdminHandler(c *routing.Context) error

UpdateUserByAdminHandler handle PUT /users

func UpdateUserHandler

func UpdateUserHandler(c *routing.Context) error

UpdateUserHandler handle PUT /users

func UpdateUserPermissionHandler

func UpdateUserPermissionHandler(c *routing.Context) error

func UsersServiceName

func UsersServiceName() string

UsersServiceName returns the name of this controller service group

Types

This section is empty.

Jump to

Keyboard shortcuts

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