server

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvPayloads

type EnvPayloads interface {
	// ListAll returns information on the payload with the id on the unit.
	ListAll() ([]payload.FullPayloadInfo, error)
}

EnvPayloads exposes the State functionality for payloads in an env.

type PublicAPI

type PublicAPI struct {
	// State exposes the payload aspect of Juju's state.
	State EnvPayloads
}

PublicAPI serves payload-specific API methods.

func NewPublicAPI

func NewPublicAPI(st EnvPayloads) *PublicAPI

NewHookContextAPI builds a new facade for the given State.

func (PublicAPI) List

func (a PublicAPI) List(args api.EnvListArgs) (api.EnvListResults, error)

List builds the list of payloads being tracked for the given unit and IDs. If no IDs are provided then all tracked payloads for the unit are returned.

Jump to

Keyboard shortcuts

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