mirror of
https://github.com/thegeeklab/wp-plugin-go.git
synced 2024-11-24 23:20:41 +00:00
Add BaseConfig
This commit is contained in:
parent
51e01a4761
commit
9095879384
@ -8,6 +8,25 @@ package plugin
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
// BaseConfig is the common configuration for a plugin.
|
||||||
|
//
|
||||||
|
// The configuration organizes all the information available to a plugin
|
||||||
|
// executing as a step within a stage.
|
||||||
|
//
|
||||||
|
// Plugins can choose to compose this within their own config.
|
||||||
|
//
|
||||||
|
// import "github.com/drone-plugins/drone-plugin-lib/pkg/plugin"
|
||||||
|
//
|
||||||
|
// type MyPluginConfig struct {
|
||||||
|
// plugin.BaseConfig
|
||||||
|
// Foo string
|
||||||
|
// Bar string
|
||||||
|
// }
|
||||||
|
BaseConfig struct {
|
||||||
|
Stage Stage
|
||||||
|
Step Step
|
||||||
|
}
|
||||||
|
|
||||||
// Stage represents a build stage.
|
// Stage represents a build stage.
|
||||||
Stage struct {
|
Stage struct {
|
||||||
// Arch is the platform architecture of the current build stage.
|
// Arch is the platform architecture of the current build stage.
|
||||||
|
Loading…
Reference in New Issue
Block a user