task

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package task provides implementation of the abstraction.Executable interface for command tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(
	task *config.Task,
	logger *logrus.Entry,
) abstraction.Executable

func NewGet

func NewGet(task *config.Task, logger *logrus.Entry) abstraction.Executable

func NewPost

func NewPost(task *config.Task, logger *logrus.Entry) abstraction.Executable

Types

type Command

type Command struct {
	common.Hooked
	common.Cancelable
	common.Retry
	common.Timeout
	// contains filtered or unexported fields
}

func (*Command) Execute

func (c *Command) Execute(ctx context.Context) (e error)

Execute implements abstraction.Executable.

type Get

type Get struct {
	common.Hooked
	common.Cancelable
	common.Retry
	common.Timeout
	// contains filtered or unexported fields
}

func (*Get) Execute

func (g *Get) Execute(ctx context.Context) (e error)

Execute implements abstraction.Executable.

type Post

type Post struct {
	common.Hooked
	common.Cancelable
	common.Retry
	common.Timeout
	// contains filtered or unexported fields
}

func (*Post) Execute

func (p *Post) Execute(ctx context.Context) (e error)

Execute implements abstraction.Executable.

Jump to

Keyboard shortcuts

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