refactor: update dependencies and use plugin boilerplate

This commit is contained in:
Robert Kaussow
2021-01-11 21:54:49 +01:00
parent 441d5a1f52
commit ba28c39a7d
13 changed files with 788 additions and 692 deletions

21
plugin/plugin.go Normal file
View File

@@ -0,0 +1,21 @@
package plugin
import (
"github.com/drone-plugins/drone-plugin-lib/drone"
)
// Plugin implements drone.Plugin to provide the plugin implementation.
type Plugin struct {
settings Settings
pipeline drone.Pipeline
network drone.Network
}
// New initializes a plugin from the given Settings, Pipeline, and Network.
func New(settings Settings, pipeline drone.Pipeline, network drone.Network) drone.Plugin {
return &Plugin{
settings: settings,
pipeline: pipeline,
network: network,
}
}