Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsulClient ¶
GetConsulClient will return consul client
Types ¶
type Controller ¶
type Controller interface { Watch(ctx context.Context, mutexCache *sync.RWMutex, consulChange map[string]int, consulCalico map[string]string, serviceMap map[string][]*capi.CatalogService, stop chan os.Signal) }
Controller defines the interface for a controller
type ControllerFake ¶
type ControllerFake struct{}
ControllerFake fakes the consul controller
func (*ControllerFake) Watch ¶
func (c *ControllerFake) Watch(ctx context.Context, mutexCache *sync.RWMutex, consulChange map[string]int, consulCalico map[string]string, serviceMap map[string][]*capi.CatalogService, stop chan os.Signal)
Watch gets a list of consul services and runs a sync for each consul service
type ControllerImpl ¶
type ControllerImpl struct {
// contains filtered or unexported fields
}
ControllerImpl is used to interact with consul
func (*ControllerImpl) Watch ¶
func (c *ControllerImpl) Watch(ctx context.Context, mutexCache *sync.RWMutex, consulChange map[string]int, consulCalico map[string]string, serviceMap map[string][]*capi.CatalogService, stop chan os.Signal)
Watch gets a list of consul services and runs a watch for each consul service
Click to show internal directories.
Click to hide internal directories.