Documentation ¶
Overview ¶
Package proto5server contains the provider server implementation compatible with protocol version 5 (tfprotov5.ProviderServer).
Index ¶
- type Server
- func (s *Server) ApplyResourceChange(ctx context.Context, proto5Req *tfprotov5.ApplyResourceChangeRequest) (*tfprotov5.ApplyResourceChangeResponse, error)
- func (s *Server) ConfigureProvider(ctx context.Context, proto5Req *tfprotov5.ConfigureProviderRequest) (*tfprotov5.ConfigureProviderResponse, error)
- func (s *Server) GetProviderSchema(ctx context.Context, proto5Req *tfprotov5.GetProviderSchemaRequest) (*tfprotov5.GetProviderSchemaResponse, error)
- func (s *Server) ImportResourceState(ctx context.Context, proto5Req *tfprotov5.ImportResourceStateRequest) (*tfprotov5.ImportResourceStateResponse, error)
- func (s *Server) PlanResourceChange(ctx context.Context, proto5Req *tfprotov5.PlanResourceChangeRequest) (*tfprotov5.PlanResourceChangeResponse, error)
- func (s *Server) PrepareProviderConfig(ctx context.Context, proto5Req *tfprotov5.PrepareProviderConfigRequest) (*tfprotov5.PrepareProviderConfigResponse, error)
- func (s *Server) ReadDataSource(ctx context.Context, proto5Req *tfprotov5.ReadDataSourceRequest) (*tfprotov5.ReadDataSourceResponse, error)
- func (s *Server) ReadResource(ctx context.Context, proto5Req *tfprotov5.ReadResourceRequest) (*tfprotov5.ReadResourceResponse, error)
- func (s *Server) StopProvider(ctx context.Context, _ *tfprotov5.StopProviderRequest) (*tfprotov5.StopProviderResponse, error)
- func (s *Server) UpgradeResourceState(ctx context.Context, proto5Req *tfprotov5.UpgradeResourceStateRequest) (*tfprotov5.UpgradeResourceStateResponse, error)
- func (s *Server) ValidateDataSourceConfig(ctx context.Context, proto5Req *tfprotov5.ValidateDataSourceConfigRequest) (*tfprotov5.ValidateDataSourceConfigResponse, error)
- func (s *Server) ValidateResourceTypeConfig(ctx context.Context, proto5Req *tfprotov5.ValidateResourceTypeConfigRequest) (*tfprotov5.ValidateResourceTypeConfigResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Provider server implementation.
func (*Server) ApplyResourceChange ¶
func (s *Server) ApplyResourceChange(ctx context.Context, proto5Req *tfprotov5.ApplyResourceChangeRequest) (*tfprotov5.ApplyResourceChangeResponse, error)
ApplyResourceChange satisfies the tfprotov5.ProviderServer interface.
func (*Server) ConfigureProvider ¶
func (s *Server) ConfigureProvider(ctx context.Context, proto5Req *tfprotov5.ConfigureProviderRequest) (*tfprotov5.ConfigureProviderResponse, error)
ConfigureProvider satisfies the tfprotov5.ProviderServer interface.
func (*Server) GetProviderSchema ¶
func (s *Server) GetProviderSchema(ctx context.Context, proto5Req *tfprotov5.GetProviderSchemaRequest) (*tfprotov5.GetProviderSchemaResponse, error)
GetProviderSchema satisfies the tfprotov5.ProviderServer interface.
func (*Server) ImportResourceState ¶
func (s *Server) ImportResourceState(ctx context.Context, proto5Req *tfprotov5.ImportResourceStateRequest) (*tfprotov5.ImportResourceStateResponse, error)
ImportResourceState satisfies the tfprotov5.ProviderServer interface.
func (*Server) PlanResourceChange ¶
func (s *Server) PlanResourceChange(ctx context.Context, proto5Req *tfprotov5.PlanResourceChangeRequest) (*tfprotov5.PlanResourceChangeResponse, error)
PlanResourceChange satisfies the tfprotov5.ProviderServer interface.
func (*Server) PrepareProviderConfig ¶
func (s *Server) PrepareProviderConfig(ctx context.Context, proto5Req *tfprotov5.PrepareProviderConfigRequest) (*tfprotov5.PrepareProviderConfigResponse, error)
PrepareProviderConfig satisfies the tfprotov5.ProviderServer interface.
func (*Server) ReadDataSource ¶
func (s *Server) ReadDataSource(ctx context.Context, proto5Req *tfprotov5.ReadDataSourceRequest) (*tfprotov5.ReadDataSourceResponse, error)
ReadDataSource satisfies the tfprotov5.ProviderServer interface.
func (*Server) ReadResource ¶
func (s *Server) ReadResource(ctx context.Context, proto5Req *tfprotov5.ReadResourceRequest) (*tfprotov5.ReadResourceResponse, error)
ReadResource satisfies the tfprotov5.ProviderServer interface.
func (*Server) StopProvider ¶
func (s *Server) StopProvider(ctx context.Context, _ *tfprotov5.StopProviderRequest) (*tfprotov5.StopProviderResponse, error)
StopProvider satisfies the tfprotov5.ProviderServer interface.
func (*Server) UpgradeResourceState ¶
func (s *Server) UpgradeResourceState(ctx context.Context, proto5Req *tfprotov5.UpgradeResourceStateRequest) (*tfprotov5.UpgradeResourceStateResponse, error)
UpgradeResourceState satisfies the tfprotov5.ProviderServer interface.
func (*Server) ValidateDataSourceConfig ¶
func (s *Server) ValidateDataSourceConfig(ctx context.Context, proto5Req *tfprotov5.ValidateDataSourceConfigRequest) (*tfprotov5.ValidateDataSourceConfigResponse, error)
ValidateDataSourceConfig satisfies the tfprotov5.ProviderServer interface.
func (*Server) ValidateResourceTypeConfig ¶
func (s *Server) ValidateResourceTypeConfig(ctx context.Context, proto5Req *tfprotov5.ValidateResourceTypeConfigRequest) (*tfprotov5.ValidateResourceTypeConfigResponse, error)
ValidateResourceTypeConfig satisfies the tfprotov5.ProviderServer interface.
Source Files ¶
- doc.go
- serve.go
- server_applyresourcechange.go
- server_configureprovider.go
- server_getproviderschema.go
- server_importresourcestate.go
- server_planresourcechange.go
- server_prepareproviderconfig.go
- server_readdatasource.go
- server_readresource.go
- server_upgraderesourcestate.go
- server_validatedatasourceconfig.go
- server_validateresourcetypeconfig.go