vulnerabilitysourceuc

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 (*Service) Archive

func (s *Service) Archive(ctx context.Context, actor string, id shared.ID, expectedVersion int) error

func (*Service) Create

func (s *Service) Create(ctx context.Context, actor string, source domain.Source) (domain.Source, error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, id shared.ID) (domain.Source, error)

func (*Service) List

func (s *Service) List(ctx context.Context, includeArchived bool) ([]domain.Source, error)

func (*Service) SetEnabled

func (s *Service) SetEnabled(ctx context.Context, actor string, id shared.ID, enabled bool, expectedVersion int) (domain.Source, error)

func (*Service) Test

func (s *Service) Test(ctx context.Context, actor string, id shared.ID) error

func (*Service) TestDraft

func (s *Service) TestDraft(ctx context.Context, actor string, source domain.Source) error

func (*Service) Types

func (s *Service) Types(ctx context.Context) []AdapterInfo

func (*Service) Update

func (s *Service) Update(ctx context.Context, actor string, source domain.Source, expectedVersion int) (domain.Source, error)

Jump to

Keyboard shortcuts

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