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

modules

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 14 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 maps module names to minimal versions of these modules to be pulled

func NewFilter

func NewFilter(filterExpression string, logger contexts.Logger) (*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) MatchesFilter

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

type Module

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

func GetDeckhouseExternalModules

func GetDeckhouseExternalModules(mirrorCtx *contexts.PullContext) ([]Module, error)

func GetExternalModulesFromRepo

func GetExternalModulesFromRepo(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