terraform

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 HomeDirInterface interface {
	Dir() (string, error)
}

type ParallelResourceReader

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

func NewParallelResourceReader

func NewParallelResourceReader(runner *parallel.ParallelRunner) *ParallelResourceReader

func (*ParallelResourceReader) Run

func (p *ParallelResourceReader) Run(runnable func() (cty.Value, error))

func (*ParallelResourceReader) Wait

func (p *ParallelResourceReader) Wait() ([]cty.Value, error)

type ProviderConfig

type ProviderConfig struct {
	Key       string
	Version   string
	ConfigDir string
}

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 ProviderDownloaderInterface

type ProviderDownloaderInterface interface {
	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{}

func NewTerraformResourceFactory

func NewTerraformResourceFactory() *TerraformResourceFactory

func (*TerraformResourceFactory) CreateAbstractResource

func (r *TerraformResourceFactory) CreateAbstractResource(ty, id string, data map[string]interface{}) *resource.Resource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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