Documentation ¶
Index ¶
- Variables
- func NewEquinixProvider(configPath, controllerID string) (execution.ExternalProvider, error)
- type DevicesApiServiceInterface
- type ExecuteCreateDevice
- type ExecuteDeleteDevice
- type ExecuteFindDeviceByID
- type ExecuteFindProjectDevices
- type ExecutePerformAction
- type MockClient
- func (m *MockClient) CreateDevice(ctx context.Context, id string) metal.ApiCreateDeviceRequest
- func (m *MockClient) DeleteDevice(ctx context.Context, id string) metal.ApiDeleteDeviceRequest
- func (m *MockClient) FindDeviceById(ctx context.Context, id string) metal.ApiFindDeviceByIdRequest
- func (m *MockClient) FindProjectDevices(ctx context.Context, id string) metal.ApiFindProjectDevicesRequest
- func (m *MockClient) PerformAction(ctx context.Context, id string) metal.ApiPerformActionRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultExecuteFindDeviceByID ExecuteFindDeviceByID = metal.ApiFindDeviceByIdRequest.Execute DefaultExecuteFindProjectDevices ExecuteFindProjectDevices = metal.ApiFindProjectDevicesRequest.Execute DefaultExecuteDeleteDevice ExecuteDeleteDevice = metal.ApiDeleteDeviceRequest.Execute DefaultExecuteCreateDevice ExecuteCreateDevice = metal.ApiCreateDeviceRequest.Execute DefaultExecutePerformAction ExecutePerformAction = metal.ApiPerformActionRequest.Execute )
Functions ¶
func NewEquinixProvider ¶
func NewEquinixProvider(configPath, controllerID string) (execution.ExternalProvider, error)
Types ¶
type DevicesApiServiceInterface ¶
type DevicesApiServiceInterface interface { FindDeviceById(ctx context.Context, id string) metal.ApiFindDeviceByIdRequest FindProjectDevices(ctx context.Context, id string) metal.ApiFindProjectDevicesRequest CreateDevice(ctx context.Context, id string) metal.ApiCreateDeviceRequest DeleteDevice(ctx context.Context, id string) metal.ApiDeleteDeviceRequest PerformAction(ctx context.Context, id string) metal.ApiPerformActionRequest }
type ExecuteCreateDevice ¶
type ExecuteDeleteDevice ¶
type ExecuteDeleteDevice func(r metal.ApiDeleteDeviceRequest) (*http.Response, error)
type ExecuteFindDeviceByID ¶
type ExecuteFindProjectDevices ¶
type ExecuteFindProjectDevices func(r metal.ApiFindProjectDevicesRequest) (*metal.DeviceList, *http.Response, error)
type ExecutePerformAction ¶
type ExecutePerformAction func(r metal.ApiPerformActionRequest) (*http.Response, error)
type MockClient ¶
func (*MockClient) CreateDevice ¶
func (m *MockClient) CreateDevice(ctx context.Context, id string) metal.ApiCreateDeviceRequest
func (*MockClient) DeleteDevice ¶
func (m *MockClient) DeleteDevice(ctx context.Context, id string) metal.ApiDeleteDeviceRequest
func (*MockClient) FindDeviceById ¶
func (m *MockClient) FindDeviceById(ctx context.Context, id string) metal.ApiFindDeviceByIdRequest
func (*MockClient) FindProjectDevices ¶
func (m *MockClient) FindProjectDevices(ctx context.Context, id string) metal.ApiFindProjectDevicesRequest
func (*MockClient) PerformAction ¶
func (m *MockClient) PerformAction(ctx context.Context, id string) metal.ApiPerformActionRequest
Click to show internal directories.
Click to hide internal directories.