routes

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallPluginHandler

func InstallPluginHandler(resp http.ResponseWriter, req *http.Request)

InstallPluginHandler unwraps a json body as a tasks.Plugin and preforms the InstallPlugin task

func RegisterHandler

func RegisterHandler(resp http.ResponseWriter, req *http.Request)

RegisterHandler unwraps a json body as a PSCRegistrationConfig and preforms the RegisterWithPSC task

func RemovePluginHandler

func RemovePluginHandler(resp http.ResponseWriter, req *http.Request)

RemovePluginHandler unwraps a json body as a tasks.Plugin and preforms the RemovePlugin task

func RenderTemplate

func RenderTemplate(op trace.Operation, resp http.ResponseWriter, filename string, data interface{})

RenderTemplate writes a golang html template to an http response

func SetRenderPath

func SetRenderPath(path string)

SetRenderPath sets the render path of the global renderer var

func ThumbprintHandler

func ThumbprintHandler(resp http.ResponseWriter, req *http.Request)

ThumbprintHandler returns the thumbprint of the ip/fqdn given by the get parameter targetKey

func UpgradePluginHandler

func UpgradePluginHandler(resp http.ResponseWriter, req *http.Request)

UpgradePluginHandler unwraps a json body as a tasks.Plugin and preforms the force InstallPlugin task

Types

type IndexHTMLOptions

type IndexHTMLOptions struct {
	InitErrorFeedback   string
	InitSuccessFeedback string
	NeedLogin           bool
	AdmiralAddr         string
	FileserverAddr      string
	ValidationError     string
}

IndexHTMLOptions contains fields for html templating in index.html

type IndexHTMLRenderer

type IndexHTMLRenderer struct {
	ServerHostname string
	ServerAddress  string
	AdmiralPort    string
	VicTarName     string
}

IndexHTMLRenderer must be populated before the IndexHandler can render correctly

func (*IndexHTMLRenderer) IndexHandler

func (i *IndexHTMLRenderer) IndexHandler(resp http.ResponseWriter, req *http.Request)

IndexHandler is an http.Handler for rendering the fileserver Getting Started Page

Jump to

Keyboard shortcuts

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