taskutil

package
v1.1.929 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSpecFromBytes added in v1.1.913

func LoadSpecFromBytes(c *client.Client, buf []byte) (*model.TaskSpec, error)

LoadSpecFromBytes loads and parses a task.yaml file to a *model.TaskSpec type.

func RegisterTaskYaml

func RegisterTaskYaml(ctx context.Context, c *client.Client, taskYaml []byte, fn client.ServiceFn) (uid string, err error)

RegisterTaskYaml registers a service task with a task spec.

func RegisterTaskYamlFile

func RegisterTaskYamlFile(ctx context.Context, cl *client.Client, yamlFile string, fn client.ServiceFn) (uid string, err error)

RegisterTaskYamlFile registers a service task with a task spec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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