Documentation
¶
Index ¶
- func ConfigDirectory() string
- func ConfigFile() string
- func DisableProxy() error
- func EnableProxy() error
- func ForwardRequest(container ProxiableContainer, writer http.ResponseWriter, ...) bool
- func GetDockerClient() *client.Client
- func GetKey(key string) (string, error)
- func GetSupervisordConfig() (string, error)
- func GetWhitelistedDomains() []string
- func IsProxyEnabled() bool
- func IsRunningAsRoot() bool
- func RemoveContainer(name string) (string, error)
- func SetKey(key string, value string) error
- func StorageDirectory() string
- type Application
- func (application Application) CreateContainer(isEphemeral bool) string
- func (application Application) HasApplicationContainer() bool
- func (application Application) Name(isEphemeral bool) string
- func (application Application) RemoveApplicationContainer() (string, error)
- func (application Application) RemoveEphemeralContainer() (string, error)
- type Config
- type ConfigData
- type ProxiableContainer
- type Proxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDirectory ¶
func ConfigDirectory() string
func ConfigFile ¶
func ConfigFile() string
func DisableProxy ¶
func DisableProxy() error
func EnableProxy ¶
func EnableProxy() error
func ForwardRequest ¶
func ForwardRequest(container ProxiableContainer, writer http.ResponseWriter, request *http.Request) bool
func GetDockerClient ¶
func GetSupervisordConfig ¶
func GetWhitelistedDomains ¶
func GetWhitelistedDomains() []string
func IsProxyEnabled ¶
func IsProxyEnabled() bool
func IsRunningAsRoot ¶
func IsRunningAsRoot() bool
func RemoveContainer ¶
func StorageDirectory ¶
func StorageDirectory() string
Types ¶
type Application ¶
type Application struct { Image string `yaml:"image"` Host string `yaml:"host"` ContainerPort int `yaml:"container_port",omitempty` Env []string }
func (Application) CreateContainer ¶
func (application Application) CreateContainer(isEphemeral bool) string
func (Application) HasApplicationContainer ¶
func (application Application) HasApplicationContainer() bool
func (Application) Name ¶
func (application Application) Name(isEphemeral bool) string
func (Application) RemoveApplicationContainer ¶
func (application Application) RemoveApplicationContainer() (string, error)
func (Application) RemoveEphemeralContainer ¶
func (application Application) RemoveEphemeralContainer() (string, error)
type Config ¶
type Config string
func FindConfig ¶
func (Config) Resolve ¶
func (config Config) Resolve() (ConfigData, error)
type ConfigData ¶
type ConfigData struct { Proxy Proxy Applications []Application }
type ProxiableContainer ¶
type ProxiableContainer struct { Name string Ipv4 string VirtualHost string VirtualPort string Container *types.ContainerJSON }
func GetProxiableContainers ¶
func GetProxiableContainers() ([]ProxiableContainer, error)
Click to show internal directories.
Click to hide internal directories.