Documentation ¶
Index ¶
- func Translate[In, Out fmt.Stringer, Final any, ...](ctx context.Context, call Call, i In, m MapResult, opts ...grpc.CallOption) (_ Final, err error)
- type LogReplayProvider
- func (p LogReplayProvider) ApplyResourceChange(ctx context.Context, req *tfplugin6.ApplyResourceChange_Request, ...) (*tfplugin6.ApplyResourceChange_Response, error)
- func (p LogReplayProvider) CallFunction(ctx context.Context, req *tfplugin6.CallFunction_Request, ...) (*tfplugin6.CallFunction_Response, error)
- func (p LogReplayProvider) Close() error
- func (p LogReplayProvider) ConfigureProvider(ctx context.Context, req *tfplugin6.ConfigureProvider_Request, ...) (*tfplugin6.ConfigureProvider_Response, error)
- func (p LogReplayProvider) GetFunctions(ctx context.Context, req *tfplugin6.GetFunctions_Request, ...) (*tfplugin6.GetFunctions_Response, error)
- func (p LogReplayProvider) GetMetadata(ctx context.Context, req *tfplugin6.GetMetadata_Request, ...) (*tfplugin6.GetMetadata_Response, error)
- func (p LogReplayProvider) GetProviderSchema(ctx context.Context, req *tfplugin6.GetProviderSchema_Request, ...) (*tfplugin6.GetProviderSchema_Response, error)
- func (p LogReplayProvider) ImportResourceState(ctx context.Context, req *tfplugin6.ImportResourceState_Request, ...) (*tfplugin6.ImportResourceState_Response, error)
- func (p LogReplayProvider) MoveResourceState(ctx context.Context, req *tfplugin6.MoveResourceState_Request, ...) (*tfplugin6.MoveResourceState_Response, error)
- func (p LogReplayProvider) PlanResourceChange(ctx context.Context, req *tfplugin6.PlanResourceChange_Request, ...) (*tfplugin6.PlanResourceChange_Response, error)
- func (p LogReplayProvider) ReadDataSource(ctx context.Context, req *tfplugin6.ReadDataSource_Request, ...) (*tfplugin6.ReadDataSource_Response, error)
- func (p LogReplayProvider) ReadResource(ctx context.Context, req *tfplugin6.ReadResource_Request, ...) (*tfplugin6.ReadResource_Response, error)
- func (p LogReplayProvider) StopProvider(ctx context.Context, req *tfplugin6.StopProvider_Request, ...) (*tfplugin6.StopProvider_Response, error)
- func (p LogReplayProvider) UpgradeResourceState(ctx context.Context, req *tfplugin6.UpgradeResourceState_Request, ...) (*tfplugin6.UpgradeResourceState_Response, error)
- func (p LogReplayProvider) ValidateDataResourceConfig(ctx context.Context, req *tfplugin6.ValidateDataResourceConfig_Request, ...) (*tfplugin6.ValidateDataResourceConfig_Response, error)
- func (p LogReplayProvider) ValidateProviderConfig(ctx context.Context, req *tfplugin6.ValidateProviderConfig_Request, ...) (*tfplugin6.ValidateProviderConfig_Response, error)
- func (p LogReplayProvider) ValidateResourceConfig(ctx context.Context, req *tfplugin6.ValidateResourceConfig_Request, ...) (*tfplugin6.ValidateResourceConfig_Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogReplayProvider ¶
type LogReplayProvider struct {
// contains filtered or unexported fields
}
LogReplayProvider is a provider that replays logs from a previous run.
func NewLogReplayProvider ¶
func NewLogReplayProvider(name, version string, logs []byte) LogReplayProvider
NewLogReplayProvider creates a new LogReplayProvider from the given logs. It uses the logs to replay the recorded calls to the provider.
func (LogReplayProvider) ApplyResourceChange ¶
func (p LogReplayProvider) ApplyResourceChange( ctx context.Context, req *tfplugin6.ApplyResourceChange_Request, opts ...grpc.CallOption, ) (*tfplugin6.ApplyResourceChange_Response, error)
func (LogReplayProvider) CallFunction ¶
func (p LogReplayProvider) CallFunction( ctx context.Context, req *tfplugin6.CallFunction_Request, opts ...grpc.CallOption, ) (*tfplugin6.CallFunction_Response, error)
func (LogReplayProvider) Close ¶
func (p LogReplayProvider) Close() error
func (LogReplayProvider) ConfigureProvider ¶
func (p LogReplayProvider) ConfigureProvider( ctx context.Context, req *tfplugin6.ConfigureProvider_Request, opts ...grpc.CallOption, ) (*tfplugin6.ConfigureProvider_Response, error)
func (LogReplayProvider) GetFunctions ¶
func (p LogReplayProvider) GetFunctions( ctx context.Context, req *tfplugin6.GetFunctions_Request, opts ...grpc.CallOption, ) (*tfplugin6.GetFunctions_Response, error)
func (LogReplayProvider) GetMetadata ¶
func (p LogReplayProvider) GetMetadata( ctx context.Context, req *tfplugin6.GetMetadata_Request, opts ...grpc.CallOption, ) (*tfplugin6.GetMetadata_Response, error)
func (LogReplayProvider) GetProviderSchema ¶
func (p LogReplayProvider) GetProviderSchema( ctx context.Context, req *tfplugin6.GetProviderSchema_Request, opts ...grpc.CallOption, ) (*tfplugin6.GetProviderSchema_Response, error)
func (LogReplayProvider) ImportResourceState ¶
func (p LogReplayProvider) ImportResourceState( ctx context.Context, req *tfplugin6.ImportResourceState_Request, opts ...grpc.CallOption, ) (*tfplugin6.ImportResourceState_Response, error)
func (LogReplayProvider) MoveResourceState ¶
func (p LogReplayProvider) MoveResourceState( ctx context.Context, req *tfplugin6.MoveResourceState_Request, opts ...grpc.CallOption, ) (*tfplugin6.MoveResourceState_Response, error)
func (LogReplayProvider) PlanResourceChange ¶
func (p LogReplayProvider) PlanResourceChange( ctx context.Context, req *tfplugin6.PlanResourceChange_Request, opts ...grpc.CallOption, ) (*tfplugin6.PlanResourceChange_Response, error)
func (LogReplayProvider) ReadDataSource ¶
func (p LogReplayProvider) ReadDataSource( ctx context.Context, req *tfplugin6.ReadDataSource_Request, opts ...grpc.CallOption, ) (*tfplugin6.ReadDataSource_Response, error)
func (LogReplayProvider) ReadResource ¶
func (p LogReplayProvider) ReadResource( ctx context.Context, req *tfplugin6.ReadResource_Request, opts ...grpc.CallOption, ) (*tfplugin6.ReadResource_Response, error)
func (LogReplayProvider) StopProvider ¶
func (p LogReplayProvider) StopProvider( ctx context.Context, req *tfplugin6.StopProvider_Request, opts ...grpc.CallOption, ) (*tfplugin6.StopProvider_Response, error)
func (LogReplayProvider) UpgradeResourceState ¶
func (p LogReplayProvider) UpgradeResourceState( ctx context.Context, req *tfplugin6.UpgradeResourceState_Request, opts ...grpc.CallOption, ) (*tfplugin6.UpgradeResourceState_Response, error)
func (LogReplayProvider) ValidateDataResourceConfig ¶
func (p LogReplayProvider) ValidateDataResourceConfig( ctx context.Context, req *tfplugin6.ValidateDataResourceConfig_Request, opts ...grpc.CallOption, ) (*tfplugin6.ValidateDataResourceConfig_Response, error)
func (LogReplayProvider) ValidateProviderConfig ¶
func (p LogReplayProvider) ValidateProviderConfig( ctx context.Context, req *tfplugin6.ValidateProviderConfig_Request, opts ...grpc.CallOption, ) (*tfplugin6.ValidateProviderConfig_Response, error)
func (LogReplayProvider) ValidateResourceConfig ¶
func (p LogReplayProvider) ValidateResourceConfig( ctx context.Context, req *tfplugin6.ValidateResourceConfig_Request, opts ...grpc.CallOption, ) (*tfplugin6.ValidateResourceConfig_Response, error)
Click to show internal directories.
Click to hide internal directories.