Documentation ¶
Overview ¶
Package plugin contains types and functions to help Terraform plugins implement the plugin rpc interface. The primary Provider type will be responsible for converting from the grpc wire protocol to the types and methods known to the provider implementations.
Index ¶
- func SetUnknowns(val cty.Value, schema *configschema.Block) cty.Value
- type GRPCProviderServer
- func (s *GRPCProviderServer) ApplyResourceChange(_ context.Context, req *proto.ApplyResourceChange_Request) (*proto.ApplyResourceChange_Response, error)
- func (s *GRPCProviderServer) Configure(_ context.Context, req *proto.Configure_Request) (*proto.Configure_Response, error)
- func (s *GRPCProviderServer) GetSchema(_ context.Context, req *proto.GetProviderSchema_Request) (*proto.GetProviderSchema_Response, error)
- func (s *GRPCProviderServer) ImportResourceState(_ context.Context, req *proto.ImportResourceState_Request) (*proto.ImportResourceState_Response, error)
- func (s *GRPCProviderServer) PlanResourceChange(_ context.Context, req *proto.PlanResourceChange_Request) (*proto.PlanResourceChange_Response, error)
- func (s *GRPCProviderServer) PrepareProviderConfig(_ context.Context, req *proto.PrepareProviderConfig_Request) (*proto.PrepareProviderConfig_Response, error)
- func (s *GRPCProviderServer) ReadDataSource(_ context.Context, req *proto.ReadDataSource_Request) (*proto.ReadDataSource_Response, error)
- func (s *GRPCProviderServer) ReadResource(_ context.Context, req *proto.ReadResource_Request) (*proto.ReadResource_Response, error)
- func (s *GRPCProviderServer) Stop(_ context.Context, _ *proto.Stop_Request) (*proto.Stop_Response, error)
- func (s *GRPCProviderServer) UpgradeResourceState(_ context.Context, req *proto.UpgradeResourceState_Request) (*proto.UpgradeResourceState_Response, error)
- func (s *GRPCProviderServer) ValidateDataSourceConfig(_ context.Context, req *proto.ValidateDataSourceConfig_Request) (*proto.ValidateDataSourceConfig_Response, error)
- func (s *GRPCProviderServer) ValidateResourceTypeConfig(_ context.Context, req *proto.ValidateResourceTypeConfig_Request) (*proto.ValidateResourceTypeConfig_Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUnknowns ¶
SetUnknowns takes a cty.Value, and compares it to the schema setting any null values which are computed to unknown.
Types ¶
type GRPCProviderServer ¶
type GRPCProviderServer struct {
// contains filtered or unexported fields
}
GRPCProviderServer handles the server, or plugin side of the rpc connection.
func NewGRPCProviderServerShim ¶
func NewGRPCProviderServerShim(p terraform.ResourceProvider) *GRPCProviderServer
NewGRPCProviderServerShim wraps a terraform.ResourceProvider in a proto.ProviderServer implementation. If the provided provider is not a *schema.Provider, this will return nil,
func (*GRPCProviderServer) ApplyResourceChange ¶
func (s *GRPCProviderServer) ApplyResourceChange(_ context.Context, req *proto.ApplyResourceChange_Request) (*proto.ApplyResourceChange_Response, error)
func (*GRPCProviderServer) Configure ¶
func (s *GRPCProviderServer) Configure(_ context.Context, req *proto.Configure_Request) (*proto.Configure_Response, error)
func (*GRPCProviderServer) GetSchema ¶
func (s *GRPCProviderServer) GetSchema(_ context.Context, req *proto.GetProviderSchema_Request) (*proto.GetProviderSchema_Response, error)
func (*GRPCProviderServer) ImportResourceState ¶
func (s *GRPCProviderServer) ImportResourceState(_ context.Context, req *proto.ImportResourceState_Request) (*proto.ImportResourceState_Response, error)
func (*GRPCProviderServer) PlanResourceChange ¶
func (s *GRPCProviderServer) PlanResourceChange(_ context.Context, req *proto.PlanResourceChange_Request) (*proto.PlanResourceChange_Response, error)
func (*GRPCProviderServer) PrepareProviderConfig ¶
func (s *GRPCProviderServer) PrepareProviderConfig(_ context.Context, req *proto.PrepareProviderConfig_Request) (*proto.PrepareProviderConfig_Response, error)
func (*GRPCProviderServer) ReadDataSource ¶
func (s *GRPCProviderServer) ReadDataSource(_ context.Context, req *proto.ReadDataSource_Request) (*proto.ReadDataSource_Response, error)
func (*GRPCProviderServer) ReadResource ¶
func (s *GRPCProviderServer) ReadResource(_ context.Context, req *proto.ReadResource_Request) (*proto.ReadResource_Response, error)
func (*GRPCProviderServer) Stop ¶
func (s *GRPCProviderServer) Stop(_ context.Context, _ *proto.Stop_Request) (*proto.Stop_Response, error)
func (*GRPCProviderServer) UpgradeResourceState ¶
func (s *GRPCProviderServer) UpgradeResourceState(_ context.Context, req *proto.UpgradeResourceState_Request) (*proto.UpgradeResourceState_Response, error)
func (*GRPCProviderServer) ValidateDataSourceConfig ¶
func (s *GRPCProviderServer) ValidateDataSourceConfig(_ context.Context, req *proto.ValidateDataSourceConfig_Request) (*proto.ValidateDataSourceConfig_Response, error)
func (*GRPCProviderServer) ValidateResourceTypeConfig ¶
func (s *GRPCProviderServer) ValidateResourceTypeConfig(_ context.Context, req *proto.ValidateResourceTypeConfig_Request) (*proto.ValidateResourceTypeConfig_Response, error)
Click to show internal directories.
Click to hide internal directories.