internal

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 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)
}

type Decorator

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

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