server

package
v0.0.0-...-0627081 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2016 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIData

func APIData(w http.ResponseWriter, v interface{}, status int)

APIData writes JSONAPI compatible structure

func APIError

func APIError(w http.ResponseWriter, e error, status int)

APIError writes JSONAPI compatible structure

func APIParseBlueprintHandler

func APIParseBlueprintHandler(c *gin.Context)

APIParseBlueprintHandler creates and stores a blueprint

func APIRootHandler

func APIRootHandler(c *gin.Context)

APIRootHandler returns the API description

func ParseBlueprintHandler

func ParseBlueprintHandler(w http.ResponseWriter, r *http.Request)

ParseBlueprintHandler creates and stores a blueprint

func Run

func Run()

func Watch

func Watch(period int)

Watch keeps watch over containers

Types

type BlueprintResource

type BlueprintResource struct{}

BlueprintResource represents `api2go.CRUD` interface

func (BlueprintResource) Create

func (s BlueprintResource) Create(obj interface{}, r api2go.Request) (api2go.Responder, error)

Create implements `api2go.CRUD` interface

func (BlueprintResource) Delete

Delete implements `api2go.CRUD` interface

func (BlueprintResource) FindAll

FindAll implements `api2go.FindAll` interface

func (BlueprintResource) FindOne

FindOne implements `api2go.CRUD` interface

func (BlueprintResource) Update

func (s BlueprintResource) Update(obj interface{}, r api2go.Request) (api2go.Responder, error)

Update implements `api2go.CRUD` interface

type BlueprintYAML

type BlueprintYAML struct {
	Data string `json:"data"`
}

BlueprintYAML represents form data

func (BlueprintYAML) GetName

func (BlueprintYAML) GetName() string

GetName implements jsonapi interface

func (*BlueprintYAML) SetID

func (*BlueprintYAML) SetID(string) error

SetID implements jsonapi interface

Jump to

Keyboard shortcuts

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