client

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionAPI

type ActionAPI interface {
	ListActions() (action_kit_api.ActionList, error)
	DescribeAction(ref action_kit_api.DescribingEndpointReference) (action_kit_api.ActionDescription, error)

	RunAction(actionId string, target *action_kit_api.Target, config interface{}, executionContext *action_kit_api.ExecutionContext) (ActionExecution, error)
	RunActionWithFiles(actionId string, target *action_kit_api.Target, config interface{}, executionContext *action_kit_api.ExecutionContext, files []File) (ActionExecution, error)
}

func NewActionClient

func NewActionClient(rootPath string, client *resty.Client) ActionAPI

type ActionExecution

type ActionExecution interface {
	Wait() error
	Cancel() error
	Metrics() []action_kit_api.Metric
	Messages() []action_kit_api.Message
}

type File

type File struct {
	ParameterName string
	FileName      string
	Content       []byte
}

Jump to

Keyboard shortcuts

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