job

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileHandle

func GetFileHandle(req *http.Request, log *logrus.Entry) (
	fileName string,
	stream io.ReadCloser,
	out midl.Response,
)

func NewJobCreateEndpoint

func NewJobCreateEndpoint() types.Endpoint

func NewMetadataValidator

func NewMetadataValidator() midl.MiddlewareFunc

NewMetadataValidator is a validation wrapper middleware that attempts to parse and validate the request body as a metadata JSON payload, either calling the endpoint on success or returning an error response to the caller.

func NewUploadEndpoint

func NewUploadEndpoint(file config.FileOptions) types.Endpoint

NewUploadEndpoint instantiates a new endpoint wrapper for the user dataset upload handler.

Types

type Metadata

type Metadata struct {
	job.Metadata
}

func (*Metadata) Validate

func (m *Metadata) Validate() (out svc.ValidationResult)

Jump to

Keyboard shortcuts

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