Documentation
¶
Index ¶
- func SchemaSupportsTerraform(v string) error
- type DataSource
- type MockReader
- func (r *MockReader) DataSourceSchema(dsType string) (*tfjson.Schema, error)
- func (r *MockReader) DataSources() ([]DataSource, error)
- func (r *MockReader) ProviderConfigSchema(name string) (*tfjson.Schema, error)
- func (r *MockReader) Providers() ([]string, error)
- func (r *MockReader) ResourceSchema(rType string) (*tfjson.Schema, error)
- func (r *MockReader) Resources() ([]Resource, error)
- type NoSchemaAvailableErr
- type Reader
- type Resource
- type SchemaUnavailableErr
- type Storage
- func (s *Storage) DataSourceSchema(dsType string) (*tfjson.Schema, error)
- func (s *Storage) DataSources() ([]DataSource, error)
- func (s *Storage) ObtainSchemasForModule(tf *exec.Executor, dir string) error
- func (s *Storage) ProviderConfigSchema(name string) (*tfjson.Schema, error)
- func (s *Storage) Providers() ([]string, error)
- func (s *Storage) ResourceSchema(rType string) (*tfjson.Schema, error)
- func (s *Storage) Resources() ([]Resource, error)
- func (s *Storage) SetLogger(logger *log.Logger)
- func (s *Storage) SetSynchronous()
- type StorageFactory
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SchemaSupportsTerraform ¶
Types ¶
type DataSource ¶ added in v0.2.0
type DataSource struct {
Name string
Provider string
Description string
DescriptionKind tfjson.SchemaDescriptionKind
}
type MockReader ¶ added in v0.2.0
type MockReader struct {
ProviderSchemas *tfjson.ProviderSchemas
ProviderSchemaErr error
ProvidersErr error
ResourceSchemaErr error
ResourcesErr error
DataSourceSchemaErr error
DataSourcesErr error
}
func (*MockReader) DataSourceSchema ¶ added in v0.2.0
func (r *MockReader) DataSourceSchema(dsType string) (*tfjson.Schema, error)
func (*MockReader) DataSources ¶ added in v0.2.0
func (r *MockReader) DataSources() ([]DataSource, error)
func (*MockReader) ProviderConfigSchema ¶ added in v0.2.0
func (r *MockReader) ProviderConfigSchema(name string) (*tfjson.Schema, error)
func (*MockReader) Providers ¶ added in v0.2.0
func (r *MockReader) Providers() ([]string, error)
func (*MockReader) ResourceSchema ¶ added in v0.2.0
func (r *MockReader) ResourceSchema(rType string) (*tfjson.Schema, error)
func (*MockReader) Resources ¶ added in v0.2.0
func (r *MockReader) Resources() ([]Resource, error)
type NoSchemaAvailableErr ¶ added in v0.2.0
type NoSchemaAvailableErr struct{}
func (*NoSchemaAvailableErr) Error ¶ added in v0.2.0
func (e *NoSchemaAvailableErr) Error() string
type Resource ¶ added in v0.2.0
type Resource struct {
Name string
Provider string
Description string
DescriptionKind tfjson.SchemaDescriptionKind
}
type SchemaUnavailableErr ¶
type SchemaUnavailableErr struct {
}
func (*SchemaUnavailableErr) Error ¶
func (e *SchemaUnavailableErr) Error() string
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage() *Storage
func (*Storage) DataSourceSchema ¶
func (*Storage) DataSources ¶ added in v0.2.0
func (s *Storage) DataSources() ([]DataSource, error)
func (*Storage) ObtainSchemasForModule ¶ added in v0.4.0
ObtainSchemasForModule will (by default) asynchronously obtain schema via tf and store it for later consumption via Reader methods
func (*Storage) ProviderConfigSchema ¶
func (*Storage) ResourceSchema ¶
func (*Storage) SetSynchronous ¶
func (s *Storage) SetSynchronous()
type StorageFactory ¶ added in v0.4.0
type StorageFactory func() *Storage
func MockStorage ¶
func MockStorage(ps *tfjson.ProviderSchemas) StorageFactory
Click to show internal directories.
Click to hide internal directories.