aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/mock_files/mock_plugins/mockplugin.go
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-09-21 14:58:25 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-21 14:58:25 +0000
commit655dfbea5a836f83a46e5e5d038f0d4180803ee7 (patch)
tree87f4f2b4daf739f71f5da842857a8e9ea62a74eb /src/k8splugin/mock_files/mock_plugins/mockplugin.go
parentf5972d3c34b070d55300e2e1ace7b98b5065a3f0 (diff)
parent05274b1b149139d91445ca10a73defe41f14824a (diff)
Merge "Add UTs to plugins"
Diffstat (limited to 'src/k8splugin/mock_files/mock_plugins/mockplugin.go')
-rw-r--r--src/k8splugin/mock_files/mock_plugins/mockplugin.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/k8splugin/mock_files/mock_plugins/mockplugin.go b/src/k8splugin/mock_files/mock_plugins/mockplugin.go
index 9ceec342..c31e4fe2 100644
--- a/src/k8splugin/mock_files/mock_plugins/mockplugin.go
+++ b/src/k8splugin/mock_files/mock_plugins/mockplugin.go
@@ -21,23 +21,23 @@ import (
func main() {}
-// CreateResource object in a specific Kubernetes resource
-func CreateResource(kubedata *krd.GenericKubeResourceData, kubeclient *kubernetes.Clientset) (string, error) {
+// Create object in a specific Kubernetes resource
+func Create(data *krd.ResourceData, client kubernetes.Interface) (string, error) {
return "externalUUID", nil
}
-// ListResources of existing resources
-func ListResources(limit int64, namespace string, kubeclient *kubernetes.Clientset) (*[]string, error) {
+// List of existing resources
+func List(namespace string, client kubernetes.Interface) ([]string, error) {
returnVal := []string{"cloud1-default-uuid1", "cloud1-default-uuid2"}
- return &returnVal, nil
+ return returnVal, nil
}
-// DeleteResource existing resources
-func DeleteResource(name string, namespace string, kubeclient *kubernetes.Clientset) error {
+// Delete existing resources
+func Delete(name string, namespace string, client kubernetes.Interface) error {
return nil
}
-// GetResource existing resource host
-func GetResource(namespace string, client *kubernetes.Clientset) (bool, error) {
- return true, nil
+// Get existing resource host
+func Get(name string, namespace string, client kubernetes.Interface) (string, error) {
+ return name, nil
}