Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenOnAddr ¶
func ListenOnAddr(e *echo.Echo, listen string)
func ListenOnSocket ¶
func ListenOnSocket(e *echo.Echo, file string)
func SecureWithAPIKey ¶
func SecureWithAPIKey(e *echo.Echo, secret string)
SecureWithAPIKey secures the api with a secret access token The access token needs to be passed in Authorization Header with value Bearer <secret> For invalid key, it sends “401 - Unauthorized” response. For missing key, it sends “400 - Bad Request” response.
Types ¶
type APIConfig ¶
type APIConfig struct { BuildID string JobID string ProjectDir string Modules []*analyzerapi.ProjectModule CurrentModule *analyzerapi.ProjectModule CurrentAction *catalog.Action Env map[string]string ActionConfig string State *state.ActionStateContext TempDir string ArtifactDir string }
Click to show internal directories.
Click to hide internal directories.