modules

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindExternalModuleImages

func FindExternalModuleImages(
	mod *Module,
	filter *Filter,
	authProvider authn.Authenticator,
	insecure, skipVerifyTLS bool,
) (moduleImages, releaseImages map[string]struct{}, err error)

Types

type Filter

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

Filter for modules by black and whitelists. Maps module names to minimal versions of these modules to be pulled. By default, this is a whitelist filter, but that can be changed via SetType.

func NewFilter

func NewFilter(filterExpressions []string, filterType FilterType) (*Filter, error)

func (*Filter) FilterReleases

func (f *Filter) FilterReleases(mod *Module)

func (*Filter) GetMinimalVersion

func (f *Filter) GetMinimalVersion(moduleName string) (*semver.Version, bool)

func (*Filter) Len

func (f *Filter) Len() int

func (*Filter) Match added in v0.10.0

func (f *Filter) Match(mod *Module) bool

func (*Filter) UseLogger added in v0.10.0

func (f *Filter) UseLogger(logger params.Logger) *Filter

type FilterType added in v0.10.0

type FilterType int
const (
	FilterTypeWhitelist FilterType = iota
	FilterTypeBlacklist
)

type Module

type Module struct {
	Name         string
	RegistryPath string
	Releases     []string
}

func ForRepo added in v0.10.0

func ForRepo(repo string, registryAuth authn.Authenticator, insecure, skipVerifyTLS bool) ([]Module, error)

Jump to

Keyboard shortcuts

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