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
Click to show internal directories.
Click to hide internal directories.