Documentation ¶
Index ¶
Constants ¶
View Source
const GenericAnnotationsPrefix = "autodiscovery"
GenericAnnotationsPrefix defines a prefix to be added to each asset annotation provided to the discovery endpoint.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(logger log.Logger, db api.VulcanitoStore, jwtConfig jwt.Config, scanEngineConfig scanengine.Config, programScheduler schedule.ScanScheduler, reportsConfig reports.Config, vulndbClient vulnerabilitydb.Client, vulcantrackerClient tickets.Client, reportsClient reports.Client, metricsClient metrics.Client, awsAccounts AWSAccounts, allowedTrackerTeams []string) api.VulcanitoService
New returns a basic Service with all of the expected middlewares wired in.
func NewAuthorizationService ¶
func NewAuthorizationService(db api.VulcanitoStore) api.AuthService
NewAuthorizationService creates a new instance of the authorization service. The service is not includes directly in the vulcan api service just because it's not directly exposed as a service to the end user but is injected to the authorization middleware in order to provide the logic it needs.
Types ¶
type AWSAccounts ¶
AWSAccounts defines the services realted to AWS Accounts required by the Vulcan API.
type Middleware ¶
type Middleware func(service api.VulcanitoService) api.VulcanitoService
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
Source Files ¶
Click to show internal directories.
Click to hide internal directories.