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 returns a new handler for the "Payloads" facade. It is used for facade registration.
func (API) List ¶
func (a API) List(args params.PayloadListArgs) (params.PayloadListResults, 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.