Documentation ¶
Overview ¶
cluster handles the multi-master clustering of portal.
Index ¶
- Variables
- func DeleteCert(cert core.CertBundle) error
- func DeleteRoute(route core.Route) error
- func DeleteServer(svcId, srvId string) error
- func DeleteService(id string) error
- func DeleteVip(vip core.Vip) error
- func GetCerts() ([]core.CertBundle, error)
- func GetRoutes() ([]core.Route, error)
- func GetServer(svcId, srvId string) (*core.Server, error)
- func GetService(id string) (*core.Service, error)
- func GetServices() ([]core.Service, error)
- func GetVips() ([]core.Vip, error)
- func Init() error
- func SetCert(cert core.CertBundle) error
- func SetCerts(certs []core.CertBundle) error
- func SetRoute(route core.Route) error
- func SetRoutes(routes []core.Route) error
- func SetServer(svcId string, server *core.Server) error
- func SetServers(svcId string, servers []core.Server) error
- func SetService(service *core.Service) error
- func SetServices(services []core.Service) error
- func SetVip(vip core.Vip) error
- func SetVips(vips []core.Vip) error
- type Clusterable
- type None
- func (n None) DeleteCert(cert core.CertBundle) error
- func (n None) DeleteRoute(route core.Route) error
- func (n None) DeleteServer(svcId, srvId string) error
- func (n None) DeleteService(id string) error
- func (n None) DeleteVip(vip core.Vip) error
- func (n None) GetCerts() ([]core.CertBundle, error)
- func (n None) GetRoutes() ([]core.Route, error)
- func (n None) GetServer(svcId, srvId string) (*core.Server, error)
- func (n None) GetService(id string) (*core.Service, error)
- func (n None) GetServices() ([]core.Service, error)
- func (n None) GetVips() ([]core.Vip, error)
- func (n None) Init() error
- func (n None) SetCert(cert core.CertBundle) error
- func (n None) SetCerts(certs []core.CertBundle) error
- func (n None) SetRoute(route core.Route) error
- func (n None) SetRoutes(routes []core.Route) error
- func (n None) SetServer(svcId string, server *core.Server) error
- func (n None) SetServers(svcId string, servers []core.Server) error
- func (n None) SetService(service *core.Service) error
- func (n None) SetServices(services []core.Service) error
- func (n None) SetVip(vip core.Vip) error
- func (n None) SetVips(vips []core.Vip) error
- func (n None) UnInit() error
- type Redis
- func (r Redis) DeleteCert(cert core.CertBundle) error
- func (r Redis) DeleteRoute(route core.Route) error
- func (r *Redis) DeleteServer(svcId, srvId string) error
- func (r *Redis) DeleteService(id string) error
- func (r Redis) DeleteVip(vip core.Vip) error
- func (r *Redis) GetCerts() ([]core.CertBundle, error)
- func (r *Redis) GetRoutes() ([]core.Route, error)
- func (r *Redis) GetServer(svcId, srvId string) (*core.Server, error)
- func (r *Redis) GetService(id string) (*core.Service, error)
- func (r *Redis) GetServices() ([]core.Service, error)
- func (r Redis) GetVips() ([]core.Vip, error)
- func (r *Redis) Init() error
- func (r Redis) SetCert(cert core.CertBundle) error
- func (r Redis) SetCerts(certs []core.CertBundle) error
- func (r Redis) SetRoute(route core.Route) error
- func (r Redis) SetRoutes(routes []core.Route) error
- func (r *Redis) SetServer(svcId string, server *core.Server) error
- func (r *Redis) SetServers(svcId string, servers []core.Server) error
- func (r *Redis) SetService(service *core.Service) error
- func (r *Redis) SetServices(services []core.Service) error
- func (r Redis) SetVip(vip core.Vip) error
- func (r Redis) SetVips(vips []core.Vip) error
Constants ¶
This section is empty.
Variables ¶
var ( // Clusterer core.Backender Clusterer Clusterable NoServiceError = errors.New("No Service Found") NoServerError = errors.New("No Server Found") BadJson = errors.New("Bad JSON syntax received in body") )
Functions ¶
func DeleteCert ¶
func DeleteCert(cert core.CertBundle) error
func DeleteRoute ¶
func DeleteServer ¶
func DeleteService ¶
func GetCerts ¶
func GetCerts() ([]core.CertBundle, error)
func GetServices ¶
func SetCert ¶
func SetCert(cert core.CertBundle) error
func SetCerts ¶
func SetCerts(certs []core.CertBundle) error
func SetService ¶
func SetServices ¶
Types ¶
type None ¶
type None struct{}
func (None) DeleteCert ¶
func (n None) DeleteCert(cert core.CertBundle) error
func (None) DeleteServer ¶
func (None) DeleteService ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (Redis) DeleteCert ¶
func (r Redis) DeleteCert(cert core.CertBundle) error
DeleteCert tells all members to remove the cert from their database. rolls back on failure
func (Redis) DeleteRoute ¶
DeleteRoute tells all members to remove the route from their database. rolls back on failure
func (*Redis) DeleteServer ¶
DeleteServer tells all members to remove the server from their database. rolls back on failure
func (*Redis) DeleteService ¶
DeleteService tells all members to remove the service from their database. rolls back on failure
func (*Redis) GetCerts ¶
func (r *Redis) GetCerts() ([]core.CertBundle, error)
GetCerts gets a list of certs from the database, or another cluster member.
func (*Redis) GetRoutes ¶
GetRoutes gets a list of routes from the database, or another cluster member.
func (*Redis) GetService ¶
GetService - likely will never be called
func (*Redis) GetServices ¶
GetServices gets a list of services from the database, or another cluster member.
func (Redis) SetCert ¶
func (r Redis) SetCert(cert core.CertBundle) error
SetCert tells all members to add the cert to their database. rolls back on failure
func (Redis) SetCerts ¶
func (r Redis) SetCerts(certs []core.CertBundle) error
SetCerts tells all members to replace the certs in their database with a new set. rolls back on failure
func (Redis) SetRoute ¶
SetRoute tells all members to add the route to their database. rolls back on failure
func (Redis) SetRoutes ¶
SetRoutes tells all members to replace the routes in their database with a new set. rolls back on failure
func (*Redis) SetServer ¶
SetServer tells all members to add the server to their database. rolls back on failure
func (*Redis) SetServers ¶
SetServers tells all members to replace a service's servers with a new set. rolls back on failure
func (*Redis) SetService ¶
SetService tells all members to add the service to their database. rolls back on failure
func (*Redis) SetServices ¶
SetServices tells all members to replace the services in their database with a new set. rolls back on failure