mirror of
https://github.com/thegeeklab/wp-git-action.git
synced 2024-11-24 12:40:39 +00:00
22 lines
497 B
Go
22 lines
497 B
Go
|
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) drone.Plugin {
|
||
|
return &Plugin{
|
||
|
settings: settings,
|
||
|
pipeline: pipeline,
|
||
|
network: network,
|
||
|
}
|
||
|
}
|