action

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client provides access to the action facade.

func NewClient

func NewClient(st base.APICallCloser) *Client

NewClient returns a new actions client.

func (*Client) Actions

func (c *Client) Actions(arg params.Entities) (params.ActionResults, error)

Actions takes a list of ActionTags, and returns the full Action for each ID.

func (*Client) Cancel

func (c *Client) Cancel(arg params.Actions) (params.ActionResults, error)

Cancel attempts to cancel a queued up Action from running.

func (*Client) Enqueue

func (c *Client) Enqueue(arg params.Actions) (params.ActionResults, error)

Enqueue takes a list of Actions and queues them up to be executed by the designated ActionReceiver, returning the params.Action for each queued Action, or an error if there was a problem queueing up the Action.

func (*Client) FindActionTagsByPrefix

func (c *Client) FindActionTagsByPrefix(arg params.FindTags) (params.FindTagsResults, error)

FindActionTagsByPrefix takes a list of string prefixes and finds corresponding ActionTags that match that prefix.

func (*Client) ListAll

func (c *Client) ListAll(arg params.Entities) (params.ActionsByReceivers, error)

ListAll takes a list of Entities representing ActionReceivers and returns all of the Actions that have been queued or run by each of those Entities.

func (*Client) ListCompleted

func (c *Client) ListCompleted(arg params.Entities) (params.ActionsByReceivers, error)

ListCompleted takes a list of Entities representing ActionReceivers and returns all of the Actions that have been run on each of those Entities.

func (*Client) ListPending

func (c *Client) ListPending(arg params.Entities) (params.ActionsByReceivers, error)

ListPending takes a list of Entities representing ActionReceivers and returns all of the Actions that are queued for each of those Entities.

func (*Client) ServiceCharmActions

func (c *Client) ServiceCharmActions(arg params.Entity) (*charm.Actions, error)

ServiceCharmActions is a single query which uses ServicesCharmActions to get the charm.Actions for a single Service by tag.

Jump to

Keyboard shortcuts

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