Documentation ¶
Index ¶
- Constants
- type Backend
- type Certificate
- type Endpoint
- type Frontend
- type Router
- type Routes
- func (routes *Routes) AddAlias(alias string, frontendname string)
- func (routes *Routes) AddRoute(frontendname string, fePath string, bePath string, protocols []string, ...)
- func (routes *Routes) CreateFrontend(name string, url string)
- func (routes *Routes) DeleteBackends(name string)
- func (routes *Routes) DeleteFrontend(frontendname string)
- func (routes *Routes) FindFrontend(name string) (v Frontend, ok bool)
- func (routes *Routes) ReadRoutes()
- func (routes *Routes) WriteRoutes()
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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Router ¶
type Router interface { ReadRoutes() WriteRoutes() FindFrontend(name string) (v Frontend, ok bool) DeleteBackends(name string) CreateFrontend(name string, url string) DeleteFrontend(frontendname string) AddAlias(alias string, frontendname string) AddRoute(frontendname string, fePath string, bePath string, protocols []string, endpoints []Endpoint) WriteConfig() ReloadRouter() bool }
type Routes ¶
func (*Routes) CreateFrontend ¶
func (*Routes) DeleteBackends ¶
func (*Routes) DeleteFrontend ¶
func (*Routes) ReadRoutes ¶
func (routes *Routes) ReadRoutes()
func (*Routes) WriteRoutes ¶
func (routes *Routes) WriteRoutes()
Click to show internal directories.
Click to hide internal directories.