base

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action []Task

Action is a slice of Tasks.

func (*Action) Run

func (a *Action) Run(ctx context.Context) error

Run the given action.

type ContextKey

type ContextKey string

ContextKey is the type of key that will be used to index into context.

type Tags

type Tags struct {
	M map[string]string
}

Tags supports string extrapolation using tags.

func (*Tags) Interpolate added in v0.1.10

func (tags *Tags) Interpolate(str *string) (string, error)

Interpolate str using tags.

type Task

type Task interface {
	Run(ctx context.Context) error
}

Task defines common method signatures for every task.

type TaskMeta added in v0.1.15

type TaskMeta struct {
	Library string `json:"library" yaml:"library"`
	Task    string `json:"task" yaml:"task"`
}

TaskMeta is common to all Tasks

Jump to

Keyboard shortcuts

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