jobs

package
v0.0.0-...-5f4265e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Job implementations for router operations.

Index

Constants

This section is empty.

Variables

View Source
var SliceRouterTemplate = template.Must(template.New("routerhost.slice").Parse(`[Unit]
Description=Router slice

[Slice]
CPUAccounting=yes
MemoryAccounting=yes
MemoryLimit=512M
Slice=user.slice

[Install]
WantedBy=user.service`))
View Source
var UnitRouterTemplate = template.Must(template.New("routerhost.service").Parse(`[Unit]
Description=Git host

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
Slice=routerhost.slice
ExecStartPre=- /bin/sh -c '/usr/bin/docker inspect -format="Removing old geard-router" "geard-router" 2>/dev/null && /usr/bin/docker rm "geard-router"'
ExecStart=/usr/bin/docker run --name "geard-router" -v /var/lib/containers/router:/var/lib/containers/router:rw -v /etc:/host_etc:ro -a stdout -a stderr --rm "rajatchopra/geard-router"
ExecStop=/usr/bin/docker stop "geard-router"
Restart=on-failure`))

Functions

This section is empty.

Types

type AddAliasRequest

type AddAliasRequest struct {
	Frontend string
	Alias    string
}

func (AddAliasRequest) Execute

func (j AddAliasRequest) Execute(resp jobs.Response)

type AddRouteRequest

type AddRouteRequest struct {
	Frontend     string
	FrontendPath string
	BackendPath  string
	Protocols    []string
	Endpoints    []router.Endpoint
}

func (AddRouteRequest) Execute

func (j AddRouteRequest) Execute(resp jobs.Response)

type CreateFrontendRequest

type CreateFrontendRequest struct {
	Frontend string
	Alias    string
}

func (CreateFrontendRequest) Execute

func (j CreateFrontendRequest) Execute(resp jobs.Response)

type DeleteFrontendRequest

type DeleteFrontendRequest struct {
	Frontend string
}

func (DeleteFrontendRequest) Execute

func (j DeleteFrontendRequest) Execute(resp jobs.Response)

type DeleteRouteRequest

type DeleteRouteRequest struct {
	Frontend   string
	EndpointId string
}

func (DeleteRouteRequest) Execute

func (j DeleteRouteRequest) Execute(resp jobs.Response)

type GetRoutesRequest

type GetRoutesRequest struct {
	Frontend string
}

func (GetRoutesRequest) Execute

func (j GetRoutesRequest) Execute(resp jobs.Response)

Directories

Path Synopsis
Linux router job implementations and router initialization.
Linux router job implementations and router initialization.

Jump to

Keyboard shortcuts

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