action

package
v6.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoActionReturned = errors.New("no action uuid found for this action")
)

Return error if action uuid was not found

Functions

This section is empty.

Types

type Action

type Action struct {
	UUID             string          `json:"uuid,omitempty"`
	Name             string          `json:"name"`
	ActionStartTime  string          `json:"actionStartTime"`
	Status           string          `json:"status"`
	Metadata         json.RawMessage `json:"metadata"`
	ParentActionUUID string          `json:"parentActionUuid"`
}

Action struct

type Repository

type Repository repository.RestRepository

Repository allows you to retrieve information about your running actions

func (*Repository) GetActions

func (r *Repository) GetActions() ([]Action, error)

GetActions allows you to gather all your actions

func (*Repository) GetByID

func (r *Repository) GetByID(actionID string) (Action, error)

GetByID returns information about an action with a specific ID, also available for finished actions

func (*Repository) GetChildActionsByParentID

func (r *Repository) GetChildActionsByParentID(actionID string) ([]Action, error)

GetChildActionsByParentID returns information about the child actions of a specific parent

func (*Repository) ParseActionFromResponse

func (r *Repository) ParseActionFromResponse(response rest.Response) (Action, error)

ParseActionFromResponse parses the actionUuid from the content location header

Jump to

Keyboard shortcuts

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