Documentation ¶
Index ¶
- type Backend
- type Config
- type Container
- type DockerAPIClientManager
- type Frontend
- type IDockerAPIClientManager
- type IVulcandAPIClientManager
- type Server
- type VulcandAPIClientManager
- func (manager *VulcandAPIClientManager) DeleteBackendById(apiUrl, backendId string) error
- func (manager *VulcandAPIClientManager) GetBackendById(apiUrl, backendId string) (*Backend, error)
- func (manager *VulcandAPIClientManager) GetFrontendById(apiUrl, frontendId string) (*Frontend, error)
- func (manager *VulcandAPIClientManager) GetServerById(apiUrl, backendId, serverId string) (*Server, error)
- func (manager *VulcandAPIClientManager) ListBackends(apiUrl string) ([]*Backend, error)
- func (manager *VulcandAPIClientManager) ListFrontends(apiUrl string) ([]*Frontend, error)
- func (manager *VulcandAPIClientManager) ListServers(apiUrl, backendId string) ([]*Server, error)
- func (manager *VulcandAPIClientManager) UpsertBackend(apiUrl string, backend *Backend) (*Backend, error)
- func (manager *VulcandAPIClientManager) UpsertServer(apiUrl, backendId string, server *Server) (*Server, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Backend struct { ID string `json:"Id"` Type string `json:"Type"` Settings struct { Timeouts struct { Read string `json:"Read"` Dial string `json:"Dial"` Tlshandshake string `json:"TLSHandshake"` } `json:"Timeouts"` Keepalive struct { Period string `json:"Period"` Maxidleconnsperhost int `json:"MaxIdleConnsPerHost"` } `json:"KeepAlive"` } `json:"Settings"` } `json:"Backend"` }
type Config ¶
func (*Config) InstallFlags ¶
func (config *Config) InstallFlags()
type Container ¶
type Container struct { Command string `json:"Command"` Created int `json:"Created"` ID string `json:"Id"` Image string `json:"Image"` Names []string `json:"Names"` Ports []struct { IP string `json:"IP"` PrivatePort int `json:"PrivatePort"` PublicPort int `json:"PublicPort"` Type string `json:"Type"` } `json:"Ports"` Status string `json:"Status"` }
type DockerAPIClientManager ¶
type DockerAPIClientManager struct {
InjectedDockerAPIClientManager IDockerAPIClientManager
}
func (*DockerAPIClientManager) ListContainers ¶
func (manager *DockerAPIClientManager) ListContainers(socketPath string) ([]*Container, error)
type Frontend ¶
type Frontend struct { ID string `json:"Id"` Route string `json:"Route"` Type string `json:"Type"` Backendid string `json:"BackendId"` Settings struct { Limits struct { Maxmembodybytes int `json:"MaxMemBodyBytes"` Maxbodybytes int `json:"MaxBodyBytes"` } `json:"Limits"` Failoverpredicate string `json:"FailoverPredicate"` Hostname string `json:"Hostname"` Trustforwardheader bool `json:"TrustForwardHeader"` } `json:"Settings"` }
type IDockerAPIClientManager ¶
type IVulcandAPIClientManager ¶
type IVulcandAPIClientManager interface { GetBackendById(apiUrl, backendId string) (*Backend, error) GetServerById(apiUrl, backendId, serverId string) (*Server, error) GetFrontendById(apiUrl, frontendId string) (*Frontend, error) ListBackends(apiUrl string) ([]*Backend, error) ListServers(apiUrl, backendId string) ([]*Server, error) ListFrontends(apiUrl string) ([]*Frontend, error) UpsertBackend(apiUrl string, backend *Backend) (*Backend, error) UpsertServer(apiUrl, backendId string, server *Server) (*Server, error) DeleteBackendById(apiUrl, backendId string) error }
type VulcandAPIClientManager ¶
type VulcandAPIClientManager struct {
InjectedVulcandAPIClientManager IVulcandAPIClientManager
}
func (*VulcandAPIClientManager) DeleteBackendById ¶
func (manager *VulcandAPIClientManager) DeleteBackendById(apiUrl, backendId string) error
func (*VulcandAPIClientManager) GetBackendById ¶
func (manager *VulcandAPIClientManager) GetBackendById(apiUrl, backendId string) (*Backend, error)
func (*VulcandAPIClientManager) GetFrontendById ¶
func (manager *VulcandAPIClientManager) GetFrontendById(apiUrl, frontendId string) (*Frontend, error)
func (*VulcandAPIClientManager) GetServerById ¶
func (manager *VulcandAPIClientManager) GetServerById(apiUrl, backendId, serverId string) (*Server, error)
func (*VulcandAPIClientManager) ListBackends ¶
func (manager *VulcandAPIClientManager) ListBackends(apiUrl string) ([]*Backend, error)
func (*VulcandAPIClientManager) ListFrontends ¶
func (manager *VulcandAPIClientManager) ListFrontends(apiUrl string) ([]*Frontend, error)
func (*VulcandAPIClientManager) ListServers ¶
func (manager *VulcandAPIClientManager) ListServers(apiUrl, backendId string) ([]*Server, error)
func (*VulcandAPIClientManager) UpsertBackend ¶
func (manager *VulcandAPIClientManager) UpsertBackend(apiUrl string, backend *Backend) (*Backend, error)
func (*VulcandAPIClientManager) UpsertServer ¶
func (manager *VulcandAPIClientManager) UpsertServer(apiUrl, backendId string, server *Server) (*Server, error)
Click to show internal directories.
Click to hide internal directories.