schema

package
v3.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

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
}

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(c shim.ResourceConfig) error

func (ProviderShim) DataSourcesMap

func (s ProviderShim) DataSourcesMap() shim.ResourceMap

func (ProviderShim) Diff

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) 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() 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
}

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

func (m SchemaMap) Delete(key string)

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

func (m SchemaMap) Set(key string, value shim.Schema)

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) 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{}

Jump to

Keyboard shortcuts

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