Documentation ¶
Index ¶
- Constants
- Variables
- func MakeClient(cmd *exec.Cmd, rc *goplug.ReattachConfig) *plugin.GRPCProvider
- func MakeClientConfig() *goplug.ClientConfig
- func MakeClientCustom(config *goplug.ClientConfig) *plugin.GRPCProvider
- func String() string
- type ApplyResourceChangeRequest
- type Attribute
- type Block
- type ConfigureProviderRequest
- type GRPCProvider
- type NestedBlock
- type Object
- type PlanResourceChangeRequest
- type ValidateProviderConfigRequest
- type ValidateResourceConfigRequest
Constants ¶
const Header = "Terraform-Version"
Header is the header name used to send the current terraform version in http requests.
Variables ¶
var Prerelease = ""
A pre-release marker for the version. If this is "" (empty string) then it means that it is a final release. Otherwise, this is a pre-release such as "dev" (in development), "beta", "rc1", etc.
var SemVer *version.Version
SemVer is an instance of version.Version. This has the secondary benefit of verifying during tests and init time that our version is a proper semantic version, which should always be the case.
var TF_VERSION = Version
var Version = "1.0.6"
The main version number that is being run at the moment.
Functions ¶
func MakeClient ¶
func MakeClient(cmd *exec.Cmd, rc *goplug.ReattachConfig) *plugin.GRPCProvider
MakeClient creates a Terraform client from a command and/or a RPC port. It's used to access a provider in a clean way.
c := MakeClient(exec.Command("tf-provider-example.exe"), nil) c.ReadResource(...)
func MakeClientConfig ¶ added in v1.0.1
func MakeClientConfig() *goplug.ClientConfig
MakeClientConfig creates a go-plugin ClientConfig object optimal for connecting to a provider.
func MakeClientCustom ¶ added in v1.0.1
func MakeClientCustom(config *goplug.ClientConfig) *plugin.GRPCProvider
MakeClientCustom acts like MakeClient except you can pass your custom ClientConfig. Use MakeClientConfig() for some defaults.
Types ¶
type ApplyResourceChangeRequest ¶
type ApplyResourceChangeRequest = providers.ApplyResourceChangeRequest
type Attribute ¶
type Attribute = configschema.Attribute
type Block ¶
type Block = configschema.Block
type ConfigureProviderRequest ¶
type ConfigureProviderRequest = providers.ConfigureProviderRequest
type GRPCProvider ¶
type GRPCProvider = plugin.GRPCProvider
type NestedBlock ¶
type NestedBlock = configschema.NestedBlock
type Object ¶
type Object = configschema.Object
type PlanResourceChangeRequest ¶
type PlanResourceChangeRequest = providers.PlanResourceChangeRequest
type ValidateProviderConfigRequest ¶
type ValidateProviderConfigRequest = providers.ValidateProviderConfigRequest
type ValidateResourceConfigRequest ¶
type ValidateResourceConfigRequest = providers.ValidateResourceConfigRequest
Directories ¶
Path | Synopsis |
---|---|
Package configschema contains types for describing the expected structure of a configuration block whose shape is not known until runtime.
|
Package configschema contains types for describing the expected structure of a configuration block whose shape is not known until runtime. |
Package providers contains the interface and primary types required to implement a Terraform resource provider.
|
Package providers contains the interface and primary types required to implement a Terraform resource provider. |
Package tfdiags is a utility package for representing errors and warnings in a manner that allows us to produce good messages for the user.
|
Package tfdiags is a utility package for representing errors and warnings in a manner that allows us to produce good messages for the user. |