diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-08-05 07:20:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-08-05 07:20:02 +0000 |
commit | d18501a4c4b15ee99e600ec6a5385616021812b4 (patch) | |
tree | c5e2c8c9619a38b3d0e2f03df04771b5b15c0345 /src/k8splugin/plugins/network/plugin.go | |
parent | 7c4eb36248331166a6fc3e57fb304a8113edc175 (diff) | |
parent | c9c8b012a027e7ff234ac3440620303374464665 (diff) |
Merge "Add static compile time check to plugins"
Diffstat (limited to 'src/k8splugin/plugins/network/plugin.go')
-rw-r--r-- | src/k8splugin/plugins/network/plugin.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/k8splugin/plugins/network/plugin.go b/src/k8splugin/plugins/network/plugin.go index 84a5fe51..aa0d584b 100644 --- a/src/k8splugin/plugins/network/plugin.go +++ b/src/k8splugin/plugins/network/plugin.go @@ -14,9 +14,10 @@ limitations under the License. package main import ( - v1 "github.com/onap/multicloud-k8s/src/k8splugin/plugins/network/v1" "regexp" + v1 "github.com/onap/multicloud-k8s/src/k8splugin/plugins/network/v1" + utils "github.com/onap/multicloud-k8s/src/k8splugin/internal" "github.com/onap/multicloud-k8s/src/k8splugin/internal/helm" "github.com/onap/multicloud-k8s/src/k8splugin/internal/plugin" @@ -25,6 +26,9 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" ) +// Compile time check to see if networkPlugin implements the correct interface +var _ plugin.Reference = networkPlugin{} + // ExportedVariable is what we will look for when calling the plugin var ExportedVariable networkPlugin |