Documentation ¶
Index ¶
- func MakePluginsFromConfig()
- type GeneratedEndpointPlugin
- func (gep GeneratedEndpointPlugin) Connect(ec echo.Context, cnsiRecord interfaces.CNSIRecord, userId string) (*interfaces.TokenRecord, bool, error)
- func (gep GeneratedEndpointPlugin) GetType() string
- func (gep GeneratedEndpointPlugin) Info(apiEndpoint string, skipSSLValidation bool) (interfaces.CNSIRecord, interface{}, error)
- func (gep GeneratedEndpointPlugin) Register(ec echo.Context) error
- func (gep GeneratedEndpointPlugin) UpdateMetadata(info *interfaces.Info, userGUID string, echoContext echo.Context)
- func (gep GeneratedEndpointPlugin) Validate(userGUID string, cnsiRecord interfaces.CNSIRecord, ...) error
- type GeneratedPlugin
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)
Click to show internal directories.
Click to hide internal directories.