plugin

package
v1.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver interface {
	// Resolve is a factory to create the correct StepPlugin based on the current step and global configurations
	Resolve(index int32, plugin v1alpha1.PluginStep, log *log.Entry) (StepPlugin, error)
}

Resolver allows to resolve a StepPlugin object

func NewResolver

func NewResolver() Resolver

NewResolver creaates a new Resolver

type StepPlugin

type StepPlugin interface {
	// Run executes the run operation for of a step plugin and returns a Run operation status
	Run(*v1alpha1.Rollout) (*v1alpha1.StepPluginStatus, error)
	// Terminate cancels an ongoing running Run operation and returns a Terminate status if it did
	Terminate(*v1alpha1.Rollout) (*v1alpha1.StepPluginStatus, error)
	// Abort reverts a completed Run operation and returns a Terminate status if it did
	Abort(*v1alpha1.Rollout) (*v1alpha1.StepPluginStatus, error)
}

StepPlugin allows to execute different operation for a step plugin specifc to a rollout

Directories

Path Synopsis
rpc

Jump to

Keyboard shortcuts

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