variables

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BundleVariableID added in v0.7.0

func BundleVariableID(bundle *catalogmetadata.Bundle) deppy.Identifier

BundleVariableID returns an ID for a given bundle.

Types

type BundleUniquenessVariable

type BundleUniquenessVariable struct {
	*input.SimpleVariable
}

func NewBundleUniquenessVariable

func NewBundleUniquenessVariable(id deppy.Identifier, atMostIDs ...deppy.Identifier) *BundleUniquenessVariable

NewBundleUniquenessVariable creates a new variable that instructs the resolver to choose at most a single bundle from the input 'atMostID'. Examples: 1. restrict the solution to at most a single bundle per package 2. restrict the solution to at most a single bundler per provided gvk this guarantees that no two operators provide the same gvk and no two version of the same operator are running at the same time

type BundleVariable

type BundleVariable struct {
	*input.SimpleVariable
	// contains filtered or unexported fields
}

func NewBundleVariable

func NewBundleVariable(bundle *catalogmetadata.Bundle, dependencies []*catalogmetadata.Bundle) *BundleVariable

func (*BundleVariable) Bundle added in v0.6.0

func (b *BundleVariable) Bundle() *catalogmetadata.Bundle

func (*BundleVariable) Dependencies

func (b *BundleVariable) Dependencies() []*catalogmetadata.Bundle

type InstalledPackageVariable added in v0.4.0

type InstalledPackageVariable struct {
	*input.SimpleVariable
	// contains filtered or unexported fields
}

func NewInstalledPackageVariable added in v0.4.0

func NewInstalledPackageVariable(packageName string, bundles []*catalogmetadata.Bundle) *InstalledPackageVariable

func (*InstalledPackageVariable) Bundles added in v0.6.0

type RequiredPackageVariable

type RequiredPackageVariable struct {
	*input.SimpleVariable
	// contains filtered or unexported fields
}

func NewRequiredPackageVariable

func NewRequiredPackageVariable(packageName string, bundles []*catalogmetadata.Bundle) *RequiredPackageVariable

func (*RequiredPackageVariable) Bundles added in v0.6.0

Jump to

Keyboard shortcuts

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