handlers

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEFAULT_IMAGE = spec.MustDefaultString("NodePool", "image")
)
View Source
var RootContent = `{
  "paths": [
    "/api",
    "/api/v1",
    "/docs",
    "/swagger"
  ]
}`

Functions

func NewCreateCluster

func NewCreateCluster(rt *api.Runtime) operations.CreateClusterHandler

func NewGetClusterEvents added in v1.2.0

func NewGetClusterEvents(rt *api.Runtime) operations.GetClusterEventsHandler

func NewGetClusterInfo

func NewGetClusterInfo(rt *api.Runtime) operations.GetClusterInfoHandler

func NewGetOpenstackMetadata added in v1.2.0

func NewGetOpenstackMetadata(rt *api.Runtime) operations.GetOpenstackMetadataHandler

func NewInfo

func NewInfo(rt *api.Runtime) operations.InfoHandler

func NewListClusters

func NewListClusters(rt *api.Runtime) operations.ListClustersHandler

func NewShowCluster

func NewShowCluster(rt *api.Runtime) operations.ShowClusterHandler

func NewUpdateCluster

func NewUpdateCluster(rt *api.Runtime) operations.UpdateClusterHandler

func RootHandler

func RootHandler(next http.Handler) http.Handler

Types

type ErrorResponse

type ErrorResponse interface {
	SetStatusCode(code int)
	SetPayload(payload *models.Error)
	WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
}

func NewErrorResponse

func NewErrorResponse(resp ErrorResponse, code int, msg string, a ...interface{}) ErrorResponse

Jump to

Keyboard shortcuts

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