mirror of
https://github.com/thegeeklab/wp-matrix.git
synced 2024-11-13 23:50:39 +00:00
28 lines
719 B
Go
28 lines
719 B
Go
// Copyright (c) 2020, the Drone Plugins project authors.
|
|
// Copyright (c) 2021, Robert Kaussow <mail@thegeeklab.de>
|
|
|
|
// Use of this source code is governed by an Apache 2.0 license that can be
|
|
// found in the LICENSE file.
|
|
|
|
package plugin
|
|
|
|
import (
|
|
"github.com/thegeeklab/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,
|
|
}
|
|
}
|