handler

package
v0.0.0-...-ab3382b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx *macaron.Context) string

func BuildDockerImageStartByHTTPReq

func BuildDockerImageStartByHTTPReq(worker string, job *Job)

func InitHandlerList

func InitHandlerList()

func Log

func Log(ctx *macaron.Context)

func PushLog

func PushLog(ws *websocket.Conn, id string)

func PushMsg

func PushMsg(ws *websocket.Conn, WSWriter chan []uint8)

Types

type Job

type Job struct {
	Name string `json:"name"`
	// Mode :set tar or dockerfile to enable different mode
	Mode        string     `json:mode`
	DockerFile  string     `json:"dockerfile"`
	ImageConfig BuildImage `json:"buildimage"`
	// Context : when mode == "dockerfile", context is the content of dockerfile
	// when mode == "archive", context is the path to the archive path
	Context string `"json:context"`
	Tag     string `json:"tag"`
}

type ReqInfo

type ReqInfo struct {
	Id string `json:"Id"`
}

Jump to

Keyboard shortcuts

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