Documentation ¶
Overview ¶
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type MockRookRestClient
- func (m *MockRookRestClient) CreateBlockImage(image model.BlockImage) (string, error)
- func (m *MockRookRestClient) CreateFilesystem(fsr model.FilesystemRequest) (string, error)
- func (m *MockRookRestClient) CreatePool(pool model.Pool) (string, error)
- func (m *MockRookRestClient) DeleteFilesystem(fsr model.FilesystemRequest) (string, error)
- func (m *MockRookRestClient) GetBlockImages() ([]model.BlockImage, error)
- func (m *MockRookRestClient) GetClientAccessInfo() (model.ClientAccessInfo, error)
- func (m *MockRookRestClient) GetFilesystems() ([]model.Filesystem, error)
- func (m *MockRookRestClient) GetNodes() ([]model.Node, error)
- func (m *MockRookRestClient) GetPools() ([]model.Pool, error)
- func (m *MockRookRestClient) GetStatusDetails() (model.StatusDetails, error)
- func (m *MockRookRestClient) URL() string
- type RookMockRestClientFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRookRestClient ¶
type MockRookRestClient struct { MockGetNodes func() ([]model.Node, error) MockGetPools func() ([]model.Pool, error) MockCreatePool func(pool model.Pool) (string, error) MockGetBlockImages func() ([]model.BlockImage, error) MockCreateBlockImage func(image model.BlockImage) (string, error) MockGetClientAccessInfo func() (model.ClientAccessInfo, error) MockGetFilesystems func() ([]model.Filesystem, error) MockCreateFilesystem func(model.FilesystemRequest) (string, error) MockDeleteFilesystem func(model.FilesystemRequest) (string, error) MockGetStatusDetails func() (model.StatusDetails, error) }
Mock Rook REST Client implementation
func (*MockRookRestClient) CreateBlockImage ¶
func (m *MockRookRestClient) CreateBlockImage(image model.BlockImage) (string, error)
func (*MockRookRestClient) CreateFilesystem ¶ added in v0.1.1
func (m *MockRookRestClient) CreateFilesystem(fsr model.FilesystemRequest) (string, error)
func (*MockRookRestClient) CreatePool ¶
func (m *MockRookRestClient) CreatePool(pool model.Pool) (string, error)
func (*MockRookRestClient) DeleteFilesystem ¶ added in v0.1.1
func (m *MockRookRestClient) DeleteFilesystem(fsr model.FilesystemRequest) (string, error)
func (*MockRookRestClient) GetBlockImages ¶
func (m *MockRookRestClient) GetBlockImages() ([]model.BlockImage, error)
func (*MockRookRestClient) GetClientAccessInfo ¶ added in v0.1.1
func (m *MockRookRestClient) GetClientAccessInfo() (model.ClientAccessInfo, error)
func (*MockRookRestClient) GetFilesystems ¶ added in v0.1.1
func (m *MockRookRestClient) GetFilesystems() ([]model.Filesystem, error)
func (*MockRookRestClient) GetStatusDetails ¶
func (m *MockRookRestClient) GetStatusDetails() (model.StatusDetails, error)
func (*MockRookRestClient) URL ¶
func (m *MockRookRestClient) URL() string
type RookMockRestClientFactory ¶
type RookMockRestClientFactory struct{}
func (*RookMockRestClientFactory) CreateRookRestClient ¶
func (*RookMockRestClientFactory) CreateRookRestClient(url string, httpClient *http.Client) client.RookRestClient
Click to show internal directories.
Click to hide internal directories.