drone-docker/plugin/plugin.go

22 lines
494 B
Go
Raw Normal View History

2021-01-17 12:06:23 +00:00
package plugin
import (
"github.com/thegeeklab/drone-plugin-lib/drone"
2021-01-17 12:06:23 +00:00
)
// 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,
}
}