yamlgenerated

package
v0.0.0-...-447887d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePluginsFromConfig

func MakePluginsFromConfig()

MakePluginsFromConfig will generate plugins for the yaml-configured endpoints

Types

type GeneratedEndpointPlugin

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

GeneratedEndpointPlugin represents a generated endpoint plugin

func (GeneratedEndpointPlugin) Connect

func (gep GeneratedEndpointPlugin) Connect(ec *echo.Context, cnsiRecord api.CNSIRecord, userId string) (*api.TokenRecord, bool, error)

func (GeneratedEndpointPlugin) GetType

func (gep GeneratedEndpointPlugin) GetType() string

func (GeneratedEndpointPlugin) Info

func (gep GeneratedEndpointPlugin) Info(apiEndpoint string, skipSSLValidation bool, caCert string) (api.CNSIRecord, interface{}, error)

Info gets the info for the endpoint

func (GeneratedEndpointPlugin) Register

func (gep GeneratedEndpointPlugin) Register(ec *echo.Context) error

func (GeneratedEndpointPlugin) UpdateMetadata

func (gep GeneratedEndpointPlugin) UpdateMetadata(info *api.Info, userGUID string, echoContext *echo.Context)

UpdateMetadata allows the pluigin to update the metadata for endpoints - not used in the generic case

func (GeneratedEndpointPlugin) Validate

func (gep GeneratedEndpointPlugin) Validate(userGUID string, cnsiRecord api.CNSIRecord, tokenRecord api.TokenRecord) error

Validate has nothing left to check: Connect already asked the user info API with the new token (fetchUsername) and failed if it was refused.

type GeneratedPlugin

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

GeneratedPlugin represents a generated plugin

func (GeneratedPlugin) GetEndpointPlugin

func (gp GeneratedPlugin) GetEndpointPlugin() (api.EndpointPlugin, error)

func (GeneratedPlugin) GetMiddlewarePlugin

func (gp GeneratedPlugin) GetMiddlewarePlugin() (api.MiddlewarePlugin, error)

func (GeneratedPlugin) GetRoutePlugin

func (gp GeneratedPlugin) GetRoutePlugin() (api.RoutePlugin, error)

func (GeneratedPlugin) Init

func (gp GeneratedPlugin) Init() error

Init the plugin

Jump to

Keyboard shortcuts

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