Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API serves payload-specific API methods.

func NewAPI

func NewAPI(backend payloadBackend) *API

NewAPI builds a new facade for the given backend.

func NewFacade

func NewFacade(st *state.State, resources facade.Resources, authorizer facade.Authorizer) (*API, error)

NewFacade provides the signature required for facade registration.

func (API) List

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.

Source Files