Documentation ¶
Index ¶
- type Backend
- type BackendKubernetes
- func (b *BackendKubernetes) CA() (*tls.Certificate, error)
- func (b *BackendKubernetes) ExternalIP() string
- func (b *BackendKubernetes) IdleGet(target string) (bool, error)
- func (b *BackendKubernetes) IdleSet(target string, idle bool) error
- func (b *BackendKubernetes) IdleUpdate(namespace, service string, idle bool) error
- func (b *BackendKubernetes) InternalIP() string
- func (b *BackendKubernetes) Start() error
- type BackendRouter
- type CacheDynamo
- type DNS
- type DNSRouter
- type DeploymentController
- func (c *DeploymentController) Add(obj interface{}) error
- func (c *DeploymentController) Client() kubernetes.Interface
- func (c *DeploymentController) Delete(obj interface{}) error
- func (c *DeploymentController) ListOptions(opts *am.ListOptions)
- func (c *DeploymentController) Run()
- func (c *DeploymentController) Start() error
- func (c *DeploymentController) Stop() error
- func (c *DeploymentController) Update(prev, cur interface{}) error
- type HTTP
- type HTTPRouter
- type IngressController
- func (c *IngressController) Add(obj interface{}) error
- func (c *IngressController) Client() kubernetes.Interface
- func (c *IngressController) Delete(obj interface{}) error
- func (c *IngressController) ListOptions(opts *am.ListOptions)
- func (c *IngressController) Run()
- func (c *IngressController) Start() error
- func (c *IngressController) Stop() error
- func (c *IngressController) Update(prev, cur interface{}) error
- type Router
- func (r *Router) RequestBegin(target string) error
- func (r *Router) RequestEnd(target string) error
- func (r *Router) Route(host string) (string, error)
- func (r *Router) RouterIP(internal bool) string
- func (r *Router) Serve() error
- func (r *Router) Shutdown(ctx context.Context) error
- func (r *Router) TargetAdd(host, target string, idles bool) error
- func (r *Router) TargetList(host string) ([]string, error)
- func (r *Router) TargetRemove(host, target string) error
- func (r *Router) Upstream() (string, error)
- type Server
- type Storage
- type StorageDynamo
- func (s *StorageDynamo) IdleGet(target string) (bool, error)
- func (s *StorageDynamo) IdleSet(target string, idle bool) error
- func (s *StorageDynamo) RequestBegin(target string) error
- func (s *StorageDynamo) RequestEnd(target string) error
- func (s *StorageDynamo) Stale(cutoff time.Time) ([]string, error)
- func (s *StorageDynamo) TargetAdd(host, target string, idles bool) error
- func (s *StorageDynamo) TargetList(host string) ([]string, error)
- func (s *StorageDynamo) TargetRemove(host, target string) error
- type StorageMemory
- func (s *StorageMemory) IdleGet(target string) (bool, error)
- func (s *StorageMemory) IdleSet(target string, idle bool) error
- func (s *StorageMemory) RequestBegin(target string) error
- func (s *StorageMemory) RequestEnd(target string) error
- func (s *StorageMemory) Stale(cutoff time.Time) ([]string, error)
- func (s *StorageMemory) TargetAdd(host, target string, idles bool) error
- func (s *StorageMemory) TargetList(host string) ([]string, error)
- func (s *StorageMemory) TargetRemove(host, target string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendKubernetes ¶
type BackendKubernetes struct {
// contains filtered or unexported fields
}
func NewBackendKubernetes ¶
func NewBackendKubernetes(router BackendRouter) (*BackendKubernetes, error)
func (*BackendKubernetes) CA ¶
func (b *BackendKubernetes) CA() (*tls.Certificate, error)
func (*BackendKubernetes) ExternalIP ¶
func (b *BackendKubernetes) ExternalIP() string
func (*BackendKubernetes) IdleGet ¶
func (b *BackendKubernetes) IdleGet(target string) (bool, error)
func (*BackendKubernetes) IdleSet ¶
func (b *BackendKubernetes) IdleSet(target string, idle bool) error
func (*BackendKubernetes) IdleUpdate ¶
func (b *BackendKubernetes) IdleUpdate(namespace, service string, idle bool) error
func (*BackendKubernetes) InternalIP ¶
func (b *BackendKubernetes) InternalIP() string
func (*BackendKubernetes) Start ¶
func (b *BackendKubernetes) Start() error
type BackendRouter ¶
type CacheDynamo ¶
type CacheDynamo struct {
// contains filtered or unexported fields
}
func NewCacheDynamo ¶
func NewCacheDynamo(table string) *CacheDynamo
type DNS ¶
type DNS struct {
// contains filtered or unexported fields
}
func (*DNS) ListenAndServe ¶
type DeploymentController ¶
type DeploymentController struct {
// contains filtered or unexported fields
}
func NewDeploymentController ¶
func NewDeploymentController(kc kubernetes.Interface, backend *BackendKubernetes) (*DeploymentController, error)
func (*DeploymentController) Add ¶
func (c *DeploymentController) Add(obj interface{}) error
func (*DeploymentController) Client ¶
func (c *DeploymentController) Client() kubernetes.Interface
func (*DeploymentController) Delete ¶
func (c *DeploymentController) Delete(obj interface{}) error
func (*DeploymentController) ListOptions ¶
func (c *DeploymentController) ListOptions(opts *am.ListOptions)
func (*DeploymentController) Run ¶
func (c *DeploymentController) Run()
func (*DeploymentController) Start ¶
func (c *DeploymentController) Start() error
func (*DeploymentController) Stop ¶
func (c *DeploymentController) Stop() error
func (*DeploymentController) Update ¶
func (c *DeploymentController) Update(prev, cur interface{}) error
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
func (*HTTP) ListenAndServe ¶
type HTTPRouter ¶
type IngressController ¶
type IngressController struct {
// contains filtered or unexported fields
}
func NewIngressController ¶
func NewIngressController(kc kubernetes.Interface, router BackendRouter) (*IngressController, error)
func (*IngressController) Add ¶
func (c *IngressController) Add(obj interface{}) error
func (*IngressController) Client ¶
func (c *IngressController) Client() kubernetes.Interface
func (*IngressController) Delete ¶
func (c *IngressController) Delete(obj interface{}) error
func (*IngressController) ListOptions ¶
func (c *IngressController) ListOptions(opts *am.ListOptions)
func (*IngressController) Run ¶
func (c *IngressController) Run()
func (*IngressController) Start ¶
func (c *IngressController) Start() error
func (*IngressController) Stop ¶
func (c *IngressController) Stop() error
func (*IngressController) Update ¶
func (c *IngressController) Update(prev, cur interface{}) error
type Router ¶
type Router struct { DNSExternal Server DNSInternal Server HTTP Server HTTPS Server // contains filtered or unexported fields }
func (*Router) RequestBegin ¶
func (*Router) RequestEnd ¶
func (*Router) TargetRemove ¶
type StorageDynamo ¶
type StorageDynamo struct {
// contains filtered or unexported fields
}
func NewStorageDynamo ¶
func NewStorageDynamo(hosts, targets string) *StorageDynamo
func (*StorageDynamo) RequestBegin ¶
func (s *StorageDynamo) RequestBegin(target string) error
func (*StorageDynamo) RequestEnd ¶
func (s *StorageDynamo) RequestEnd(target string) error
func (*StorageDynamo) TargetAdd ¶
func (s *StorageDynamo) TargetAdd(host, target string, idles bool) error
func (*StorageDynamo) TargetList ¶
func (s *StorageDynamo) TargetList(host string) ([]string, error)
func (*StorageDynamo) TargetRemove ¶
func (s *StorageDynamo) TargetRemove(host, target string) error
type StorageMemory ¶
type StorageMemory struct {
// contains filtered or unexported fields
}
func NewStorageMemory ¶
func NewStorageMemory() *StorageMemory
func (*StorageMemory) RequestBegin ¶
func (s *StorageMemory) RequestBegin(target string) error
func (*StorageMemory) RequestEnd ¶
func (s *StorageMemory) RequestEnd(target string) error
func (*StorageMemory) TargetAdd ¶
func (s *StorageMemory) TargetAdd(host, target string, idles bool) error
func (*StorageMemory) TargetList ¶
func (s *StorageMemory) TargetList(host string) ([]string, error)
func (*StorageMemory) TargetRemove ¶
func (s *StorageMemory) TargetRemove(host, target string) error
Click to show internal directories.
Click to hide internal directories.