handler

package
v0.0.0-...-cd00529 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// key in request context holding name & connection details of requestor
	RequestorKey = "Requestor"
)

Variables

This section is empty.

Functions

func ToKeySlice

func ToKeySlice(keys types.Keys) *[]Key

func ToRolePermissionsResponse

func ToRolePermissionsResponse(permissions types.Permissions) *[]RolePermissions

Types

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

AuthHandler provides authentication and authorization middleware

func (*AuthHandler) AuthenticateAndAuthorize

func (a *AuthHandler) AuthenticateAndAuthorize(c *gin.Context)

AuthenticateAndAuthorize validates username and password supplied via HTTP Basic authentication and checks whether requested path is allowed according to the assigned roles of the user

func (*AuthHandler) IsPathAllowedByUser

func (a *AuthHandler) IsPathAllowedByUser(user *types.User, method, path string) (
	roleName string, e types.Error)

IsPathAllowedByUser checks whether user is allowed to access a path, if allowed return name of allowing role

func (*AuthHandler) ValidatePassword

func (a *AuthHandler) ValidatePassword(username, password string) (user *types.User, e types.Error)

ValidatePassword confirm if user supplied a valid password

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler has implements all methods of oapi-codegen's ServiceInterface

func New

func New(router *gin.Engine, db *db.Database, s *service.Service,
	applicationName string, disableAPIAuthentication bool, logger *zap.Logger) *Handler

New sets up all API endpoint routes

func (*Handler) DeleteV1ClustersClusterName

func (h *Handler) DeleteV1ClustersClusterName(c *gin.Context, clusterName ClusterName)

deletes an cluster (DELETE /v1/clusters/{cluster_name})

func (*Handler) DeleteV1ClustersClusterNameAttributesAttributeName

func (h *Handler) DeleteV1ClustersClusterNameAttributesAttributeName(
	c *gin.Context, clusterName ClusterName, attributeName AttributeName)

deletes one attribute of an cluster (DELETE /v1/clusters/{cluster_name}/attributes/{attribute_name})

func (*Handler) DeleteV1ListenersListenerName

func (h *Handler) DeleteV1ListenersListenerName(c *gin.Context, listenerName ListenerName)

deletes an listener (DELETE /v1/listeners/{listener_name})

func (*Handler) DeleteV1ListenersListenerNameAttributesAttributeName

func (h *Handler) DeleteV1ListenersListenerNameAttributesAttributeName(c *gin.Context,
	listenerName ListenerName, attributeName AttributeName)

deletes one attribute of an listener (DELETE /v1/listeners/{listener_name}/attributes/{attribute_name})

func (*Handler) DeleteV1OrganizationsOrganizationName

func (h *Handler) DeleteV1OrganizationsOrganizationName(c *gin.Context, organizationName OrganizationName)

deletes an organization (DELETE /v1/organizations/{organization_name})

func (*Handler) DeleteV1OrganizationsOrganizationNameApiproductsApiproductName

func (h *Handler) DeleteV1OrganizationsOrganizationNameApiproductsApiproductName(
	c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName)

deletes an apiproduct (DELETE /v1/organizations/{organization_name}/apiproducts/{apiproduct_name})

func (*Handler) DeleteV1OrganizationsOrganizationNameApiproductsApiproductNameAttributesAttributeName

func (h *Handler) DeleteV1OrganizationsOrganizationNameApiproductsApiproductNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName, attributeName AttributeName)

deletes one attribute of an apiproduct (DELETE /v1/organizations/{organization_name}/apiproducts/{apiproduct_name}/attributes/{attribute_name})

func (*Handler) DeleteV1OrganizationsOrganizationNameCompaniesCompanyName

func (h *Handler) DeleteV1OrganizationsOrganizationNameCompaniesCompanyName(
	c *gin.Context, organizationName OrganizationName, companyName CompanyName)

deletes an company (DELETE /v1/organizations/{organization_name}/companies/{company_name})

func (*Handler) DeleteV1OrganizationsOrganizationNameCompaniesCompanyNameAttributesAttributeName

func (h *Handler) DeleteV1OrganizationsOrganizationNameCompaniesCompanyNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, companyName CompanyName, attributeName AttributeName)

deletes one attribute of an company (DELETE /v1/organizations/{organization_name}/companies/{company_name}/attributes/{attribute_name})

func (*Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddress

func (h *Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddress(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress)

deletes a developer (DELETE /v1/organizations/{organization_name}/developers/{developer_emailaddress})

func (*Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppName

func (h *Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName)

(DELETE /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name})

func (*Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributesAttributeName

func (h *Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, attributeName AttributeName)

deletes one attriubte of an application (DELETE /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/attributes/{attribute_name})´

func (*Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKey

func (h *Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKey(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey)

Removes key from application (DELETE /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key})

func (*Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyApiproductsApiproductName

func (h *Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyApiproductsApiproductName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey, apiproductName ApiproductName)

Removes apiproduct from key (DELETE /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key}/apiproducts/{apiproduct_name})

func (*Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributesAttributeName

func (h *Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributesAttributeName(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey, attributeName AttributeName)

Delete key attribute (DELETE /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key}/attributes/{attribute_name})

func (*Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributesAttributeName

func (h *Handler) DeleteV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, attributeName AttributeName)

deletes one attriubte of a developer (DELETE /v1/organizations/{organization_name}/developers/{developer_emailaddress}/attributes/{attribute_name})

func (*Handler) DeleteV1RolesRoleName

func (h *Handler) DeleteV1RolesRoleName(c *gin.Context, roleName RoleName)

deleteRole deletes a role (DELETE /v1/roles/{role_name})

func (*Handler) DeleteV1RoutesRouteName

func (h *Handler) DeleteV1RoutesRouteName(c *gin.Context, routeName RouteName)

deletes an route (DELETE /v1/routes/{route_name})

func (*Handler) DeleteV1RoutesRouteNameAttributesAttributeName

func (h *Handler) DeleteV1RoutesRouteNameAttributesAttributeName(
	c *gin.Context, routeName RouteName, attributeName AttributeName)

deletes one attribute of an route (DELETE /v1/routes/{route_name}/attributes/{attribute_name})

func (*Handler) DeleteV1UsersUserName

func (h *Handler) DeleteV1UsersUserName(c *gin.Context, userName UserName)

deletes an user (DELETE /v1/users/{user_name})

func (*Handler) GetV1AuditOrganizationsOrganizationName

func (h *Handler) GetV1AuditOrganizationsOrganizationName(c *gin.Context, organizationName OrganizationName, params GetV1AuditOrganizationsOrganizationNameParams)

GetV1AuditOrganizationsOrganizationName retrieves audit records of organization. (GET /v1/audit/organizations/{organization_name})

func (*Handler) GetV1AuditOrganizationsOrganizationNameApiproductsApiproductName

func (h *Handler) GetV1AuditOrganizationsOrganizationNameApiproductsApiproductName(c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName, params GetV1AuditOrganizationsOrganizationNameApiproductsApiproductNameParams)

GetV1AuditOrganizationsOrganizationNameApiproductsApiproductName retrieves audit records of apiproduct. (GET /v1/audit/organizations/{organization_name}/apiproducts/{apiproduct_name})

func (*Handler) GetV1AuditOrganizationsOrganizationNameDevelopersDeveloperId

func (h *Handler) GetV1AuditOrganizationsOrganizationNameDevelopersDeveloperId(c *gin.Context, organizationName OrganizationName, developerId DeveloperId, params GetV1AuditOrganizationsOrganizationNameDevelopersDeveloperIdParams)

GetV1AuditOrganizationsOrganizationNameDevelopersDeveloperId retrieve audit records of developer. (GET /v1/audit/organizations/{organization_name}/developers/{developer_id})

func (*Handler) GetV1AuditOrganizationsOrganizationNameDevelopersDeveloperIdAppsAppId

func (h *Handler) GetV1AuditOrganizationsOrganizationNameDevelopersDeveloperIdAppsAppId(c *gin.Context, organizationName OrganizationName, developerId DeveloperId, appId AppId, params GetV1AuditOrganizationsOrganizationNameDevelopersDeveloperIdAppsAppIdParams)

Retrieve audit records of application. (GET /v1/audit/organizations/{organization_name}/developers/{developer_id}/apps/{app_id})

func (*Handler) GetV1AuditUsersUserName

func (h *Handler) GetV1AuditUsersUserName(c *gin.Context, userName UserName, params GetV1AuditUsersUserNameParams)

GetV1AuditUsersUserName retrieves audit records of user (GET /v1/audit/users/{user_name})

func (*Handler) GetV1Clusters

func (h *Handler) GetV1Clusters(c *gin.Context)

returns all clusters (GET /v1/clusters)

func (*Handler) GetV1ClustersClusterName

func (h *Handler) GetV1ClustersClusterName(c *gin.Context, clusterName ClusterName)

returns full details of one cluster (GET /v1/clusters/{cluster_name})

func (*Handler) GetV1ClustersClusterNameAttributes

func (h *Handler) GetV1ClustersClusterNameAttributes(c *gin.Context, clusterName ClusterName)

returns attributes of a cluster (GET /v1/clusters/{cluster_name}/attributes)

func (*Handler) GetV1ClustersClusterNameAttributesAttributeName

func (h *Handler) GetV1ClustersClusterNameAttributesAttributeName(
	c *gin.Context, clusterName ClusterName, attributeName AttributeName)

returns one attribute of an cluster (GET /v1/clusters/{cluster_name}/attributes/{attribute_name})

func (*Handler) GetV1Listeners

func (h *Handler) GetV1Listeners(c *gin.Context)

returns all listeners (GET /v1/listeners)

func (*Handler) GetV1ListenersListenerName

func (h *Handler) GetV1ListenersListenerName(c *gin.Context, listenerName ListenerName)

returns full details of one listener (GET /v1/listeners/{listener_name})

func (*Handler) GetV1ListenersListenerNameAttributes

func (h *Handler) GetV1ListenersListenerNameAttributes(c *gin.Context, listenerName ListenerName)

returns attributes of a listener (GET /v1/listeners/{listener_name}/attributes)

func (*Handler) GetV1ListenersListenerNameAttributesAttributeName

func (h *Handler) GetV1ListenersListenerNameAttributesAttributeName(c *gin.Context,
	listenerName ListenerName, attributeName AttributeName)

returns one attribute of an listener (GET /v1/listeners/{listener_name}/attributes/{attribute_name})

func (*Handler) GetV1Organizations

func (h *Handler) GetV1Organizations(c *gin.Context)

returns all organizations (GET /v1/organizations)

func (*Handler) GetV1OrganizationsOrganizationName

func (h *Handler) GetV1OrganizationsOrganizationName(c *gin.Context, organizationName OrganizationName)

returns a organization (GET /v1/organizations/{organization_name})

func (*Handler) GetV1OrganizationsOrganizationNameApiproducts

func (h *Handler) GetV1OrganizationsOrganizationNameApiproducts(c *gin.Context,
	organizationName OrganizationName, params GetV1OrganizationsOrganizationNameApiproductsParams)

returns all apiproducts (GET /v1/organizations/{organization_name}/apiproducts)

func (*Handler) GetV1OrganizationsOrganizationNameApiproductsApiproductName

func (h *Handler) GetV1OrganizationsOrganizationNameApiproductsApiproductName(
	c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName)

returns full details of one apiproduct (GET /v1/organizations/{organization_name}/apiproducts/{apiproduct_name})

func (*Handler) GetV1OrganizationsOrganizationNameApiproductsApiproductNameAttributes

func (h *Handler) GetV1OrganizationsOrganizationNameApiproductsApiproductNameAttributes(
	c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName)

returns attributes of a apiproduct (GET /v1/organizations/{organization_name}/apiproducts/{apiproduct_name}/attributes)

func (*Handler) GetV1OrganizationsOrganizationNameApiproductsApiproductNameAttributesAttributeName

func (h *Handler) GetV1OrganizationsOrganizationNameApiproductsApiproductNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName, attributeName AttributeName)

returns one attribute of an apiproduct (GET /v1/organizations/{organization_name}/apiproducts/{apiproduct_name}/attributes/{attribute_name})

func (*Handler) GetV1OrganizationsOrganizationNameApps

func (h *Handler) GetV1OrganizationsOrganizationNameApps(c *gin.Context,
	organizationName OrganizationName, params GetV1OrganizationsOrganizationNameAppsParams)

returns all developer apps (GET /v1/organizations/{organization_name}/apps)

func (*Handler) GetV1OrganizationsOrganizationNameAppsAppId

func (h *Handler) GetV1OrganizationsOrganizationNameAppsAppId(c *gin.Context,
	organizationName OrganizationName, appId AppId)

returns one app identified by appId of a developer (GET /v1/organizations/{organization_name}/apps/{app_id})

func (*Handler) GetV1OrganizationsOrganizationNameCompanies

func (h *Handler) GetV1OrganizationsOrganizationNameCompanies(c *gin.Context,
	organizationName OrganizationName, params GetV1OrganizationsOrganizationNameCompaniesParams)

Retrieve companies (GET /v1/organizations/{organization_name}/companies)

func (*Handler) GetV1OrganizationsOrganizationNameCompaniesCompanyName

func (h *Handler) GetV1OrganizationsOrganizationNameCompaniesCompanyName(
	c *gin.Context, organizationName OrganizationName, companyName CompanyName)

returns full details of one company (GET /v1/organizations/{organization_name}/companies/{company_name})

func (*Handler) GetV1OrganizationsOrganizationNameCompaniesCompanyNameAttributes

func (h *Handler) GetV1OrganizationsOrganizationNameCompaniesCompanyNameAttributes(
	c *gin.Context, organizationName OrganizationName, companyName CompanyName)

returns attributes of a company (GET /v1/organizations/{organization_name}/companies/{company_name}/attributes)

func (*Handler) GetV1OrganizationsOrganizationNameCompaniesCompanyNameAttributesAttributeName

func (h *Handler) GetV1OrganizationsOrganizationNameCompaniesCompanyNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, companyName CompanyName, attributeName AttributeName)

returns one attribute of an company (GET /v1/organizations/{organization_name}/companies/{company_name}/attributes/{attribute_name})

func (*Handler) GetV1OrganizationsOrganizationNameDevelopers

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopers(c *gin.Context,
	organizationName OrganizationName, params GetV1OrganizationsOrganizationNameDevelopersParams)

return all developers (GET /v1/organizations/{organization_name}/developers)

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddress

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddress(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress)

returns full details of one developer (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress})

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressApps

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressApps(c *gin.Context,
	organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, params GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsParams)

returns names of all application of a developer (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps)

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppName

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName)

returns one app identified by name of a developer (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name})

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributes

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributes(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName)

returns attributes of an application (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/attributes)

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributesAttributeName

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, attributeName AttributeName)

returns one attribute of an application (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/attributes/{attribute_name})

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeys

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeys(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName)

returns all keys of developer application (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys)

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKey

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKey(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey)

returns one key of one developer application (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key})

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributes

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributes(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey)

Retrieve key attributes (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key}/attributes)

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributesAttributeName

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributesAttributeName(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey, attributeName AttributeName)

Retrieve key attribute (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key}/attributes/{attribute_name})

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributes

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributes(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress)

returns attributes of a developer (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/attributes)

func (*Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributesAttributeName

func (h *Handler) GetV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, attributeName AttributeName)

returns one attribute of a developer (GET /v1/organizations/{organization_name}/developers/{developer_emailaddress}/attributes/{attribute_name})

func (*Handler) GetV1Roles

func (h *Handler) GetV1Roles(c *gin.Context)

returns all roles (GET /v1/roles)

func (*Handler) GetV1RolesRoleName

func (h *Handler) GetV1RolesRoleName(c *gin.Context, roleName RoleName)

returns details of a role (GET /v1/roles/{role_name})

func (*Handler) GetV1RolesRoleNameUsers

func (h *Handler) GetV1RolesRoleNameUsers(c *gin.Context, roleName RoleName)

Retrieve users assigned to role (GET /v1/roles/{role_name}/users)

func (*Handler) GetV1Routes

func (h *Handler) GetV1Routes(c *gin.Context)

returns all routes (GET /v1/routes)

func (*Handler) GetV1RoutesRouteName

func (h *Handler) GetV1RoutesRouteName(c *gin.Context, routeName RouteName)

returns full details of one route (GET /v1/routes/{route_name})

func (*Handler) GetV1RoutesRouteNameAttributes

func (h *Handler) GetV1RoutesRouteNameAttributes(c *gin.Context, routeName RouteName)

returns attributes of a route (GET /v1/routes/{route_name}/attributes)

func (*Handler) GetV1RoutesRouteNameAttributesAttributeName

func (h *Handler) GetV1RoutesRouteNameAttributesAttributeName(
	c *gin.Context, routeName RouteName, attributeName AttributeName)

returns one attribute of an route (GET /v1/routes/{route_name}/attributes/{attribute_name})

func (*Handler) GetV1Users

func (h *Handler) GetV1Users(c *gin.Context)

returns all users (GET /v1/users)

func (*Handler) GetV1UsersUserName

func (h *Handler) GetV1UsersUserName(c *gin.Context, userName UserName)

returns a user (GET /v1/users/{user_name})

func (*Handler) PostV1Clusters

func (h *Handler) PostV1Clusters(c *gin.Context)

creates a new cluster (POST /v1/clusters)

func (*Handler) PostV1ClustersClusterName

func (h *Handler) PostV1ClustersClusterName(c *gin.Context, clusterName ClusterName)

(POST /v1/clusters/{cluster_name})

func (*Handler) PostV1ClustersClusterNameAttributes

func (h *Handler) PostV1ClustersClusterNameAttributes(c *gin.Context, clusterName ClusterName)

replaces attributes of an cluster (POST /v1/clusters/{cluster_name}/attributes)

func (*Handler) PostV1ClustersClusterNameAttributesAttributeName

func (h *Handler) PostV1ClustersClusterNameAttributesAttributeName(
	c *gin.Context, clusterName ClusterName, attributeName AttributeName)

updates an attribute of an cluster (POST /v1/clusters/{cluster_name}/attributes/{attribute_name})

func (*Handler) PostV1Listeners

func (h *Handler) PostV1Listeners(c *gin.Context)

creates a new listener (POST /v1/listeners)

func (*Handler) PostV1ListenersListenerName

func (h *Handler) PostV1ListenersListenerName(c *gin.Context, listenerName ListenerName)

Updates existing listener (POST /v1/listeners/{listener_name})

func (*Handler) PostV1ListenersListenerNameAttributes

func (h *Handler) PostV1ListenersListenerNameAttributes(c *gin.Context, listenerName ListenerName)

replaces attributes of an listener (POST /v1/listeners/{listener_name}/attributes)

func (*Handler) PostV1ListenersListenerNameAttributesAttributeName

func (h *Handler) PostV1ListenersListenerNameAttributesAttributeName(c *gin.Context,
	listenerName ListenerName, attributeName AttributeName)

updates an attribute of an listener (POST /v1/listeners/{listener_name}/attributes/{attribute_name})

func (*Handler) PostV1Organizations

func (h *Handler) PostV1Organizations(c *gin.Context)

creates an organization (POST /v1/organizations)

func (*Handler) PostV1OrganizationsOrganizationName

func (h *Handler) PostV1OrganizationsOrganizationName(c *gin.Context, organizationName OrganizationName)

updates an existing organization (POST /v1/organizations/{organization_name})

func (*Handler) PostV1OrganizationsOrganizationNameApiproducts

func (h *Handler) PostV1OrganizationsOrganizationNameApiproducts(c *gin.Context,
	organizationName OrganizationName)

creates a new apiproduct (POST /v1/organizations/{organization_name}/apiproducts)

func (*Handler) PostV1OrganizationsOrganizationNameApiproductsApiproductName

func (h *Handler) PostV1OrganizationsOrganizationNameApiproductsApiproductName(
	c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName,
	params PostV1OrganizationsOrganizationNameApiproductsApiproductNameParams)

updates existing apiproduct (POST /v1/organizations/{organization_name}/apiproducts/{apiproduct_name})

func (*Handler) PostV1OrganizationsOrganizationNameApiproductsApiproductNameAttributes

func (h *Handler) PostV1OrganizationsOrganizationNameApiproductsApiproductNameAttributes(
	c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName)

replaces attributes of an apiproduct (POST /v1/organizations/{organization_name}/apiproducts/{apiproduct_name}/attributes)

func (*Handler) PostV1OrganizationsOrganizationNameApiproductsApiproductNameAttributesAttributeName

func (h *Handler) PostV1OrganizationsOrganizationNameApiproductsApiproductNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, apiproductName ApiproductName, attributeName AttributeName)

updates an attribute of an apiproduct (POST /v1/organizations/{organization_name}/apiproducts/{apiproduct_name}/attributes/{attribute_name})

func (*Handler) PostV1OrganizationsOrganizationNameCompanies

func (h *Handler) PostV1OrganizationsOrganizationNameCompanies(c *gin.Context,
	organizationName OrganizationName)

creates a new company (POST /v1/organizations/{organization_name}/companies)

func (*Handler) PostV1OrganizationsOrganizationNameCompaniesCompanyName

func (h *Handler) PostV1OrganizationsOrganizationNameCompaniesCompanyName(
	c *gin.Context, organizationName OrganizationName, companyName CompanyName,
	params PostV1OrganizationsOrganizationNameCompaniesCompanyNameParams)

updates existing company (POST /v1/organizations/{organization_name}/companies/{company_name})

func (*Handler) PostV1OrganizationsOrganizationNameCompaniesCompanyNameAttributes

func (h *Handler) PostV1OrganizationsOrganizationNameCompaniesCompanyNameAttributes(
	c *gin.Context, organizationName OrganizationName, companyName CompanyName)

replaces attributes of an company (POST /v1/organizations/{organization_name}/companies/{company_name}/attributes)

func (*Handler) PostV1OrganizationsOrganizationNameCompaniesCompanyNameAttributesAttributeName

func (h *Handler) PostV1OrganizationsOrganizationNameCompaniesCompanyNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, companyName CompanyName, attributeName AttributeName)

updates an attribute of an company (POST /v1/organizations/{organization_name}/companies/{company_name}/attributes/{attribute_name})

func (*Handler) PostV1OrganizationsOrganizationNameDevelopers

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopers(c *gin.Context,
	organizationName OrganizationName)

creates a new developer (POST /v1/organizations/{organization_name}/developers)

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddress

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddress(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, params PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressParams)

updates existing developer (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress})

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressApps

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressApps(c *gin.Context,
	organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress)

creates a developer application (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps)

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppName

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, params PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameParams)

Updates an application (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name})

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributes

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributes(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName)

replaces attributes of an application (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/attributes)

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributesAttributeName

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, attributeName AttributeName)

updates an attribute of an application (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/attributes/{attribute_name})

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKey

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKey(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey, params PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyParams)

updates existing key (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key})

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyApiproductsApiproductName

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyApiproductsApiproductName(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey, apiproductName ApiproductName, params PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyApiproductsApiproductNameParams)

Update key apiproduct (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key}/apiproducts/{apiproduct_name})

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributes

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributes(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey)

Replace key attributes (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key}/attributes)

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributesAttributeName

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysConsumerKeyAttributesAttributeName(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, consumerKey ConsumerKey, attributeName AttributeName)

Update key attribute (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/{consumer_key}/attributes/{attribute_name})

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysCreate

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameKeysCreate(c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName)

Adds provided key to application (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name}/keys/create)

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributes

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributes(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress)

replaces attributes of a developer (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/attributes)

func (*Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributesAttributeName

func (h *Handler) PostV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAttributesAttributeName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, attributeName AttributeName)

updates an attribute of a developer (POST /v1/organizations/{organization_name}/developers/{developer_emailaddress}/attributes/{attribute_name})

func (*Handler) PostV1Roles

func (h *Handler) PostV1Roles(c *gin.Context)
creates an role

(POST /v1/roles)

func (*Handler) PostV1RolesRoleName

func (h *Handler) PostV1RolesRoleName(c *gin.Context, roleName RoleName)

updates an existing role (POST /v1/roles/{role_name})

func (*Handler) PostV1Routes

func (h *Handler) PostV1Routes(c *gin.Context)

creates a new route (POST /v1/routes)

func (*Handler) PostV1RoutesRouteName

func (h *Handler) PostV1RoutesRouteName(c *gin.Context, routeName RouteName)

(POST /v1/routes/{route_name})

func (*Handler) PostV1RoutesRouteNameAttributes

func (h *Handler) PostV1RoutesRouteNameAttributes(c *gin.Context, routeName RouteName)

replaces attributes of an route (POST /v1/routes/{route_name}/attributes)

func (*Handler) PostV1RoutesRouteNameAttributesAttributeName

func (h *Handler) PostV1RoutesRouteNameAttributesAttributeName(
	c *gin.Context, routeName RouteName, attributeName AttributeName)

updates an attribute of an route (POST /v1/routes/{route_name}/attributes/{attribute_name})

func (*Handler) PostV1Users

func (h *Handler) PostV1Users(c *gin.Context)

createUser creates an user (POST /v1/users)

func (*Handler) PostV1UsersUserName

func (h *Handler) PostV1UsersUserName(c *gin.Context, userName UserName)

updates an existing user (POST /v1/users/{user_name})

func (*Handler) PutV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppName

func (h *Handler) PutV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppName(
	c *gin.Context, organizationName OrganizationName, developerEmailaddress DeveloperEmailaddress, appName AppName, params PutV1OrganizationsOrganizationNameDevelopersDeveloperEmailaddressAppsAppNameParams)

updates an application and creates a new key if apiproducts provided (PUT /v1/organizations/{organization_name}/developers/{developer_emailaddress}/apps/{app_name})

func (*Handler) ToAPIproductResponse

func (h *Handler) ToAPIproductResponse(a *types.APIProduct) APIProduct

func (*Handler) ToAuditResponse

func (h *Handler) ToAuditResponse(a *types.Audit) Audit

func (*Handler) ToClusterResponse

func (h *Handler) ToClusterResponse(c *types.Cluster) Cluster

func (*Handler) ToCompanyResponse

func (h *Handler) ToCompanyResponse(c *types.Company) Company

func (*Handler) ToDeveloperResponse

func (h *Handler) ToDeveloperResponse(d *types.Developer) Developer

func (*Handler) ToListenerResponse

func (h *Handler) ToListenerResponse(l *types.Listener) Listener

func (*Handler) ToOrganizationResponse

func (h *Handler) ToOrganizationResponse(o *types.Organization) Organization

func (*Handler) ToRoleResponse

func (h *Handler) ToRoleResponse(l *types.Role) Role

func (*Handler) ToRouteResponse

func (h *Handler) ToRouteResponse(r *types.Route) Route

func (*Handler) ToUserResponse

func (h *Handler) ToUserResponse(l *types.User) User

Directories

Path Synopsis
showDevelopersPage pretty prints all developers and developer apps
showDevelopersPage pretty prints all developers and developer apps

Jump to

Keyboard shortcuts

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