client

package
v0.0.0-...-c99e017 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewHardware

func CreateNewHardware(ctx context.Context, data string) (string, error)

CreateNewHardware creates a new workflow template

func CreateNewTemplate

func CreateNewTemplate(ctx context.Context, name, data string) (string, error)

CreateNewTemplate creates a new workflow template

func CreateNewWorkflow

func CreateNewWorkflow(ctx context.Context, templateID string, hardware string) (string, error)

CreateNewWorkflow creates a new workflow with selected template and hardware devices

func GetHardware

func GetHardware(ctx context.Context, id string) (types.Hardware, error)

GetHardware returns details for the requested hardware ID

func GetTemplate

func GetTemplate(ctx context.Context, id string) (types.Template, error)

GetTemplate returns details for the requested template ID

func GetWorkflow

func GetWorkflow(ctx context.Context, id string, fillDetails bool) (types.Workflow, error)

GetWorkflow returns details for the requested workflow ID

func Init

func Init()

Init initializes a gRPC connection with server

func ListHardwares

func ListHardwares(ctx context.Context) ([]types.Hardware, error)

ListHardwares returns a list of workflow hardwares

func ListTemplates

func ListTemplates(ctx context.Context) ([]types.Template, error)

ListTemplates returns a list of workflow templates

func ListWorkflows

func ListWorkflows(ctx context.Context) ([]types.Workflow, error)

ListWorkflows returns a list of workflows

func ParseWorkflowTemplate

func ParseWorkflowTemplate(data string) *types.WorkflowDetails

ParseWorkflowTemplate parses a template into workflow details

func UpdateHardware

func UpdateHardware(ctx context.Context, id string, data string) error

UpdateHardware updates the give hardware

func UpdateTemplate

func UpdateTemplate(ctx context.Context, id string, data string) error

UpdateTemplate updates the give template

Types

This section is empty.

Jump to

Keyboard shortcuts

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