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