rest

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package rest is used once at install-time when running install via browser

Index

Constants

This section is empty.

Variables

View Source
var AgplText = `` /* 34524-byte string literal not displayed */
View Source
var (
	StopService context.CancelFunc
)

Functions

This section is empty.

Types

type Handler

type Handler struct{}

Handler to the REST requests

func (*Handler) Filter

func (a *Handler) Filter() func(string) string

Filter returns a function to filter the swagger path

func (*Handler) GetAgreement

func (h *Handler) GetAgreement(req *restful.Request, rsp *restful.Response)

func (*Handler) GetInstall

func (h *Handler) GetInstall(req *restful.Request, rsp *restful.Response)

Post request handler

func (*Handler) PerformInstallCheck

func (h *Handler) PerformInstallCheck(req *restful.Request, rsp *restful.Response)

func (*Handler) PostInstall

func (h *Handler) PostInstall(req *restful.Request, rsp *restful.Response)

Post request handler

func (*Handler) SwaggerTags

func (a *Handler) SwaggerTags() []string

SwaggerTags list the names of the service tags declared in the swagger json implemented by this service

Jump to

Keyboard shortcuts

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