api

package
v0.0.0-...-30f8b58 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Worker *worker.Worker
}

structs

func Init

func Init() *API

func (*API) CreateBootstrap

func (api *API) CreateBootstrap(rw http.ResponseWriter, req *http.Request)

CreateDeploy

func (*API) CreateBuild

func (api *API) CreateBuild(rw http.ResponseWriter, req *http.Request)

CreateBuild

func (*API) CreateDeploy

func (api *API) CreateDeploy(rw http.ResponseWriter, req *http.Request)

CreateDeploy

func (*API) Develop

func (api *API) Develop(rw http.ResponseWriter, req *http.Request)

func (*API) Exec

func (api *API) Exec(rw http.ResponseWriter, req *http.Request)

proxy an exec request to docker. This allows us to have the same exec power but with added security.

func (*API) FileChange

func (api *API) FileChange(rw http.ResponseWriter, req *http.Request)

func (*API) LibDirs

func (api *API) LibDirs(rw http.ResponseWriter, req *http.Request)

func (*API) ListRoutes

func (api *API) ListRoutes(rw http.ResponseWriter, req *http.Request)

func (*API) ListServices

func (api *API) ListServices(rw http.ResponseWriter, req *http.Request)

ListServices

func (*API) ListVips

func (api *API) ListVips(rw http.ResponseWriter, req *http.Request)

func (*API) Lock

func (api *API) Lock(rw http.ResponseWriter, req *http.Request)

keeps a lock open as long as the connection is established with my service

func (*API) LockCount

func (api *API) LockCount(rw http.ResponseWriter, req *http.Request)

func (*API) ResizeExec

func (api *API) ResizeExec(rw http.ResponseWriter, req *http.Request)

necessary for anything using a windowing system through the exec.

func (*API) Start

func (api *API) Start(port string) error

Start

func (*API) Suspend

func (api *API) Suspend(rw http.ResponseWriter, req *http.Request)

func (*API) UpdateImages

func (api *API) UpdateImages(rw http.ResponseWriter, req *http.Request)

UpdateImages

type Service

type Service struct {
	CreatedAt time.Time
	IP        string
	UID       string
	Name      string `json:",omitempty"`
	Ports     []int
	Username  string            `json:",omitempty"`
	Password  string            `json:",omitempty"`
	EnvVars   map[string]string `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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