From 9095879384de546bf70b3ec301eb636a3dd0fbb0 Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 6 Sep 2019 17:29:04 -0700 Subject: [PATCH] Add BaseConfig --- pkg/plugin/types.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pkg/plugin/types.go b/pkg/plugin/types.go index d732c59..da94b0e 100644 --- a/pkg/plugin/types.go +++ b/pkg/plugin/types.go @@ -8,6 +8,25 @@ package plugin import "time" 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 struct { // Arch is the platform architecture of the current build stage.