github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/providers/agent/mcorpc/ruby/plugin.go (about) 1 // Copyright (c) 2020-2022, R.I. Pienaar and the Choria Project contributors 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 package ruby 6 7 import ( 8 "github.com/choria-io/go-choria/build" 9 "github.com/choria-io/go-choria/inter" 10 "github.com/choria-io/go-choria/plugin" 11 ) 12 13 // ChoriaPlugin produces the plugin for choria 14 func ChoriaPlugin() plugin.Pluggable { 15 return &Provider{} 16 } 17 18 // PluginInstance implements plugin.Pluggable 19 func (p *Provider) PluginInstance() any { 20 return p 21 } 22 23 // PluginVersion implements plugin.Pluggable 24 func (p *Provider) PluginVersion() string { 25 return build.Version 26 } 27 28 // PluginName implements plugin.Pluggable 29 func (p *Provider) PluginName() string { 30 return "Ruby MCollective Agent Compatibility" 31 } 32 33 // PluginType implements plugin.Pluggable 34 func (p *Provider) PluginType() inter.PluginType { 35 return inter.AgentProviderPlugin 36 }