api

package
v0.20.6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

The API package implements an HTTP interface that is responsible for - serving build artifacts - sending build status updates via websocket - provide metadata in form of a manifest to the UI Extension host on the client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionsApi

type ExtensionsApi struct {
	*core.ExtensionService
	*mux.Router
	*root.RootHandler
	// contains filtered or unexported fields
}

func New

func New(config *core.Config) *ExtensionsApi

func (*ExtensionsApi) GetDevConsoleUrl added in v0.19.0

func (api *ExtensionsApi) GetDevConsoleUrl() string

func (*ExtensionsApi) GetWebsocketUrl added in v0.19.0

func (api *ExtensionsApi) GetWebsocketUrl() string

func (*ExtensionsApi) Notify

func (api *ExtensionsApi) Notify(extensions []core.Extension)

func (*ExtensionsApi) Shutdown

func (api *ExtensionsApi) Shutdown()

type Response added in v0.2.0

type Response struct {
	App        core.App `json:"app" yaml:"-"`
	Version    string   `json:"version"`
	Root       core.Url `json:"root"`
	Socket     core.Url `json:"socket"`
	DevConsole core.Url `json:"devConsole"`
	Store      string   `json:"store"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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