internal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeGroup

func DescribeGroup(head string, actions ...Action) string

DescribeGroup describes actions grouped, must be a slice with at least 1 elements.

Types

type Action

type Action interface {
	Description() string
	Run(ctx context.Context) (ctrl.Result, error)
}

Action defines the methods that an action should have.

type Decorator

type Decorator interface {
	Inner() Action
	SetInner(Action)
	Name() string
}

Decorator defines the methods that an action decorator should have.

type Group

type Group interface {
	Children() []Action
	SetChildren([]Action)
	Name() string
}

Group describes a groups of actions.

Jump to

Keyboard shortcuts

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