suggest

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MavenSuggester

type MavenSuggester struct{}

func (*MavenSuggester) Suggest

Suggest returns the ManifestPatch to update Maven dependencies to a newer version based on the options. ManifestPatch also includes the property patches to update.

type Options

type Options struct {
	IgnoreDev  bool     // Whether we should ignore development dependencies for updates
	NoUpdates  []string // List of packages that disallow updates
	AvoidMajor []string // List of packages that disallow major updates
}

type PatchSuggester

type PatchSuggester interface {
	// Suggest returns the ManifestPatch required to update the dependencies to
	// a newer version based on the given options.
	// ManifestPatch includes ecosystem-specific information.
	Suggest(ctx context.Context, client resolve.Client, mf manifest.Manifest, opts Options) (manifest.ManifestPatch, error)
}

A PatchSuggester provides an ecosystem-specific method for 'suggesting' ManifestPatch for dependency updates.

func GetSuggester

func GetSuggester(system resolve.System) (PatchSuggester, error)

Jump to

Keyboard shortcuts

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