yamlgenerated

package
v0.0.0-...-f761163 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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 interfaces.CNSIRecord, userId string) (*interfaces.TokenRecord, bool, error)

func (GeneratedEndpointPlugin) GetType

func (gep GeneratedEndpointPlugin) GetType() string

func (GeneratedEndpointPlugin) Info

func (gep GeneratedEndpointPlugin) Info(apiEndpoint string, skipSSLValidation bool) (interfaces.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 *interfaces.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 interfaces.CNSIRecord, tokenRecord interfaces.TokenRecord) error

type GeneratedPlugin

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

GeneratedPlugin represents a generated plugin

func (GeneratedPlugin) GetEndpointPlugin

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

func (GeneratedPlugin) GetMiddlewarePlugin

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

func (GeneratedPlugin) GetRoutePlugin

func (gp GeneratedPlugin) GetRoutePlugin() (interfaces.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