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 ¶
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 ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.