openstack

package
v2.0.0-beta.2+incompat... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 16 Imported by: 238

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.

func (*Discovery) Run added in v1.7.0

func (d *Discovery) Run(ctx context.Context, ch chan<- []*config.TargetGroup)

Run implements the TargetProvider interface.

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 NewSDMock added in v1.7.0

func NewSDMock(t *testing.T) *SDMock

NewSDMock returns a new SDMock.

func (*SDMock) Endpoint added in v1.7.0

func (m *SDMock) Endpoint() string

Endpoint returns the URI to the mock server

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) Setup added in v1.7.0

func (m *SDMock) Setup()

Setup creates the mock server

func (*SDMock) ShutdownServer added in v1.7.0

func (m *SDMock) ShutdownServer()

ShutdownServer creates the mock server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL