testing

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigSection = config.MustRegisterSubSection(echoTaskType, &defaultConfig)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	// SleepDuration indicates the amount of time before transitioning to success
	SleepDuration kozmostdconfig.Duration `json:"sleep-duration" pflag:",Indicates the amount of time before transitioning to success"`
}

func (Config) GetPFlagSet

func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in Config and its nested types. The format of the flags is json-name.json-sub-name... etc.

type EchoPlugin

type EchoPlugin struct {
	// contains filtered or unexported fields
}

func (*EchoPlugin) Abort

func (*EchoPlugin) Finalize

func (e *EchoPlugin) Finalize(ctx context.Context, tCtx core.TaskExecutionContext) error

func (*EchoPlugin) GetID

func (e *EchoPlugin) GetID() string

func (*EchoPlugin) GetProperties

func (e *EchoPlugin) GetProperties() core.PluginProperties

func (*EchoPlugin) Handle

Jump to

Keyboard shortcuts

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