action

package
v0.0.0-...-66c98c8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Retain artifacts
	Retain = "retain"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Performer

type Performer interface {
	// Perform the action
	//
	//  Arguments:
	//    candidates []*art.Candidate : the targets to perform
	//
	//  Returns:
	//    []*art.Result : result infos
	//    error     : common error if any errors occurred
	Perform(ctx context.Context, candidates []*selector.Candidate) ([]*selector.Result, error)
}

Performer performs the related actions targeting the candidates

func NewRetainAction

func NewRetainAction(params interface{}, isDryRun bool) Performer

NewRetainAction is factory method for RetainAction

type PerformerFactory

type PerformerFactory func(params interface{}, isDryRun bool) Performer

PerformerFactory is factory method for creating Performer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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