Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { AcquireTCPBackend(servicename string, port int) *hatypes.TCPBackend AcquireHost(hostname string) *hatypes.Host FindHost(hostname string) *hatypes.Host AcquireBackend(namespace, name, port string) *hatypes.Backend FindBackend(namespace, name, port string) *hatypes.Backend ConfigDefaultBackend(defaultBackend *hatypes.Backend) ConfigDefaultX509Cert(filename string) AddUserlist(name string, users []hatypes.User) *hatypes.Userlist FindUserlist(name string) *hatypes.Userlist FrontendGroup() *hatypes.FrontendGroup BuildFrontendGroup() error BuildBackendMaps() error DefaultHost() *hatypes.Host DefaultBackend() *hatypes.Backend AcmeData() *hatypes.AcmeData Acme() *hatypes.Acme Global() *hatypes.Global TCPBackends() []*hatypes.TCPBackend Hosts() []*hatypes.Host Backends() []*hatypes.Backend Userlists() []*hatypes.Userlist Equals(other Config) bool }
Config ...
type Instance ¶
type Instance interface { AcmeCheck(source string) (int, error) ParseTemplates() error Config() Config CalcIdleMetric() Update(timer *utils.Timer) }
Instance ...
func CreateInstance ¶
func CreateInstance(logger types.Logger, options InstanceOptions) Instance
CreateInstance ...
type InstanceOptions ¶
type InstanceOptions struct { AcmeSigner acme.Signer AcmeQueue utils.Queue LeaderElector types.LeaderElector MaxOldConfigFiles int HAProxyCmd string HAProxyConfigFile string Metrics types.Metrics ReloadCmd string ReloadStrategy string SortBackends bool ValidateConfig bool }
InstanceOptions ...
Click to show internal directories.
Click to hide internal directories.