Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnitDataStore ¶
type UnitDataStore interface { // ListResources lists all the resources for the application. ListResources() (resource.ServiceResources, error) }
UnitDataStore exposes the data storage functionality needed here. All functionality is tied to the unit's application.
type UnitFacade ¶
type UnitFacade struct { //DataStore is the data store used by the facade. DataStore UnitDataStore }
UnitFacade is the resources portion of the uniter's API facade.
func NewUnitFacade ¶
func NewUnitFacade(dataStore UnitDataStore) *UnitFacade
NewUnitFacade returns the resources portion of the uniter's API facade.
func (UnitFacade) GetResourceInfo ¶
func (uf UnitFacade) GetResourceInfo(args params.ListUnitResourcesArgs) (params.UnitResourcesResult, error)
GetResourceInfo returns the resource info for each of the given resource names (for the implicit application). If any one is missing then the corresponding result is set with errors.NotFound.
Click to show internal directories.
Click to hide internal directories.