Documentation ¶
Index ¶
- Constants
- type Provider
- type ProviderShim
- func (ProviderShim) Apply(t string, s shim.InstanceState, d shim.InstanceDiff) (shim.InstanceState, error)
- func (ProviderShim) Configure(c shim.ResourceConfig) error
- func (s ProviderShim) DataSourcesMap() shim.ResourceMap
- func (ProviderShim) Diff(t string, s shim.InstanceState, c shim.ResourceConfig) (shim.InstanceDiff, error)
- func (ProviderShim) InitLogging()
- func (ProviderShim) IsSet(v interface{}) ([]interface{}, bool)
- func (ProviderShim) Meta() interface{}
- func (ProviderShim) NewDestroyDiff() shim.InstanceDiff
- func (ProviderShim) NewResourceConfig(object map[string]interface{}) shim.ResourceConfig
- func (ProviderShim) ReadDataApply(t string, d shim.InstanceDiff) (shim.InstanceState, error)
- func (ProviderShim) ReadDataDiff(t string, c shim.ResourceConfig) (shim.InstanceDiff, error)
- func (ProviderShim) Refresh(t string, s shim.InstanceState) (shim.InstanceState, error)
- func (s ProviderShim) ResourcesMap() shim.ResourceMap
- func (s ProviderShim) Schema() shim.SchemaMap
- func (ProviderShim) Stop() error
- func (ProviderShim) Validate(c shim.ResourceConfig) ([]string, []error)
- func (ProviderShim) ValidateDataSource(t string, c shim.ResourceConfig) ([]string, []error)
- func (ProviderShim) ValidateResource(t string, c shim.ResourceConfig) ([]string, []error)
- type Resource
- type ResourceMap
- type ResourceShim
- func (r ResourceShim) DecodeTimeouts(config shim.ResourceConfig) (*shim.ResourceTimeout, error)
- func (r ResourceShim) DeprecationMessage() string
- func (r ResourceShim) Importer() shim.ImportFunc
- func (r ResourceShim) InstanceState(id string, object, meta map[string]interface{}) (shim.InstanceState, error)
- func (r ResourceShim) Schema() shim.SchemaMap
- func (r ResourceShim) SchemaVersion() int
- func (r ResourceShim) Timeouts() *shim.ResourceTimeout
- type Schema
- type SchemaMap
- type SchemaShim
- func (s SchemaShim) Computed() bool
- func (s SchemaShim) ConflictsWith() []string
- func (s SchemaShim) Default() interface{}
- func (s SchemaShim) DefaultFunc() shim.SchemaDefaultFunc
- func (s SchemaShim) DefaultValue() (interface{}, error)
- func (s SchemaShim) Deprecated() string
- func (s SchemaShim) Description() string
- func (s SchemaShim) Elem() interface{}
- func (s SchemaShim) ForceNew() bool
- func (s SchemaShim) MaxItems() int
- func (s SchemaShim) MinItems() int
- func (s SchemaShim) Optional() bool
- func (s SchemaShim) Removed() string
- func (s SchemaShim) Required() bool
- func (s SchemaShim) Sensitive() bool
- func (s SchemaShim) SetElement(v interface{}) (interface{}, error)
- func (s SchemaShim) SetHash(v interface{}) int
- func (s SchemaShim) StateFunc() shim.SchemaStateFunc
- func (s SchemaShim) Type() shim.ValueType
- func (s SchemaShim) UnknownValue() interface{}
Constants ¶
View Source
const UnknownVariableValue = "74D93920-ED26-11E3-AC10-0800200C9A66"
UnknownVariableValue is the sentinal defined in github.com/hashicorp/terraform/configs/hcl2shim, representing a variable whose value is not known at some particular time. The value is duplicated here in order to prevent an additional dependency - it is unlikely to ever change upstream since that would break rather a lot of things.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Schema shim.SchemaMap ResourcesMap shim.ResourceMap DataSourcesMap shim.ResourceMap }
type ProviderShim ¶
type ProviderShim struct {
V *Provider
}
func (ProviderShim) Apply ¶
func (ProviderShim) Apply(t string, s shim.InstanceState, d shim.InstanceDiff) (shim.InstanceState, error)
func (ProviderShim) Configure ¶
func (ProviderShim) Configure(c shim.ResourceConfig) error
func (ProviderShim) DataSourcesMap ¶
func (s ProviderShim) DataSourcesMap() shim.ResourceMap
func (ProviderShim) Diff ¶
func (ProviderShim) Diff(t string, s shim.InstanceState, c shim.ResourceConfig) (shim.InstanceDiff, error)
func (ProviderShim) InitLogging ¶
func (ProviderShim) InitLogging()
func (ProviderShim) IsSet ¶
func (ProviderShim) IsSet(v interface{}) ([]interface{}, bool)
func (ProviderShim) Meta ¶
func (ProviderShim) Meta() interface{}
func (ProviderShim) NewDestroyDiff ¶
func (ProviderShim) NewDestroyDiff() shim.InstanceDiff
func (ProviderShim) NewResourceConfig ¶
func (ProviderShim) NewResourceConfig(object map[string]interface{}) shim.ResourceConfig
func (ProviderShim) ReadDataApply ¶
func (ProviderShim) ReadDataApply(t string, d shim.InstanceDiff) (shim.InstanceState, error)
func (ProviderShim) ReadDataDiff ¶
func (ProviderShim) ReadDataDiff(t string, c shim.ResourceConfig) (shim.InstanceDiff, error)
func (ProviderShim) Refresh ¶
func (ProviderShim) Refresh(t string, s shim.InstanceState) (shim.InstanceState, error)
func (ProviderShim) ResourcesMap ¶
func (s ProviderShim) ResourcesMap() shim.ResourceMap
func (ProviderShim) Schema ¶
func (s ProviderShim) Schema() shim.SchemaMap
func (ProviderShim) Stop ¶
func (ProviderShim) Stop() error
func (ProviderShim) Validate ¶
func (ProviderShim) Validate(c shim.ResourceConfig) ([]string, []error)
func (ProviderShim) ValidateDataSource ¶
func (ProviderShim) ValidateDataSource(t string, c shim.ResourceConfig) ([]string, []error)
func (ProviderShim) ValidateResource ¶
func (ProviderShim) ValidateResource(t string, c shim.ResourceConfig) ([]string, []error)
type Resource ¶
type Resource struct { Schema shim.SchemaMap SchemaVersion int Importer shim.ImportFunc DeprecationMessage string Timeouts *shim.ResourceTimeout }
type ResourceMap ¶
func (ResourceMap) Len ¶
func (m ResourceMap) Len() int
type ResourceShim ¶
type ResourceShim struct {
V *Resource
}
func (ResourceShim) DecodeTimeouts ¶
func (r ResourceShim) DecodeTimeouts(config shim.ResourceConfig) (*shim.ResourceTimeout, error)
func (ResourceShim) DeprecationMessage ¶
func (r ResourceShim) DeprecationMessage() string
func (ResourceShim) Importer ¶
func (r ResourceShim) Importer() shim.ImportFunc
func (ResourceShim) InstanceState ¶
func (r ResourceShim) InstanceState(id string, object, meta map[string]interface{}) (shim.InstanceState, error)
func (ResourceShim) Schema ¶
func (r ResourceShim) Schema() shim.SchemaMap
func (ResourceShim) SchemaVersion ¶
func (r ResourceShim) SchemaVersion() int
func (ResourceShim) Timeouts ¶
func (r ResourceShim) Timeouts() *shim.ResourceTimeout
type Schema ¶
type Schema struct { Type shim.ValueType Optional bool Required bool Default interface{} DefaultFunc shim.SchemaDefaultFunc Description string Computed bool ForceNew bool StateFunc shim.SchemaStateFunc Elem interface{} MaxItems int MinItems int ConflictsWith []string Removed string Deprecated string Sensitive bool }
type SchemaShim ¶
type SchemaShim struct {
V *Schema
}
nolint: golint
func (SchemaShim) Computed ¶
func (s SchemaShim) Computed() bool
func (SchemaShim) ConflictsWith ¶
func (s SchemaShim) ConflictsWith() []string
func (SchemaShim) Default ¶
func (s SchemaShim) Default() interface{}
func (SchemaShim) DefaultFunc ¶
func (s SchemaShim) DefaultFunc() shim.SchemaDefaultFunc
func (SchemaShim) DefaultValue ¶
func (s SchemaShim) DefaultValue() (interface{}, error)
func (SchemaShim) Deprecated ¶
func (s SchemaShim) Deprecated() string
func (SchemaShim) Description ¶
func (s SchemaShim) Description() string
func (SchemaShim) Elem ¶
func (s SchemaShim) Elem() interface{}
func (SchemaShim) ForceNew ¶
func (s SchemaShim) ForceNew() bool
func (SchemaShim) MaxItems ¶
func (s SchemaShim) MaxItems() int
func (SchemaShim) MinItems ¶
func (s SchemaShim) MinItems() int
func (SchemaShim) Optional ¶
func (s SchemaShim) Optional() bool
func (SchemaShim) Removed ¶
func (s SchemaShim) Removed() string
func (SchemaShim) Required ¶
func (s SchemaShim) Required() bool
func (SchemaShim) Sensitive ¶
func (s SchemaShim) Sensitive() bool
func (SchemaShim) SetElement ¶
func (s SchemaShim) SetElement(v interface{}) (interface{}, error)
func (SchemaShim) SetHash ¶
func (s SchemaShim) SetHash(v interface{}) int
func (SchemaShim) StateFunc ¶
func (s SchemaShim) StateFunc() shim.SchemaStateFunc
func (SchemaShim) Type ¶
func (s SchemaShim) Type() shim.ValueType
func (SchemaShim) UnknownValue ¶
func (s SchemaShim) UnknownValue() interface{}
Click to show internal directories.
Click to hide internal directories.