0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-22 10:20:39 +00:00

Add BaseConfig

This commit is contained in:
Don 2019-09-06 17:29:04 -07:00
parent 51e01a4761
commit 9095879384

View File

@ -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.