variablesources

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleDeploymentVariableSource added in v0.4.0

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

func NewBundleDeploymentVariableSource added in v0.4.0

func NewBundleDeploymentVariableSource(cl client.Client, inputVariableSource input.VariableSource) *BundleDeploymentVariableSource

func (*BundleDeploymentVariableSource) GetVariables added in v0.4.0

func (o *BundleDeploymentVariableSource) GetVariables(ctx context.Context, entitySource input.EntitySource) ([]deppy.Variable, error)

type BundlesAndDepsVariableSource

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

func NewBundlesAndDepsVariableSource

func NewBundlesAndDepsVariableSource(inputVariableSources ...input.VariableSource) *BundlesAndDepsVariableSource

func (*BundlesAndDepsVariableSource) GetVariables

func (b *BundlesAndDepsVariableSource) GetVariables(ctx context.Context, entitySource input.EntitySource) ([]deppy.Variable, error)

type CRDUniquenessConstraintsVariableSource

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

CRDUniquenessConstraintsVariableSource produces variables that constraint the solution to 1. at most 1 bundle per package 2. at most 1 bundle per gvk (provided by the bundle) these variables guarantee that no two operators provide the same gvk and no two version of the same operator are running at the same time. This variable source does not itself reach out to its entitySource. It produces its variables by searching for BundleVariables that are produced by its 'inputVariableSource' and working out which bundles correspond to which package and which gvks are provided by which bundle

func NewCRDUniquenessConstraintsVariableSource

func NewCRDUniquenessConstraintsVariableSource(inputVariableSource input.VariableSource) *CRDUniquenessConstraintsVariableSource

NewCRDUniquenessConstraintsVariableSource creates a new instance of the CRDUniquenessConstraintsVariableSource. its purpose if to provide variables with constraints that restrict the solutions to bundle sets where no two bundles come from the same package and not two bundles provide the same gvk

func (*CRDUniquenessConstraintsVariableSource) GetVariables

type InstalledPackageVariableSource added in v0.4.0

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

func NewInstalledPackageVariableSource added in v0.4.0

func NewInstalledPackageVariableSource(bundleImage string) (*InstalledPackageVariableSource, error)

func (*InstalledPackageVariableSource) GetVariables added in v0.4.0

func (r *InstalledPackageVariableSource) GetVariables(ctx context.Context, entitySource input.EntitySource) ([]deppy.Variable, error)

type NestedVariableSource

type NestedVariableSource []func(inputVariableSource input.VariableSource) (input.VariableSource, error)

func (NestedVariableSource) GetVariables

func (s NestedVariableSource) GetVariables(ctx context.Context, entitySource input.EntitySource) ([]deppy.Variable, error)

type OperatorVariableSource

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

func NewOperatorVariableSource

func NewOperatorVariableSource(cl client.Client, inputVariableSource input.VariableSource) *OperatorVariableSource

func (*OperatorVariableSource) GetVariables

func (o *OperatorVariableSource) GetVariables(ctx context.Context, entitySource input.EntitySource) ([]deppy.Variable, error)

type RequiredPackageVariableSource

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

func NewRequiredPackageVariableSource

func NewRequiredPackageVariableSource(packageName string, options ...RequiredPackageVariableSourceOption) (*RequiredPackageVariableSource, error)

func (*RequiredPackageVariableSource) GetVariables

func (r *RequiredPackageVariableSource) GetVariables(ctx context.Context, entitySource input.EntitySource) ([]deppy.Variable, error)

type RequiredPackageVariableSourceOption

type RequiredPackageVariableSourceOption func(*RequiredPackageVariableSource) error

func InChannel

func InChannel(channelName string) RequiredPackageVariableSourceOption

func InVersionRange

func InVersionRange(versionRange string) RequiredPackageVariableSourceOption

type SliceVariableSource

type SliceVariableSource []input.VariableSource

func (SliceVariableSource) GetVariables

func (s SliceVariableSource) GetVariables(ctx context.Context, entitySource input.EntitySource) ([]deppy.Variable, error)

Jump to

Keyboard shortcuts

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