pipeline

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultPipeline added in v1.9.0

func CreateDefaultPipeline(
	execCtx plugin.ExecutionContext,
	scheme *runtime.Scheme,
	vm scheme.VersionMapper,
	cfg *v1alpha1.OperatorConfig,
	pluginManager *plugin.Manager,
	logger logr.Logger,
) (*pipeline.CapsulePipeline, error)

func GetDefaultPipelineSteps added in v1.9.0

func GetDefaultPipelineSteps(
	execCtx plugin.ExecutionContext,
	cfg *v1alpha1.OperatorConfig,
	pluginManager *plugin.Manager,
	logger logr.Logger,
) ([]pipeline.Step[pipeline.CapsuleRequest], error)

func NewCapsulePluginStep added in v1.9.0

func NewCapsulePluginStep(
	execCtx plugin.ExecutionContext,
	pluginName, pluginConfig string,
	pluginManager *plugin.Manager,
	logger logr.Logger,
) (pipeline.Step[pipeline.CapsuleRequest], error)

Types

type PluginUsed

type PluginUsed struct {
	Namespace string
	Capsule   string
	Plugin    string
}

type Service

type Service interface {
	GetDefaultPipeline() *pipeline.CapsulePipeline
	DryRun(ctx context.Context,
		cfg *v1alpha1.OperatorConfig,
		namespace, capsuleName string,
		spec *v1alpha2.Capsule,
		opts ...pipeline.CapsuleRequestOption) (*pipeline.Result, error)
}

func NewService

func NewService(
	cfg *v1alpha1.OperatorConfig,
	client client.Client,
	capSvc capabilities.Service,
	logger logr.Logger,
	pluginManager *plugin.Manager,
	lc fx.Lifecycle,
	sh fx.Shutdowner,
) Service

Jump to

Keyboard shortcuts

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