api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAuthMiddleware

func CreateAuthMiddleware(repo repo.UserRepository) (err error)

CreateAuthMiddleware creates the authentication middleware

Types

type CertificateAuthorityController

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

CertificateAuthorityController provides API handlers for the certificate authority related APIs

func NewCertificateAuthorityController

func NewCertificateAuthorityController(caRepo repo.CertificateAuthorityRepository) *CertificateAuthorityController

NewCertificateAuthorityController returns a controller instance to handle certificate authority API requests

func (*CertificateAuthorityController) Route

func (controller *CertificateAuthorityController) Route(r *gin.RouterGroup)

Route sets up route mappings to certificate-authority related APIs

type CertificateController

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

CertificateController provides API handlers for the certificate related APIs

func NewCertificateController

func NewCertificateController(caRepo repo.CertificateAuthorityRepository,
	certRepo repo.CertificateRepository,
	bindingRepo repo.CertificateBindingRepository,
	participantFATERepo repo.ParticipantFATERepository,
	participantOpenFLRepo repo.ParticipantOpenFLRepository,
	federationFATERepo repo.FederationRepository,
	federationOpenFLRepo repo.FederationRepository) *CertificateController

NewCertificateController returns a controller instance to handle certificate API requests

func (*CertificateController) Route

func (controller *CertificateController) Route(r *gin.RouterGroup)

Route sets up route mappings to certificate related APIs

type ChartController

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

ChartController provides API handlers for the chart related APIs

func NewChartController

func NewChartController(chartRepo repo.ChartRepository) *ChartController

NewChartController returns a controller instance to handle chart API requests

func (*ChartController) Route

func (controller *ChartController) Route(r *gin.RouterGroup)

Route sets up route mappings to chart related APIs

type EndpointController

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

EndpointController provides API handlers for the endpoint related APIs

func NewEndpointController

func NewEndpointController(infraProviderKubernetesRepo repo.InfraProviderRepository,
	endpointKubeFATERepo repo.EndpointRepository,
	participantFATERepo repo.ParticipantFATERepository,
	participantOpenFLRepo repo.ParticipantOpenFLRepository,
	eventRepo repo.EventRepository) *EndpointController

NewEndpointController returns a controller instance to handle endpoint API requests

func (*EndpointController) Route

func (controller *EndpointController) Route(r *gin.RouterGroup)

Route sets up route mappings to endpoint related APIs

type EventController

type EventController struct {
	EventApp *service.EventApp
}

EventController provides API handlers for the event related APIs

func NewEventController

func NewEventController(eventRepo repo.EventRepository) *EventController

NewEventController returns a controller instance to handle event API requests

func (*EventController) Route

func (controller *EventController) Route(r *gin.RouterGroup)

Route sets up route mappings to event related APIs

type FederationController

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

FederationController handles federation related APIs

func NewFederationController

func NewFederationController(infraProviderKubernetesRepo repo.InfraProviderRepository,
	endpointKubeFATERepo repo.EndpointRepository,
	federationFATERepo repo.FederationRepository,
	federationOpenFLRepo repo.FederationRepository,
	chartRepo repo.ChartRepository,
	participantFATERepo repo.ParticipantFATERepository,
	participantOpenflRepo repo.ParticipantOpenFLRepository,
	certificateAuthorityRepo repo.CertificateAuthorityRepository,
	certificateRepo repo.CertificateRepository,
	certificateBindingRepo repo.CertificateBindingRepository,
	registrationTokenOpenFLRepo repo.RegistrationTokenRepository,
	eventRepo repo.EventRepository) *FederationController

NewFederationController returns a controller instance to handle federation API requests

func (*FederationController) Route

func (controller *FederationController) Route(r *gin.RouterGroup)

Route sets up route mappings to federation related APIs

type GeneralResponse

type GeneralResponse struct {
	Code    int         `json:"code" example:"0"`
	Message string      `json:"message" example:"success"`
	Data    interface{} `json:"data" swaggertype:"object"`
}

GeneralResponse is used for the API response

type InfraProviderController

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

InfraProviderController provides API handlers for the infra provider related APIs

func NewInfraProviderController

func NewInfraProviderController(infraProviderKubernetesRepo repo.InfraProviderRepository,
	endpointKubeFATERepo repo.EndpointRepository) *InfraProviderController

NewInfraProviderController returns a controller instance to handle infra provider API requests

func (*InfraProviderController) Route

func (controller *InfraProviderController) Route(r *gin.RouterGroup)

Route sets up route mappings to infra provider related APIs

type UserController

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

UserController manages user related API calls

func NewUserController

func NewUserController(repo repo.UserRepository) *UserController

NewUserController returns a controller instance to handle user API requests

func (*UserController) Route

func (controller *UserController) Route(r *gin.RouterGroup)

Route set up route mappings to user related APIs

Jump to

Keyboard shortcuts

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