testprovider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlterListFunctionDefinition

func AlterListFunctionDefinition() *function.Definition

AlterListFunctionDefinition returns the definition of the function that alters a list of strings.

func AlterMapFunctionDefinition

func AlterMapFunctionDefinition() *function.Definition

AlterMapFunctionDefinition returns the definition of the function that alters a map of string values.

func AlterObjectFunctionDefinition

func AlterObjectFunctionDefinition() *function.Definition

AlterObjectFunctionDefinition returns the definition of the function that alters an object of a specified type.

func CallSelfFunctionDefinition

func CallSelfFunctionDefinition() *function.Definition

CallSelfFunctionDefinition returns the definition of a function that calls itself. This is used to test the mechanism that prevents infinite recursion in plugin function calls.

func ComposeFunctionDefinition

func ComposeFunctionDefinition() *function.Definition

func CustomVarTypeInstanceTypeDescriptionOutput

func CustomVarTypeInstanceTypeDescriptionOutput() *provider.CustomVariableTypeGetDescriptionOutput

func CustomVarTypeInstanceTypeExamplesOutput

func CustomVarTypeInstanceTypeExamplesOutput() *provider.CustomVariableTypeGetExamplesOutput

func CustomVarTypeInstanceTypeOptionsOutput

func CustomVarTypeInstanceTypeOptionsOutput() *provider.CustomVariableTypeOptionsOutput

func DataSourceVPCExamplesOutput

func DataSourceVPCExamplesOutput() *provider.DataSourceGetExamplesOutput

func DataSourceVPCFetchOutput

func DataSourceVPCFetchOutput() *provider.DataSourceFetchOutput

func DataSourceVPCFilterFieldsOutput

func DataSourceVPCFilterFieldsOutput() *provider.DataSourceGetFilterFieldsOutput

func DataSourceVPCSpecDefinitionOutput

func DataSourceVPCSpecDefinitionOutput() *provider.DataSourceGetSpecDefinitionOutput

func DataSourceVPCTypeDescriptionOutput

func DataSourceVPCTypeDescriptionOutput() *provider.DataSourceGetTypeDescriptionOutput

func DataSourceVPCValidateOutput

func DataSourceVPCValidateOutput() *provider.DataSourceValidateOutput

func Functions

func Functions() map[string]provider.Function

Functions returns a map of function names to their implementations for the test provider.

func LinkLambdaDynamoDBChangesOutput

func LinkLambdaDynamoDBChangesOutput() *provider.LinkStageChangesOutput

func LinkLambdaDynamoDBGetIntermediaryExternalStateOutput added in v0.2.0

func LinkLambdaDynamoDBGetIntermediaryExternalStateOutput() *provider.LinkGetIntermediaryExternalStateOutput

LinkLambdaDynamoDBGetIntermediaryExternalStateOutput returns test output for the GetIntermediaryExternalState method.

func LinkLambdaDynamoDBUpdateIntermediaryResourcesOutput

func LinkLambdaDynamoDBUpdateIntermediaryResourcesOutput() *provider.LinkUpdateIntermediaryResourcesOutput

func LinkLambdaDynamoDBUpdateResourceAOutput

func LinkLambdaDynamoDBUpdateResourceAOutput() *provider.LinkUpdateResourceOutput

func LinkLambdaDynamoDBUpdateResourceBOutput

func LinkLambdaDynamoDBUpdateResourceBOutput() *provider.LinkUpdateResourceOutput

func LinkLambdaFunctionDDBTableAnnotations

func LinkLambdaFunctionDDBTableAnnotations() map[string]*provider.LinkAnnotationDefinition

func LinkLambdaFunctionDDBTableTypeDescriptionOutput

func LinkLambdaFunctionDDBTableTypeDescriptionOutput() *provider.LinkGetTypeDescriptionOutput

func MapFunctionDefinition

func MapFunctionDefinition() *function.Definition

func NewProvider

func NewProvider() provider.Provider

NewProvider creates a new instance of the test AWS provider that contains the supported resources, links, custom variable types and functions for the stub AWS provider. This is purely for testing purposes and does not interact with AWS services or provide functionality that would reflect that of a real AWS provider implementation.

func ResourceLambdaDeployOutput

func ResourceLambdaDeployOutput() *provider.ResourceDeployOutput

func ResourceLambdaFunctionExamples

func ResourceLambdaFunctionExamples() *provider.ResourceGetExamplesOutput

func ResourceLambdaFunctionExternalState

func ResourceLambdaFunctionExternalState() *core.MappingNode

func ResourceLambdaFunctionSchema

func ResourceLambdaFunctionSchema() *provider.ResourceDefinitionsSchema

ResourceLambdaFunctionSchema returns a stub spec definition for the LambdaFunction resource.

func ResourceLambdaFunctionTypeDescription

func ResourceLambdaFunctionTypeDescription() *provider.ResourceGetTypeDescriptionOutput

func ResourceLambdaFunctionValidateOutput

func ResourceLambdaFunctionValidateOutput() *provider.ResourceValidateOutput

ResourceLambdaFunctionValidateOutput returns a stub validation output for the LambdaFunction resource.

func StartPluginServer

func StartPluginServer(
	serviceClient pluginservicev1.ServiceClient,
	failingPlugin bool,
) (providerserverv1.ProviderClient, func())

StartPluginServer starts the test provider plugin server to run in the same process as the test suite.

func TestProviderConfigDefinition

func TestProviderConfigDefinition() *core.ConfigDefinition

TestProviderConfigDefinition creates the config definition for the test AWS provider.

func TestProviderRetryPolicy

func TestProviderRetryPolicy() *provider.RetryPolicy

TestProviderRetryPolicy creates the retry policy for the test AWS provider.

func TrimSpaceAndSuffixFunctionDefinition

func TrimSpaceAndSuffixFunctionDefinition() *function.Definition

TrimSpaceAndSuffixFunctionDefinition returns the definition of the function removes leading and trailing white space, then removes the specified suffix from the string.

func TrimSuffixFunctionDefinition

func TrimSuffixFunctionDefinition() *function.Definition

TrimSuffixFunctionDefinition returns the definition of the function that removes a suffix from a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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