resourceshookcontext

package
v0.0.0-...-e653fdf Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type UnitDataStore

type UnitDataStore interface {
	// ListResources lists all the resources for the application.
	ListResources() (coreresources.ApplicationResources, 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

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.

Jump to

Keyboard shortcuts

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