convert the other context keys to the correct type
This commit is contained in:
parent
812f9fb253
commit
8a1089a161
|
@ -29,7 +29,7 @@ type Backend struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
backendConfigKey = contextKey("data")
|
backendConfigKey = contextKey("backend config")
|
||||||
)
|
)
|
||||||
|
|
||||||
// FromContextBackendConfig extracts a ResourceData with the configuration
|
// FromContextBackendConfig extracts a ResourceData with the configuration
|
||||||
|
|
|
@ -46,25 +46,25 @@ type Provisioner struct {
|
||||||
stopOnce sync.Once
|
stopOnce sync.Once
|
||||||
}
|
}
|
||||||
|
|
||||||
// These constants are the keys that can be used to access data in
|
// Keys that can be used to access data in the context parameters for
|
||||||
// the context parameters for Provisioners.
|
// Provisioners.
|
||||||
const (
|
var (
|
||||||
connDataInvalid int = iota
|
connDataInvalid = contextKey("data invalid")
|
||||||
|
|
||||||
// This returns a *ResourceData for the connection information.
|
// This returns a *ResourceData for the connection information.
|
||||||
// Guaranteed to never be nil.
|
// Guaranteed to never be nil.
|
||||||
ProvConnDataKey
|
ProvConnDataKey = contextKey("provider conn data")
|
||||||
|
|
||||||
// This returns a *ResourceData for the config information.
|
// This returns a *ResourceData for the config information.
|
||||||
// Guaranteed to never be nil.
|
// Guaranteed to never be nil.
|
||||||
ProvConfigDataKey
|
ProvConfigDataKey = contextKey("provider config data")
|
||||||
|
|
||||||
// This returns a terraform.UIOutput. Guaranteed to never be nil.
|
// This returns a terraform.UIOutput. Guaranteed to never be nil.
|
||||||
ProvOutputKey
|
ProvOutputKey = contextKey("provider output")
|
||||||
|
|
||||||
// This returns the raw InstanceState passed to Apply. Guaranteed to
|
// This returns the raw InstanceState passed to Apply. Guaranteed to
|
||||||
// be set, but may be nil.
|
// be set, but may be nil.
|
||||||
ProvRawStateKey
|
ProvRawStateKey = contextKey("provider raw state")
|
||||||
)
|
)
|
||||||
|
|
||||||
// InternalValidate should be called to validate the structure
|
// InternalValidate should be called to validate the structure
|
||||||
|
|
Loading…
Reference in New Issue