Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
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 ¶
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 ¶
func (m *SDMock) HandleAuthSuccessfully()
HandleAuthSuccessfully mocks auth call
func (*SDMock) HandleFloatingIPListSuccessfully ¶
func (m *SDMock) HandleFloatingIPListSuccessfully()
HandleFloatingIPListSuccessfully mocks floating ips call
func (*SDMock) HandleServerListSuccessfully ¶
func (m *SDMock) HandleServerListSuccessfully()
HandleServerListSuccessfully mocks server detail call
func (*SDMock) HandleVersionsSuccessfully ¶
func (m *SDMock) HandleVersionsSuccessfully()
HandleVersionsSuccessfully mocks version call
func (*SDMock) ShutdownServer ¶
func (m *SDMock) ShutdownServer()
ShutdownServer creates the mock server
Click to show internal directories.
Click to hide internal directories.