Documentation
¶
Index ¶
- type ActionAPI
- func (a *ActionAPI) Actions(arg params.Entities) (params.ActionResults, error)
- func (a *ActionAPI) Cancel(arg params.Entities) (params.ActionResults, error)
- func (a *ActionAPI) Enqueue(arg params.Actions) (params.ActionResults, error)
- func (a *ActionAPI) FindActionTagsByPrefix(arg params.FindTags) (params.FindTagsResults, error)
- func (a *ActionAPI) ListAll(arg params.Entities) (params.ActionsByReceivers, error)
- func (a *ActionAPI) ListCompleted(arg params.Entities) (params.ActionsByReceivers, error)
- func (a *ActionAPI) ListPending(arg params.Entities) (params.ActionsByReceivers, error)
- func (a *ActionAPI) ListRunning(arg params.Entities) (params.ActionsByReceivers, error)
- func (a *ActionAPI) ServicesCharmActions(args params.Entities) (params.ServicesCharmActionsResults, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionAPI ¶
type ActionAPI struct {
// contains filtered or unexported fields
}
ActionAPI implements the client API for interacting with Actions
func NewActionAPI ¶
func NewActionAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) (*ActionAPI, error)
NewActionAPI returns an initialized ActionAPI
func (*ActionAPI) Actions ¶
Actions takes a list of ActionTags, and returns the full Action for each ID.
func (*ActionAPI) Enqueue ¶
Enqueue takes a list of Actions and queues them up to be executed by the designated ActionReceiver, returning the params.Action for each enqueued Action, or an error if there was a problem enqueueing the Action.
func (*ActionAPI) FindActionTagsByPrefix ¶
FindActionTagsByPrefix takes a list of string prefixes and finds corresponding ActionTags that match that prefix.
func (*ActionAPI) ListAll ¶
ListAll takes a list of Entities representing ActionReceivers and returns all of the Actions that have been enqueued or run by each of those Entities.
func (*ActionAPI) ListCompleted ¶
ListCompleted takes a list of Entities representing ActionReceivers and returns all of the Actions that have been run on each of those Entities.
func (*ActionAPI) ListPending ¶
ListPending takes a list of Entities representing ActionReceivers and returns all of the Actions that are enqueued for each of those Entities.
func (*ActionAPI) ListRunning ¶
ListRunning takes a list of Entities representing ActionReceivers and returns all of the Actions that have are running on each of those Entities.
func (*ActionAPI) ServicesCharmActions ¶
func (a *ActionAPI) ServicesCharmActions(args params.Entities) (params.ServicesCharmActionsResults, error)
ServicesCharmActions returns a slice of charm Actions for a slice of services.