operation

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkflowOperator

type WorkflowOperator interface {
	Suspend(ctx context.Context, app *v1beta1.Application) error
	Resume(ctx context.Context, app *v1beta1.Application) error
	Rollback(ctx context.Context, app *v1beta1.Application) error
	Restart(ctx context.Context, app *v1beta1.Application) error
	Terminate(ctx context.Context, app *v1beta1.Application) error
}

WorkflowOperator is opratior handler for workflow's resume/rollback/restart

func NewWorkflowOperator

func NewWorkflowOperator(cli client.Client, w io.Writer) WorkflowOperator

NewWorkflowOperator get an workflow operator with k8sClient and ioWriter(optional, useful for cli)

Jump to

Keyboard shortcuts

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