tasks

package module
v0.0.1-pre Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Go Report Card Coverage License Go Reference

default-tasks

This package provides iter8's default task library to be used as part of iter8 experiments during start up and completion.

Documentation

Overview

Package tasks registers all the tasks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

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

Task is something that can be run.

func MakeTask

func MakeTask(t *TaskSpec) (Task, error)

MakeTask constructs a Task from a TaskSpec or returns an error.

type TaskSpec

type TaskSpec struct {
	// Library where this task is defined.
	Library string `json:"library" yaml:"library"`
	// Name (type) of this task.
	Task string `json:"task" yaml:"task"`
	// Inputs to this task.
	With *map[string]interface{} `json:"with" yaml:"with"`
}

TaskSpec is an iter8 handler task specification.

func (*TaskSpec) Run

func (t *TaskSpec) Run(ctx context.Context) error

Run runs the specified task.

Directories

Path Synopsis
Package experiment enables extraction of useful information from experiment objects and also setting VersionInfo within them.
Package experiment enables extraction of useful information from experiment objects and also setting VersionInfo within them.
Package k8sclient enables in-cluster interaction with Kubernetes API server.
Package k8sclient enables in-cluster interaction with Kubernetes API server.
Package target provides types and methods for targets of iter8 experiments.
Package target provides types and methods for targets of iter8 experiments.

Jump to

Keyboard shortcuts

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