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