0
0
mirror of https://github.com/thegeeklab/wp-git-action.git synced 2024-09-20 01:12:47 +02:00
wp-git-action/plugin/plugin.go

22 lines
492 B
Go
Raw Normal View History

2022-11-27 14:33:39 +01:00
package plugin
import (
"github.com/thegeeklab/drone-plugin-lib/v2/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) *Plugin {
2022-11-27 14:33:39 +01:00
return &Plugin{
settings: settings,
pipeline: pipeline,
network: network,
}
}