Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	CodesetClient     *codesetc.Client
	ApplicationClient *applicationc.Client
	WorkflowClient    *WorkflowClient
	RunnableClient    *runnablec.Client
	VersionClient     *VersionClient
}

Clients holds a list of clients for all FuseML endpoints

func (*Clients) InitializeClients

func (c *Clients) InitializeClients(URL string, timeout int, verbose bool) error

InitializeClients initializes a list of fuseml clients based on global configuration parameters

type VersionClient

type VersionClient struct {
	// contains filtered or unexported fields
}

VersionClient holds a client for Version

func NewVersionClient

func NewVersionClient(scheme string, host string, doer goahttp.Doer, encoder func(*http.Request) goahttp.Encoder,
	decoder func(*http.Response) goahttp.Decoder, verbose bool) *VersionClient

NewVersionClient initializes a VersionClient

func (*VersionClient) Get

func (vc *VersionClient) Get() (*version.VersionInfo, error)

Get version information.

type WorkflowClient

type WorkflowClient struct {
	// contains filtered or unexported fields
}

WorkflowClient holds a client for Workflow

func NewWorkflowClient

func NewWorkflowClient(scheme string, host string, doer goahttp.Doer, encoder func(*http.Request) goahttp.Encoder,
	decoder func(*http.Response) goahttp.Decoder, verbose bool) *WorkflowClient

NewWorkflowClient initializes a WorkflowClient

func (*WorkflowClient) Assign

func (wc *WorkflowClient) Assign(name, codesetProject, codesetName string) (err error)

Assign a Workflow to a Codeset.

func (*WorkflowClient) Create

func (wc *WorkflowClient) Create(workflowDef string) (*workflow.Workflow, error)

Create a new Workflow.

func (*WorkflowClient) Delete

func (wc *WorkflowClient) Delete(name string) (err error)

Delete a Workflow and its assignments.

func (*WorkflowClient) Get

func (wc *WorkflowClient) Get(name string) (*workflow.Workflow, error)

Get a Workflow.

func (*WorkflowClient) List

func (wc *WorkflowClient) List(name string) ([]*workflow.Workflow, error)

List Workflows.

func (*WorkflowClient) ListAssignments

func (wc *WorkflowClient) ListAssignments(name string) ([]*workflow.WorkflowAssignment, error)

ListAssignments lists Workflow assignments.

func (*WorkflowClient) ListRuns

func (wc *WorkflowClient) ListRuns(name, codesetProject, codesetName, status string) ([]*workflow.WorkflowRun, error)

ListRuns lists Workflow runs.

func (*WorkflowClient) Unassign

func (wc *WorkflowClient) Unassign(name, codesetProject, codesetName string) (err error)

Unassign removes an assignment between a workflow and a codeset.

Jump to

Keyboard shortcuts

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