vulnerabilitysourceuc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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) AllowPrivateNetworkSources added in v0.2.0

func (s *Service) AllowPrivateNetworkSources(allow bool)

AllowPrivateNetworkSources lets an operator permit sources that reach RFC1918 addresses. It is off unless the deployment opts in, because a source is a URL the control plane fetches on a schedule: with private ranges allowed, whoever can write a source can use the server as a probe into the operator's own network, and the response timing is an oracle even when TLS verification stops the body from coming back.

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