planner

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plan

type Plan interface {
	// Create will perform the plan and will return a list of operations/procedures
	// that need to be run to accomplish the plan
	Create(ctx context.Context) ([]Procedure, error)
}

Plan represents an interface for a plan of operations.

type Procedure

type Procedure interface {
	// Name is the name of the procedure/operation
	Name() string
	// Do will perform the operation/procedure
	Do(ctx context.Context) error
}

Procedure represents a procedure/operation that will be carried out as part of executing a plan.

Jump to

Keyboard shortcuts

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