state

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyExistsError

type AlreadyExistsError struct {
	Idx string
}

func (*AlreadyExistsError) Error

func (e *AlreadyExistsError) Error() string

type LocalSchemaSource

type LocalSchemaSource struct {
	ModulePath string
}

func (LocalSchemaSource) String

func (lss LocalSchemaSource) String() string

type Module

type Module struct {
	Path string

	ModManifest      *datadir.ModuleManifest
	ModManifestErr   error
	ModManifestState op.OpState

	TerraformVersion      *version.Version
	TerraformVersionErr   error
	TerraformVersionState op.OpState

	ProviderSchemaErr   error
	ProviderSchemaState op.OpState

	ParsedFiles  map[string]*hcl.File
	ParsingErr   error
	ParsingState op.OpState

	Meta      ModuleMetadata
	MetaErr   error
	MetaState op.OpState

	Diagnostics map[string]hcl.Diagnostics
}

type ModuleLookupFunc

type ModuleLookupFunc func(string) (*Module, error)

type ModuleMetadata

type ModuleMetadata struct {
	CoreRequirements     version.Constraints
	ProviderReferences   map[tfmod.ProviderRef]tfaddr.Provider
	ProviderRequirements map[tfaddr.Provider]version.Constraints
}

type ModuleNotFoundError

type ModuleNotFoundError struct {
	Path string
}

func (*ModuleNotFoundError) Error

func (e *ModuleNotFoundError) Error() string

type ModuleReader

type ModuleReader interface {
	CallersOfModule(modPath string) ([]*Module, error)
	ModuleByPath(modPath string) (*Module, error)
	List() ([]*Module, error)
}

type ModuleStore

type ModuleStore struct {
	// contains filtered or unexported fields
}

func (*ModuleStore) Add

func (s *ModuleStore) Add(modPath string) error

func (*ModuleStore) CallersOfModule

func (s *ModuleStore) CallersOfModule(modPath string) ([]*Module, error)

func (*ModuleStore) FinishProviderSchemaLoading

func (s *ModuleStore) FinishProviderSchemaLoading(path string, psErr error) error

func (*ModuleStore) List

func (s *ModuleStore) List() ([]*Module, error)

func (*ModuleStore) ModuleByPath

func (s *ModuleStore) ModuleByPath(path string) (*Module, error)

func (*ModuleStore) SetMetaState

func (s *ModuleStore) SetMetaState(path string, state op.OpState) error

func (*ModuleStore) SetModManifestState

func (s *ModuleStore) SetModManifestState(path string, state op.OpState) error

func (*ModuleStore) SetParsingState

func (s *ModuleStore) SetParsingState(path string, state op.OpState) error

func (*ModuleStore) SetProviderSchemaState

func (s *ModuleStore) SetProviderSchemaState(path string, state op.OpState) error

func (*ModuleStore) SetTerraformVersionState

func (s *ModuleStore) SetTerraformVersionState(path string, state op.OpState) error

func (*ModuleStore) UpdateDiagnostics

func (s *ModuleStore) UpdateDiagnostics(path string, diags map[string]hcl.Diagnostics) error

func (*ModuleStore) UpdateMetadata

func (s *ModuleStore) UpdateMetadata(path string, meta *tfmod.Meta, mErr error) error

func (*ModuleStore) UpdateModManifest

func (s *ModuleStore) UpdateModManifest(path string, manifest *datadir.ModuleManifest, mErr error) error

func (*ModuleStore) UpdateParsedFiles

func (s *ModuleStore) UpdateParsedFiles(path string, pFiles map[string]*hcl.File, pErr error) error

func (*ModuleStore) UpdateTerraformVersion

func (s *ModuleStore) UpdateTerraformVersion(modPath string, tfVer *version.Version, pv map[tfaddr.Provider]*version.Version, vErr error) error

type NoSchemaError

type NoSchemaError struct{}

func (*NoSchemaError) Error

func (e *NoSchemaError) Error() string

type PreloadedSchemaSource

type PreloadedSchemaSource struct {
}

func (PreloadedSchemaSource) String

func (PreloadedSchemaSource) String() string

type ProviderSchema

type ProviderSchema struct {
	Address tfaddr.Provider
	Version *version.Version
	Source  SchemaSource

	Schema *tfschema.ProviderSchema
}

type ProviderSchemaIterator

type ProviderSchemaIterator struct {
	// contains filtered or unexported fields
}

func (*ProviderSchemaIterator) Next

type ProviderSchemaStore

type ProviderSchemaStore struct {
	// contains filtered or unexported fields
}

func (*ProviderSchemaStore) AddLocalSchema

func (s *ProviderSchemaStore) AddLocalSchema(modPath string, addr tfaddr.Provider, schema *tfschema.ProviderSchema) error

func (*ProviderSchemaStore) AddPreloadedSchema

func (s *ProviderSchemaStore) AddPreloadedSchema(addr tfaddr.Provider, pv *version.Version, schema *tfschema.ProviderSchema) error

func (*ProviderSchemaStore) ListSchemas

func (s *ProviderSchemaStore) ListSchemas() (*ProviderSchemaIterator, error)

func (*ProviderSchemaStore) ProviderSchema

func (s *ProviderSchemaStore) ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error)

type SchemaReader

type SchemaReader interface {
	ProviderSchema(modPath string, addr tfaddr.Provider, vc version.Constraints) (*tfschema.ProviderSchema, error)
}

type SchemaSource

type SchemaSource interface {
	String() string
	// contains filtered or unexported methods
}

type StateStore

type StateStore struct {
	Modules         *ModuleStore
	ProviderSchemas *ProviderSchemaStore
}

func NewStateStore

func NewStateStore() (*StateStore, error)

func (*StateStore) SetLogger added in v0.16.1

func (s *StateStore) SetLogger(logger *log.Logger)

type StringerFieldIndexer

type StringerFieldIndexer struct {
	Field string
}

func (*StringerFieldIndexer) FromArgs

func (s *StringerFieldIndexer) FromArgs(args ...interface{}) ([]byte, error)

func (*StringerFieldIndexer) FromObject

func (s *StringerFieldIndexer) FromObject(obj interface{}) (bool, []byte, error)

func (*StringerFieldIndexer) PrefixFromArgs

func (s *StringerFieldIndexer) PrefixFromArgs(args ...interface{}) ([]byte, error)

type VersionFieldIndexer

type VersionFieldIndexer struct {
	Field string
}

func (*VersionFieldIndexer) FromArgs

func (s *VersionFieldIndexer) FromArgs(args ...interface{}) ([]byte, error)

func (*VersionFieldIndexer) FromObject

func (s *VersionFieldIndexer) FromObject(obj interface{}) (bool, []byte, error)

func (*VersionFieldIndexer) PrefixFromArgs

func (s *VersionFieldIndexer) PrefixFromArgs(args ...interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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