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

client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 22 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
	ProjectClient     *ProjectClient
	RunnableClient    *runnablec.Client
	VersionClient     *VersionClient
	ExtensionClient   *ExtensionClient
}

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 ExtensionClient added in v0.2.1

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

ExtensionClient holds a client for the extension HTTP REST service

func NewExtensionClient added in v0.2.1

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

NewExtensionClient initializes a ExtensionClient

func (*ExtensionClient) AddCredentials added in v0.2.1

AddCredentials - add a set of credentials to an extension service.

func (*ExtensionClient) AddEndpoint added in v0.2.1

AddEndpoint - add an endpoint to an extension service.

func (*ExtensionClient) AddService added in v0.2.1

func (ec *ExtensionClient) AddService(svc *extension.ExtensionService) (res *extension.ExtensionService, err error)

AddService - add a service to an extension.

func (*ExtensionClient) DeleteCredentials added in v0.2.1

func (ec *ExtensionClient) DeleteCredentials(extensionID, serviceID, credentialsID string) error

DeleteCredentials - delete a set of credentials from an extension service.

func (*ExtensionClient) DeleteEndpoint added in v0.2.1

func (ec *ExtensionClient) DeleteEndpoint(extensionID, serviceID, URL string) error

DeleteEndpoint - delete an endpoint from an extension service.

func (*ExtensionClient) DeleteExtension added in v0.2.1

func (ec *ExtensionClient) DeleteExtension(extensionID string) error

DeleteExtension - delete an Extension.

func (*ExtensionClient) DeleteService added in v0.2.1

func (ec *ExtensionClient) DeleteService(extensionID, serviceID string) error

DeleteService - delete a service from an extension.

func (*ExtensionClient) GetExtension added in v0.2.1

func (ec *ExtensionClient) GetExtension(extensionID string) (*extension.Extension, error)

GetExtension - get an extension.

func (*ExtensionClient) ListCredentials added in v0.2.1

func (ec *ExtensionClient) ListCredentials(extensionID, serviceID string) (res []*extension.ExtensionCredentials, err error)

ListCredentials - list all credentials from an extension service.

func (*ExtensionClient) ListEndpoints added in v0.2.1

func (ec *ExtensionClient) ListEndpoints(extensionID, serviceID string) (res []*extension.ExtensionEndpoint, err error)

ListEndpoints - list all endpoints from an extension service.

func (*ExtensionClient) ListExtension added in v0.2.1

func (ec *ExtensionClient) ListExtension(query *extension.ExtensionQuery) ([]*extension.Extension, error)

ListExtension - list Extensions.

func (*ExtensionClient) ListServices added in v0.2.1

func (ec *ExtensionClient) ListServices(extensionID string) (res []*extension.ExtensionService, err error)

ListServices - list all services from an extension.

func (*ExtensionClient) ReadExtensionFromFile added in v0.2.1

func (ec *ExtensionClient) ReadExtensionFromFile(filepath string) (res *extension.Extension, err error)

ReadExtensionFromFile - register an extension from a file YAML or JSON descriptor.

func (*ExtensionClient) RegisterExtension added in v0.2.1

func (ec *ExtensionClient) RegisterExtension(ext *extension.Extension) (res *extension.Extension, err error)

RegisterExtension - register an extension.

func (*ExtensionClient) UpdateCredentials added in v0.2.1

func (ec *ExtensionClient) UpdateCredentials(credentials *extension.ExtensionCredentials) (res *extension.ExtensionCredentials, err error)

UpdateCredentials - update the attributes of a set of credentials from an extension service.

func (*ExtensionClient) UpdateEndpoint added in v0.2.1

func (ec *ExtensionClient) UpdateEndpoint(endpoint *extension.ExtensionEndpoint) (res *extension.ExtensionEndpoint, err error)

UpdateEndpoint - update the attributes of an endpoint from an extension service.

func (*ExtensionClient) UpdateExtension added in v0.2.1

func (ec *ExtensionClient) UpdateExtension(ext *extension.Extension) (res *extension.Extension, err error)

UpdateExtension - update the attributes of an extension.

func (*ExtensionClient) UpdateService added in v0.2.1

func (ec *ExtensionClient) UpdateService(service *extension.ExtensionService) (res *extension.ExtensionService, err error)

UpdateService - update the attributes of a service from an extension.

type ProjectClient added in v0.2.1

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

ProjectClient holds a client for Project

func NewProjectClient added in v0.2.1

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

NewProjectClient initializes a ProjectClient

func (*ProjectClient) Create added in v0.2.1

func (pc *ProjectClient) Create(name, desc string) (*project.Project, error)

Create a new Project.

func (*ProjectClient) Delete added in v0.2.1

func (pc *ProjectClient) Delete(name string) (err error)

Delete a Project and its assignments.

func (*ProjectClient) Get added in v0.2.1

func (pc *ProjectClient) Get(name string) (*project.Project, error)

Get a Project.

func (*ProjectClient) List added in v0.2.1

func (pc *ProjectClient) List() ([]*project.Project, error)

List Projects.

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