Documentation
¶
Index ¶
- type AdapterInfo
- type Service
- func (s *Service) Archive(ctx context.Context, actor string, id shared.ID, expectedVersion int) error
- func (s *Service) Create(ctx context.Context, actor string, source domain.Source) (domain.Source, error)
- func (s *Service) Get(ctx context.Context, id shared.ID) (domain.Source, error)
- func (s *Service) List(ctx context.Context, includeArchived bool) ([]domain.Source, error)
- func (s *Service) SetEnabled(ctx context.Context, actor string, id shared.ID, enabled bool, ...) (domain.Source, error)
- func (s *Service) Test(ctx context.Context, actor string, id shared.ID) error
- func (s *Service) TestDraft(ctx context.Context, actor string, source domain.Source) error
- func (s *Service) Types(ctx context.Context) []AdapterInfo
- func (s *Service) Update(ctx context.Context, actor string, source domain.Source, expectedVersion int) (domain.Source, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterInfo ¶
type AdapterInfo struct {
Type domain.AdapterType `json:"type"`
Implemented bool `json:"implemented"`
SupportsTest bool `json:"supports_test"`
SupportsCreds bool `json:"supports_credentials"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(store ports.VulnerabilitySourceStore, registry ports.VulnerabilityProviderRegistry, audit ports.AuditLogger, clock ports.Clock, ids ports.IDGenerator) (*Service, error)
func (*Service) SetEnabled ¶
Click to show internal directories.
Click to hide internal directories.