middleware

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthAccount

func AuthAccount(permissions ...string) gin.HandlerFunc

func AuthApplication

func AuthApplication(permissions ...string) gin.HandlerFunc

func FilterAuthorizedApps

func FilterAuthorizedApps(authorizedAppsMap map[string]fiat.Application, allApps core.Applications, permissions ...string) []core.Application

func HandleError

func HandleError() gin.HandlerFunc

func LogRequest

func LogRequest() gin.HandlerFunc

A verbose request/response logger.

func PostFilterAuthorizedApplications

func PostFilterAuthorizedApplications(permissions ...string) gin.HandlerFunc

func SetArcadeClient

func SetArcadeClient(a arcade.Client) gin.HandlerFunc

func SetArtifactCredentialsController

func SetArtifactCredentialsController(a artifact.CredentialsController) gin.HandlerFunc

func SetFiatClient

func SetFiatClient(f fiat.Client) gin.HandlerFunc

func SetKubeController

func SetKubeController(k kubernetes.Controller) gin.HandlerFunc

func SetSQLClient

func SetSQLClient(r sql.Client) gin.HandlerFunc

func TaskID

func TaskID() gin.HandlerFunc

TaskID attaches a unique GUID to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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