schema

package
v3.98.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

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
}

func (*Provider) Shim

func (p *Provider) Shim() shim.Provider

type ProviderShim

type ProviderShim struct {
	V *Provider
}

func (ProviderShim) Apply

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) 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) 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) Refresh

func (ProviderShim) ResourcesMap

func (s ProviderShim) ResourcesMap() shim.ResourceMap

func (ProviderShim) Schema

func (s ProviderShim) Schema() shim.SchemaMap

func (ProviderShim) Stop

func (ProviderShim) Stop(ctx context.Context) error

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
}

func (*Resource) Shim

func (r *Resource) Shim() shim.Resource

type ResourceMap

type ResourceMap map[string]shim.Resource

func (ResourceMap) Get

func (m ResourceMap) Get(key string) shim.Resource

func (ResourceMap) GetOk

func (m ResourceMap) GetOk(key string) (shim.Resource, bool)

func (ResourceMap) Len

func (m ResourceMap) Len() int

func (ResourceMap) Range

func (m ResourceMap) Range(each func(key string, value shim.Resource) bool)

func (ResourceMap) Set

func (m ResourceMap) Set(key string, value shim.Resource)

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
}

func (*Schema) Shim

func (s *Schema) Shim() shim.Schema

type SchemaMap

type SchemaMap map[string]shim.Schema

func (SchemaMap) Get

func (m SchemaMap) Get(key string) shim.Schema

func (SchemaMap) GetOk

func (m SchemaMap) GetOk(key string) (shim.Schema, bool)

func (SchemaMap) Len

func (m SchemaMap) Len() int

func (SchemaMap) Range

func (m SchemaMap) Range(each func(key string, value shim.Schema) bool)

func (SchemaMap) Validate added in v3.81.0

func (m SchemaMap) Validate() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL