Versions in this module Expand all Collapse all v1 v1.7.2 Feb 15, 2018 Changes in this version + var DefaultSDConfig = SDConfig + type Discovery interface + Run func(ctx context.Context, ch chan<- []*targetgroup.Group) + func NewDiscovery(conf *SDConfig, l log.Logger) (Discovery, error) + type HypervisorDiscovery struct + func NewHypervisorDiscovery(opts *gophercloud.AuthOptions, interval time.Duration, port int, region string, ...) *HypervisorDiscovery + func (h *HypervisorDiscovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type InstanceDiscovery struct + func NewInstanceDiscovery(opts *gophercloud.AuthOptions, interval time.Duration, port int, region string, ...) *InstanceDiscovery + func (i *InstanceDiscovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type Role string + const OpenStackRoleHypervisor + const OpenStackRoleInstance + func (c *Role) UnmarshalYAML(unmarshal func(interface{}) error) error + type SDConfig struct + DomainID string + DomainName string + IdentityEndpoint string + Password config_util.Secret + Port int + ProjectID string + ProjectName string + RefreshInterval model.Duration + Region string + Role Role + UserID string + Username string + XXX map[string]interface{} + func (c *SDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type SDMock struct + Mux *http.ServeMux + Server *httptest.Server + func NewSDMock(t *testing.T) *SDMock + func (m *SDMock) Endpoint() string + func (m *SDMock) HandleAuthSuccessfully() + func (m *SDMock) HandleFloatingIPListSuccessfully() + func (m *SDMock) HandleHypervisorListSuccessfully() + func (m *SDMock) HandleServerListSuccessfully() + func (m *SDMock) HandleVersionsSuccessfully() + func (m *SDMock) Setup() + func (m *SDMock) ShutdownServer()