handlers

package
v0.0.0-...-0c93a78 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2016 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)

Create creates a Docker Machine

func Ls

func Ls(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)

Ls lists all Docker Machines.

func Remove

func Remove(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)

Remove removes a Docker Machine

func Restart

func Restart(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)

Restart restarts a Docker Machine

func Start

func Start(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)

Start starts a Docker Machine

func Stop

func Stop(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)

Stop stops a Docker Machine

func ToJson

func ToJson(handler func() (interface{}, error)) ([]byte, error)

func WithApi

func WithApi(handler Handler, args map[string]string, form map[string][]string) func() (interface{}, error)

Types

type Handler

type Handler interface {
	Handle(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)
}

type HandlerFunc

type HandlerFunc func(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)

func (HandlerFunc) Handle

func (f HandlerFunc) Handle(api libmachine.API, args map[string]string, form map[string][]string) (interface{}, error)

type Mapping

type Mapping struct {
	Method  string
	Url     string
	Handler Handler
}

func NewMapping

func NewMapping(method string, url string, handler HandlerFunc) Mapping

type Success

type Success struct {
	Action string
	Name   string
}

Jump to

Keyboard shortcuts

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