Documentation ¶
Index ¶
- type Provider
- type ProviderShim
- func (ProviderShim) Apply(ctx context.Context, t string, s shim.InstanceState, d shim.InstanceDiff) (shim.InstanceState, error)
- func (ProviderShim) Configure(ctx context.Context, c shim.ResourceConfig) error
- func (s ProviderShim) DataSourcesMap() shim.ResourceMap
- func (ProviderShim) Diff(ctx context.Context, t string, s shim.InstanceState, c shim.ResourceConfig, ...) (shim.InstanceDiff, error)
- func (ProviderShim) InitLogging(ctx context.Context)
- func (s ProviderShim) InternalValidate() error
- func (ProviderShim) IsSet(ctx context.Context, v interface{}) ([]interface{}, bool)
- func (ProviderShim) Meta(ctx context.Context) interface{}
- func (ProviderShim) NewDestroyDiff(ctx context.Context, t string, _ shim.TimeoutOptions) shim.InstanceDiff
- func (ProviderShim) NewProviderConfig(ctx context.Context, object map[string]interface{}) shim.ResourceConfig
- func (ProviderShim) NewResourceConfig(ctx context.Context, object map[string]interface{}) shim.ResourceConfig
- func (ProviderShim) ReadDataApply(ctx context.Context, t string, d shim.InstanceDiff) (shim.InstanceState, error)
- func (ProviderShim) ReadDataDiff(ctx context.Context, t string, c shim.ResourceConfig) (shim.InstanceDiff, error)
- func (ProviderShim) Refresh(ctx context.Context, t string, s shim.InstanceState, c shim.ResourceConfig) (shim.InstanceState, error)
- func (s ProviderShim) ResourcesMap() shim.ResourceMap
- func (s ProviderShim) Schema() shim.SchemaMap
- func (ProviderShim) Stop(ctx context.Context) error
- func (ProviderShim) SupportsUnknownCollections() bool
- func (ProviderShim) Validate(ctx context.Context, c shim.ResourceConfig) ([]string, []error)
- func (ProviderShim) ValidateDataSource(ctx context.Context, t string, c shim.ResourceConfig) ([]string, []error)
- func (ProviderShim) ValidateResource(ctx context.Context, 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) ExactlyOneOf() []string
- 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
Constants ¶
This section is empty.
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( ctx context.Context, t string, s shim.InstanceState, d shim.InstanceDiff, ) (shim.InstanceState, error)
func (ProviderShim) Configure ¶
func (ProviderShim) Configure( ctx context.Context, c shim.ResourceConfig, ) error
func (ProviderShim) DataSourcesMap ¶
func (s ProviderShim) DataSourcesMap() shim.ResourceMap
func (ProviderShim) Diff ¶
func (ProviderShim) Diff( ctx context.Context, t string, s shim.InstanceState, c shim.ResourceConfig, opts shim.DiffOptions, ) (shim.InstanceDiff, error)
func (ProviderShim) InitLogging ¶
func (ProviderShim) InitLogging(ctx context.Context)
func (ProviderShim) InternalValidate ¶ added in v3.81.0
func (s ProviderShim) InternalValidate() error
func (ProviderShim) IsSet ¶
func (ProviderShim) IsSet(ctx context.Context, v interface{}) ([]interface{}, bool)
func (ProviderShim) Meta ¶
func (ProviderShim) Meta(ctx context.Context) interface{}
func (ProviderShim) NewDestroyDiff ¶
func (ProviderShim) NewDestroyDiff(ctx context.Context, t string, _ shim.TimeoutOptions) shim.InstanceDiff
func (ProviderShim) NewProviderConfig ¶ added in v3.89.0
func (ProviderShim) NewProviderConfig( ctx context.Context, object map[string]interface{}, ) shim.ResourceConfig
func (ProviderShim) NewResourceConfig ¶
func (ProviderShim) NewResourceConfig( ctx context.Context, object map[string]interface{}, ) shim.ResourceConfig
func (ProviderShim) ReadDataApply ¶
func (ProviderShim) ReadDataApply( ctx context.Context, t string, d shim.InstanceDiff, ) (shim.InstanceState, error)
func (ProviderShim) ReadDataDiff ¶
func (ProviderShim) ReadDataDiff( ctx context.Context, t string, c shim.ResourceConfig, ) (shim.InstanceDiff, error)
func (ProviderShim) Refresh ¶
func (ProviderShim) Refresh( ctx context.Context, t string, s shim.InstanceState, c shim.ResourceConfig, ) (shim.InstanceState, error)
func (ProviderShim) ResourcesMap ¶
func (s ProviderShim) ResourcesMap() shim.ResourceMap
func (ProviderShim) Schema ¶
func (s ProviderShim) Schema() shim.SchemaMap
func (ProviderShim) SupportsUnknownCollections ¶ added in v3.88.0
func (ProviderShim) SupportsUnknownCollections() bool
func (ProviderShim) Validate ¶
func (ProviderShim) Validate(ctx context.Context, c shim.ResourceConfig) ([]string, []error)
func (ProviderShim) ValidateDataSource ¶
func (ProviderShim) ValidateDataSource( ctx context.Context, t string, c shim.ResourceConfig, ) ([]string, []error)
func (ProviderShim) ValidateResource ¶
func (ProviderShim) ValidateResource( ctx context.Context, 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 ExactlyOneOf []string Removed string Deprecated string Sensitive bool }
type SchemaShim ¶
type SchemaShim struct {
V *Schema
}
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) ExactlyOneOf ¶ added in v3.29.0
func (s SchemaShim) ExactlyOneOf() []string
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
Click to show internal directories.
Click to hide internal directories.