Documentation ¶
Overview ¶
A test router implementation.
Index ¶
- Constants
- Variables
- func AddAlias(alias string, frontendname string)
- func AddRoute(frontendname string, fe_path string, be_path string, protocols []string, ...)
- func BumpRouter()
- func CreateFrontend(name string, url string)
- func DeleteFrontend(frontendname string)
- func PrintFrontendRoutes(frontendname string) string
- func PrintRoutes() string
- func ReadRoutes()
- func WriteRoutes()
- type Backend
- type Certificate
- type Endpoint
- type Frontend
Constants ¶
View Source
const ( ProtocolHttp = "http" ProtocolHttps = "https" ProtocolTls = "tls" )
View Source
const ( TERM_EDGE = "TERM_EDGE" TERM_GEAR = "TERM_GEAR" TERM_RESSL = "TERM_RESSL" )
View Source
const (
RouteFile = "/var/lib/containers/router/routes.json"
)
Variables ¶
View Source
var GlobalRoutes map[string]Frontend
Functions ¶
func BumpRouter ¶
func BumpRouter()
func CreateFrontend ¶
func DeleteFrontend ¶
func DeleteFrontend(frontendname string)
func PrintFrontendRoutes ¶
func PrintRoutes ¶
func PrintRoutes() string
func ReadRoutes ¶
func ReadRoutes()
func WriteRoutes ¶
func WriteRoutes()
Types ¶
type Certificate ¶
Directories ¶
Path | Synopsis |
---|---|
The gear 'test-router' extension.
|
The gear 'test-router' extension. |
Provides http requests and handlers for router jobs.
|
Provides http requests and handlers for router jobs. |
remote
Provides marshalling and remote execution glue for http router job requests.
|
Provides marshalling and remote execution glue for http router job requests. |
Job implementations for router operations.
|
Job implementations for router operations. |
linux
Linux router job implementations and router initialization.
|
Linux router job implementations and router initialization. |
Click to show internal directories.
Click to hide internal directories.