server

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = 8090

DefaultPort is the default port the ui server will listen to

View Source
const UIDownloadBaseURL = "https://github.com/devspace-cloud/devspace/releases"

UIDownloadBaseURL is the base url where to look for the ui

View Source
const UITempFolder = "ui"

UITempFolder is the temp folder to cache the ui in

Variables

View Source
var UIDownloadRegEx = regexp.MustCompile(`href="(\/devspace-cloud\/devspace\/releases\/download\/[^\/]*\/ui.tar.gz)"`)

UIDownloadRegEx is the regexp that finds the correct download link for the ui

Functions

This section is empty.

Types

type Server

type Server struct {
	Server *http.Server
	// contains filtered or unexported fields
}

Server is listens on a given port for the ui functionality

func NewServer

func NewServer(configLoader loader.ConfigLoader, config *latest.Config, generatedConfig *generated.Config, ignoreDownloadError bool, defaultContext, defaultNamespace string, forcePort *int, log log.Logger) (*Server, error)

NewServer creates a new server from the given parameters

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe implements interface

type UIServerVersion

type UIServerVersion struct {
	Version  string `json:"version"`
	DevSpace bool   `json:"devSpace"`
}

UIServerVersion is the struct that is returned by the /api/version request

Jump to

Keyboard shortcuts

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