dataset

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Client           dphttp.Clienter
	URL              string
	ServiceAuthToken string
}

API aggregates a client and URL and other common data for accessing the API

func (*API) CreateInstance

func (api *API) CreateInstance(ctx context.Context, job *models.Job, recipeInst *models.RecipeInstance) (instance *models.Instance, err error)

CreateInstance tells the Dataset API to create a Dataset instance

func (*API) UpdateInstanceState

func (api *API) UpdateInstanceState(ctx context.Context, instanceID string, newState string) error

UpdateInstanceState tells the Dataset API that the state of a Dataset instance has changed

Jump to

Keyboard shortcuts

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