mirror of
https://github.com/rancher/plugins.git
synced 2025-09-03 00:40:21 +00:00
all: assert internal objects implement interfaces
This commit is contained in:
@@ -36,6 +36,9 @@ type pluginInfo struct {
|
||||
SupportedVersions_ []string `json:"supportedVersions,omitempty"`
|
||||
}
|
||||
|
||||
// pluginInfo implements the PluginInfo interface
|
||||
var _ PluginInfo = &pluginInfo{}
|
||||
|
||||
func (p *pluginInfo) Encode(w io.Writer) error {
|
||||
return json.NewEncoder(w).Encode(p)
|
||||
}
|
||||
|
Reference in New Issue
Block a user