Documentation ¶
Index ¶
- func InstallPluginHandler(resp http.ResponseWriter, req *http.Request)
- func RegisterHandler(resp http.ResponseWriter, req *http.Request)
- func RemovePluginHandler(resp http.ResponseWriter, req *http.Request)
- func RenderTemplate(op trace.Operation, resp http.ResponseWriter, filename string, ...)
- func SetRenderPath(path string)
- func ThumbprintHandler(resp http.ResponseWriter, req *http.Request)
- func UpgradePluginHandler(resp http.ResponseWriter, req *http.Request)
- type IndexHTMLOptions
- type IndexHTMLRenderer
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