pipeline

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 18 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,
	enableForPlatform bool,
) (pipeline.Step[pipeline.CapsuleRequest], error)

func NewRigPlatformCapsulePluginStep added in v1.11.2

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

Types

type CapsuleExtensionStep added in v1.12.0

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

func NewCapsuleExtensionStep added in v1.12.0

func NewCapsuleExtensionStep(name string, step pipeline.Step[pipeline.CapsuleRequest]) *CapsuleExtensionStep

func (*CapsuleExtensionStep) Apply added in v1.12.0

func (*CapsuleExtensionStep) ComputeConfig added in v1.12.0

func (*CapsuleExtensionStep) Name added in v1.12.0

func (s *CapsuleExtensionStep) Name() string

func (*CapsuleExtensionStep) PluginIDs added in v1.12.0

func (s *CapsuleExtensionStep) PluginIDs() []uuid.UUID

func (*CapsuleExtensionStep) WatchObjectStatus added in v1.12.0

func (s *CapsuleExtensionStep) WatchObjectStatus(
	ctx context.Context, capsule *v1alpha2.Capsule, callback pipeline.ObjectStatusCallback,
) error

type CapsuleExtensionValidationStep added in v1.12.0

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

func NewCapsuleExtensionValidationStep added in v1.12.0

func NewCapsuleExtensionValidationStep(cfg *v1alpha1.OperatorConfig) *CapsuleExtensionValidationStep

func (*CapsuleExtensionValidationStep) Apply added in v1.12.0

func (*CapsuleExtensionValidationStep) ComputeConfig added in v1.12.0

func (*CapsuleExtensionValidationStep) Name added in v1.12.0

func (*CapsuleExtensionValidationStep) PluginIDs added in v1.12.0

func (s *CapsuleExtensionValidationStep) PluginIDs() []uuid.UUID

func (*CapsuleExtensionValidationStep) WatchObjectStatus added in v1.12.0

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)
	DryRunPluginConfig(ctx context.Context,
		cfg *v1alpha1.OperatorConfig,
		namespace, capsuleName string,
		capsuleSpec *v1alpha2.Capsule,
	) (pipeline.PluginConfigResult, 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