Documentation ¶
Index ¶
- Constants
- func Client(m discovery.PluginMeta) *plugin.Client
- func ClientConfig(m discovery.PluginMeta) *plugin.ClientConfig
- func NewGRPCProvider(meta discovery.PluginMeta) (*plugin.GRPCProvider, error)
- type HomeDirInterface
- type MockResourceFactory
- type ParallelResourceReader
- type ProviderConfig
- type ProviderDownloader
- type ProviderDownloaderInterface
- type ProviderInstaller
- type ProviderLibrary
- type ReadResourceArgs
- type ResourceReader
- type SchemaSupplier
- type TerraformProvider
- type TerraformResourceFactory
Constants ¶
View Source
const ( AWS string = "aws" GITHUB string = "github" GOOGLE string = "google" AZURE string = "azurerm" )
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(m discovery.PluginMeta) *plugin.Client
Client returns a plugin client for the plugin described by the given metadata.
func ClientConfig ¶
func ClientConfig(m discovery.PluginMeta) *plugin.ClientConfig
func NewGRPCProvider ¶
func NewGRPCProvider(meta discovery.PluginMeta) (*plugin.GRPCProvider, error)
Types ¶
type HomeDirInterface ¶
type MockResourceFactory ¶
MockResourceFactory is an autogenerated mock type for the ResourceFactory type
func (*MockResourceFactory) CreateAbstractResource ¶
func (_m *MockResourceFactory) CreateAbstractResource(ty string, id string, data map[string]interface{}) *resource.Resource
CreateAbstractResource provides a mock function with given fields: ty, id, data
func (*MockResourceFactory) CreateResource ¶
func (_m *MockResourceFactory) CreateResource(data interface{}, ty string) (*cty.Value, error)
CreateResource provides a mock function with given fields: data, ty
type ParallelResourceReader ¶
type ParallelResourceReader struct {
// contains filtered or unexported fields
}
func NewParallelResourceReader ¶
func NewParallelResourceReader(runner *parallel.ParallelRunner) *ParallelResourceReader
type ProviderConfig ¶
func (*ProviderConfig) GetBinaryName ¶
func (c *ProviderConfig) GetBinaryName() string
func (*ProviderConfig) GetDownloadUrl ¶
func (c *ProviderConfig) GetDownloadUrl() string
type ProviderDownloader ¶
type ProviderDownloader struct {
// contains filtered or unexported fields
}
func NewProviderDownloader ¶
func NewProviderDownloader() *ProviderDownloader
func (*ProviderDownloader) Download ¶
func (p *ProviderDownloader) Download(url, path string) error
type ProviderInstaller ¶
type ProviderInstaller struct {
// contains filtered or unexported fields
}
func NewProviderInstaller ¶
func NewProviderInstaller(config ProviderConfig) (*ProviderInstaller, error)
func (*ProviderInstaller) Install ¶
func (p *ProviderInstaller) Install() (string, error)
type ProviderLibrary ¶
type ProviderLibrary struct {
// contains filtered or unexported fields
}
func NewProviderLibrary ¶
func NewProviderLibrary() *ProviderLibrary
func (*ProviderLibrary) AddProvider ¶
func (p *ProviderLibrary) AddProvider(name string, provider TerraformProvider)
func (*ProviderLibrary) Cleanup ¶
func (p *ProviderLibrary) Cleanup()
func (*ProviderLibrary) Provider ¶
func (p *ProviderLibrary) Provider(name string) TerraformProvider
type ReadResourceArgs ¶
type ReadResourceArgs struct { Ty resource.ResourceType ID string Attributes map[string]string }
type ResourceReader ¶
type ResourceReader interface {
ReadResource(args ReadResourceArgs) (*cty.Value, error)
}
type SchemaSupplier ¶
type SchemaSupplier interface {
Schema() map[string]tfproviders.Schema
}
type TerraformProvider ¶
type TerraformProvider interface { SchemaSupplier ResourceReader Cleanup() Name() string Version() string }
Representation of a TF Provider able to give it's schema and reade a resource
type TerraformResourceFactory ¶
type TerraformResourceFactory struct {
// contains filtered or unexported fields
}
func NewTerraformResourceFactory ¶
func NewTerraformResourceFactory(resourceSchemaRepository resource.SchemaRepositoryInterface) *TerraformResourceFactory
func (*TerraformResourceFactory) CreateAbstractResource ¶
func (r *TerraformResourceFactory) CreateAbstractResource(ty, id string, data map[string]interface{}) *resource.Resource
Source Files ¶
Click to show internal directories.
Click to hide internal directories.