service

package
v1.3.31 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 29 Imported by: 0

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, DNSHostnameValidation bool) 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

type AWSAccounts interface {
	Name(AccountID string) (string, error)
}

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

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL