handlers

package
v0.0.0-...-ac7f640 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSecret

func AddSecret(b bus.Publisher) http.HandlerFunc

AddSecret will add a secret to the swarm clustor accessible only to the targeted project.

func Deploy

func Deploy(b bus.Publisher) http.HandlerFunc

Deploy takes a deploy request, and if valid, forwrds it to the "deploy" queue.

func GetBuildLogs

func GetBuildLogs(l logGetter, t *template.Template) http.HandlerFunc

GetBuildLogs returns persisted logs based on the logID

func GetProjectLogs

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

GetProjectLogs connect to rabbitmq's logs channel,

func GetProjectServiceLogs

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

GetProjectServiceLogs retrieves service logs for a project

func GithubHook

func GithubHook(b bus.Publisher) http.HandlerFunc

GithubHook handler for all incoming github webhooks

func Sweep

Sweep sends a sweep job to all docker-sweeper workers. Effectively removing all stopped containers, volumes and images that have no running containers. use with caution.

Types

type RedisLog

type RedisLog struct{}

RedisLog implements logGetter

func (*RedisLog) GetLogs

func (r *RedisLog) GetLogs(id string) ([]string, error)

GetLogs implements the logGetter for redis in production

type TemplateData

type TemplateData struct {
	Title string
	Logs  []string
}

TemplateData for index.html

Jump to

Keyboard shortcuts

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