Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type ConnectCARootsWatcher ¶
type ConnectCARootsWatcher struct {
// contains filtered or unexported fields
}
ConnectCARootsWatcher watches the Consul Connect CA roots endpoint for changes and invokes a a handler function whenever it changes.
func NewConnectCARootsWatcher ¶
func NewConnectCARootsWatcher(consul *api.Client) (*ConnectCARootsWatcher, error)
func (*ConnectCARootsWatcher) Start ¶
func (w *ConnectCARootsWatcher) Start(ctx context.Context) error
func (*ConnectCARootsWatcher) Stop ¶
func (w *ConnectCARootsWatcher) Stop()
func (*ConnectCARootsWatcher) Watch ¶
func (w *ConnectCARootsWatcher) Watch(handler func(*CARoots, error))
type ConnectLeafWatcher ¶
type ConnectLeafWatcher struct {
// contains filtered or unexported fields
}
func NewConnectLeafWatcher ¶
func NewConnectLeafWatcher(consul *api.Client, service string) (*ConnectLeafWatcher, error)
func (*ConnectLeafWatcher) Stop ¶
func (w *ConnectLeafWatcher) Stop()
func (*ConnectLeafWatcher) Watch ¶
func (w *ConnectLeafWatcher) Watch(handler func(*Certificate, error))
type Endpoints ¶
type Endpoints struct { Id string `json:""` Service string `json:""` Endpoints []Endpoint `json:""` }
Endpoints contains an Array of Endpoint structs and meta information about the Service that the contained endpoints are associated with.
func (*Endpoints) GroupByTags ¶
GroupByTags returns a map of tag name to array of Endpoint structs.
type ServiceWatcher ¶
type ServiceWatcher struct { ServiceName string // contains filtered or unexported fields }
func (*ServiceWatcher) Stop ¶
func (w *ServiceWatcher) Stop()
func (*ServiceWatcher) Watch ¶
func (w *ServiceWatcher) Watch(handler func(endpoints Endpoints, err error))
Click to show internal directories.
Click to hide internal directories.