Help us shape the future of Go! Take the 2026 Go Developer Survey

security

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageDownloadList

type ImageDownloadList struct {
	Security map[string]map[string]*puller.ImageMeta
	// contains filtered or unexported fields
}

func NewImageDownloadList

func NewImageDownloadList(rootURL string) *ImageDownloadList

func (*ImageDownloadList) FillSecurityImages

func (l *ImageDownloadList) FillSecurityImages()

type ImageLayouts

type ImageLayouts struct {
	Security map[string]*regimage.ImageLayout
	// contains filtered or unexported fields
}

func NewImageLayouts

func NewImageLayouts(rootFolder string) *ImageLayouts

func (*ImageLayouts) AsList

func (l *ImageLayouts) AsList() []layout.Path

AsList returns a list of layout.Path's in it. Undefined path's are not included in the list.

type Options added in v0.24.3

type Options struct {
	// BundleDir is the directory to store the bundle
	BundleDir string
	// BundleChunkSize is the max size of bundle chunks in bytes (0 = no chunking)
	BundleChunkSize int64
	// Timeout is the timeout for the security access check
	Timeout time.Duration
	// DryRun prints the pull plan without downloading any image blobs
	DryRun bool
}

Options contains configuration options for the security service

type SecurityStats added in v0.30.20

type SecurityStats struct {
	Attempted          bool
	Available          bool
	Databases          int
	AvailableDatabases int
}

SecurityStats is the security phase's accounting, mapped into the top-level summary by the pull orchestrator.

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	registryService *registryservice.Service,
	workingDir string,
	options *Options,
	logger *dkplog.Logger,
	userLogger *log.SLogger,
) *Service

func (*Service) PullSecurity

func (svc *Service) PullSecurity(ctx context.Context) error

PullSecurity pulls the security databases It validates access to the registry and pulls the security database images

func (*Service) Stats added in v0.30.20

func (svc *Service) Stats() SecurityStats

Stats returns accounting for the security phase. It reports whether security databases are available in the source edition; for available editions it reports planned counts in dry-run (enqueued database sets) and actual counts in a real pull (databases whose layout received at least one manifest, captured before packing in Service.pulledDatabases).

Jump to

Keyboard shortcuts

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