transport

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport interface {
	Version(ctx context.Context, requestor string) (*api.VersionResponse, error)
	Start(ctx context.Context, requestor string, jobDescriptor string) (*api.StartResponse, error)
	Stop(ctx context.Context, requestor string, jobID types.JobID) (*api.StopResponse, error)
	Status(ctx context.Context, requestor string, jobID types.JobID) (*api.StatusResponse, error)
	Retry(ctx context.Context, requestor string, jobID types.JobID) (*api.RetryResponse, error)
	List(ctx context.Context, requestor string, states []job.State, tags []string) (*api.ListResponse, error)
}

Transport abstracts different ways of talking to contest server. This interface strictly only uses contest data structures.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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