Documentation ¶
Overview ¶
Copyright IBM Corp. 2018, 2019.
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.
Copyright IBM Corp. 2018.
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 ¶
- Variables
- func AssertEquals(t *testing.T, received interface{}, expected interface{})
- func MockPV() *v1.PersistentVolume
- func MockPVC(testFlags ...string) *v1.PersistentVolumeClaim
- func MockReclaimPolicy() v1.PersistentVolumeReclaimPolicy
- func MockVolumeOptions(policy v1.PersistentVolumeReclaimPolicy, name string, ...) controller.VolumeOptions
- func MuxHandleCreate(t *testing.T)
- func MuxHandleDelete(t *testing.T, volumeID string)
- func SetupHTTP()
- func TearDownHTTP()
Constants ¶
This section is empty.
Variables ¶
var Mux *http.ServeMux
Functions ¶
func AssertEquals ¶
func MockPV ¶
func MockPV() *v1.PersistentVolume
Creates a new Persistent Volume resource we can test on
func MockPVC ¶
func MockPVC(testFlags ...string) *v1.PersistentVolumeClaim
Creates a new Persistent Volume Claim resource we can test on
func MockReclaimPolicy ¶
func MockReclaimPolicy() v1.PersistentVolumeReclaimPolicy
func MockVolumeOptions ¶
func MockVolumeOptions(policy v1.PersistentVolumeReclaimPolicy, name string, pvc *v1.PersistentVolumeClaim, parameters map[string](string)) controller.VolumeOptions
Creates fake volume options based on based in parameters
func MuxHandleDelete ¶
Register mux for handling volume delete of given volumeID
func TearDownHTTP ¶
func TearDownHTTP()
Types ¶
This section is empty.