appManager

package
v0.0.0-...-31abfad Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAppNotFound = errors.New("Application doesn't exist")
)

Functions

This section is empty.

Types

type AppManager

type AppManager interface {
	// AddApplication will add the appliction to cache
	// Returned FunctionDetails shouldn't be modified
	// To modify it use Clone or use GetApplication
	AddApplication(sb application.StorageBytes) (*application.FunctionDetails, error)
	StoreApplication(*application.FunctionDetails)

	// Retuns function details
	GetApplication(appLocation application.AppLocation, redact bool) (*application.FunctionDetails, bool)

	// GetAppMarshaler returns the json byte format of the application
	// Currently it returns old format of the app not the new format
	GetAppMarshaler(appLocation application.AppLocation, version application.AppVersion) (json.Marshaler, error)

	// Delete the application from the server
	DeleteApplication(appLocation application.AppLocation) (*application.FunctionDetails, bool)

	// Returns all the available application
	ListApplication() []application.AppLocation
}

func NewAppCache

func NewAppCache() AppManager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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