Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶ added in v1.7.0
type Discovery struct {
// contains filtered or unexported fields
}
Discovery periodically performs OpenStack-SD requests. It implements the TargetProvider interface.
func NewDiscovery ¶
func NewDiscovery(conf *config.OpenstackSDConfig) (*Discovery, error)
NewDiscovery returns a new OpenStackDiscovery which periodically refreshes its targets.
type SDMock ¶ added in v1.7.0
type SDMock struct { Server *httptest.Server Mux *http.ServeMux // contains filtered or unexported fields }
SDMock is the interface for the OpenStack mock
func (*SDMock) HandleAuthSuccessfully ¶ added in v1.7.0
func (m *SDMock) HandleAuthSuccessfully()
HandleAuthSuccessfully mocks auth call
func (*SDMock) HandleFloatingIPListSuccessfully ¶ added in v1.7.0
func (m *SDMock) HandleFloatingIPListSuccessfully()
HandleFloatingIPListSuccessfully mocks floating ips call
func (*SDMock) HandleServerListSuccessfully ¶ added in v1.7.0
func (m *SDMock) HandleServerListSuccessfully()
HandleServerListSuccessfully mocks server detail call
func (*SDMock) HandleVersionsSuccessfully ¶ added in v1.7.0
func (m *SDMock) HandleVersionsSuccessfully()
HandleVersionsSuccessfully mocks version call
func (*SDMock) ShutdownServer ¶ added in v1.7.0
func (m *SDMock) ShutdownServer()
ShutdownServer creates the mock server
Click to show internal directories.
Click to hide internal directories.