apps

package
v0.0.0-...-9818b01 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: AGPL-3.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package apps is the HTTP frontend of the application package. It exposes the HTTP api install, update or uninstall applications.

Index

Constants

View Source
const CozyBarJS = `document.addEventListener('DOMContentLoaded', () => {
	cozy.bar.init({
		appName: '%s',
		iconPath: '%s',
		lang: '%s'
	})
})`

CozyBarJS is the JavaScript used to initialize a cozy-bar

View Source
const JSMimeType = "application/javascript"

JSMimeType is the content-type for javascript

Variables

This section is empty.

Functions

func InitCozyBarJS

func InitCozyBarJS(c echo.Context) error

InitCozyBarJS returns a JavaScript that initializes the cozy-bar with options from the manifest of the application

func InstallOrUpdateHandler

func InstallOrUpdateHandler(c echo.Context) error

InstallOrUpdateHandler handles all POST /:slug request and tries to install or update the application with the given Source.

func ListHandler

func ListHandler(c echo.Context) error

ListHandler handles all GET / requests which can be used to list installed applications.

func Routes

func Routes(router *echo.Group)

Routes sets the routing for the apps service

func Serve

func Serve(c echo.Context) error

Serve is an handler for serving files from the VFS for a client-side app

Types

This section is empty.

Jump to

Keyboard shortcuts

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