Permalink
Browse files

provider/gce: support environschema Schema

  • Loading branch information...
1 parent 68c9239 commit 2a731745eb2bb75f5ed20a887f23d9f198c16259 @rogpeppe rogpeppe committed May 16, 2016
View
@@ -4,6 +4,8 @@
package environs
import (
+ "gopkg.in/juju/environschema.v1"
+
"github.com/juju/juju/cloud"
"github.com/juju/juju/constraints"
"github.com/juju/juju/environs/config"
@@ -56,6 +58,17 @@ type EnvironProvider interface {
ProviderCredentials
}
+// ProviderSchema can be implemented by a provider to provide
+// access to its configuration schema. Once all providers implement
+// this, it will be included in the EnvironProvider type and the
+// information made available over the API.
+type ProviderSchema interface {
+ // Schema returns the schema for the provider. It should
+ // include all fields defined in environs/config, conventionally
+ // by calling config.Schema.
+ Schema() environschema.Fields
+}
+
// BootstrapConfigParams contains the parameters for EnvironProvider.BootstrapConfig.
type BootstrapConfigParams struct {
// Config is the base configuration for the provider. This should
Oops, something went wrong.

0 comments on commit 2a73174

Please sign in to comment.