Documentation
¶
Index ¶
- Variables
- func CleanTestYaml(value string) string
- func DisableLogging()
- func DisableLoggingForTest(t *testing.T)
- func JmesPathSearch(obj interface{}, searchPath string) interface{}
- func JmesRequestMatcher(jmesMap map[string]interface{}) func(*awsmocker.ReceivedRequest) bool
- func JmesSearchOrNil(obj interface{}, searchPath string) interface{}
- func MockResponse_ECS_Service(service ecsTypes.Service) map[string]interface{}
- func MockResponse_ELBv2_DescribeTargetGroups_Single(tgName string) *awsmocker.MockedResponse
- func MockResponse_EmptySuccess() *awsmocker.MockedResponse
- func MockSimpleStsProxy(t *testing.T)
- func Mock_ECS_CreateService_jmespath(jmesMatchers map[string]any, service ecsTypes.Service) *awsmocker.MockedEndpoint
- func Mock_ECS_DeleteService_jmespath(jmesMatchers map[string]any, service ecsTypes.Service) *awsmocker.MockedEndpoint
- func Mock_ECS_DeregisterTaskDefinition(family string, rev int) *awsmocker.MockedEndpoint
- func Mock_ECS_DescribeServices_Missing(maxCount int) *awsmocker.MockedEndpoint
- func Mock_ECS_DescribeServices_Single(svc ecsTypes.Service, maxCount int) *awsmocker.MockedEndpoint
- func Mock_ECS_DescribeServices_jmespath(jmesMatches map[string]any, svc ecsTypes.Service, maxCount int) *awsmocker.MockedEndpoint
- func Mock_ECS_DescribeTasks_Pending(status string, maxCount int) *awsmocker.MockedEndpoint
- func Mock_ECS_DescribeTasks_Stopped(stopCode ecsTypes.TaskStopCode, exitCode int, maxCount int) *awsmocker.MockedEndpoint
- func Mock_ECS_ListTaskDefinitionFamilies(results []string) *awsmocker.MockedEndpoint
- func Mock_ECS_ListTaskDefinitions(familyName string, revisions []int) *awsmocker.MockedEndpoint
- func Mock_ECS_RegisterTaskDefinition_Generic() *awsmocker.MockedEndpoint
- func Mock_ECS_RunTask() *awsmocker.MockedEndpoint
- func Mock_ECS_RunTask_FailToLaunch(maxCount int) *awsmocker.MockedEndpoint
- func Mock_ECS_UpdateService_jmespath(jmesMatchers map[string]any, service ecsTypes.Service) *awsmocker.MockedEndpoint
- func Mock_ELBv2_DescribeTargetGroups_Single_Failure(tgName string) *awsmocker.MockedEndpoint
- func Mock_ELBv2_DescribeTargetGroups_Single_Success(tgName string) *awsmocker.MockedEndpoint
- func Mock_Events_DeleteRule(ruleName, busName string) *awsmocker.MockedEndpoint
- func Mock_Events_ListTargetsByRule(ruleName, busName string, targetIds []string) *awsmocker.MockedEndpoint
- func Mock_Events_PutRule_Generic() *awsmocker.MockedEndpoint
- func Mock_Events_PutTargets_Generic() *awsmocker.MockedEndpoint
- func Mock_Events_RemoveTargets(ruleName, busName, targetId string) *awsmocker.MockedEndpoint
- func Mock_Logs_CreateLogGroup(logGroupName string) *awsmocker.MockedEndpoint
- func Mock_Logs_CreateLogGroup_AllowAny() *awsmocker.MockedEndpoint
- func Mock_Logs_DeleteRetentionPolicy(logGroupName string) *awsmocker.MockedEndpoint
- func Mock_Logs_DescribeLogGroups(logGroupRetentions map[string]int32) *awsmocker.MockedEndpoint
- func Mock_Logs_PutRetentionPolicy(logGroupName string, days int32) *awsmocker.MockedEndpoint
- func Mock_Logs_PutRetentionPolicy_AllowAny() *awsmocker.MockedEndpoint
- func Mock_SSM_GetParametersByPath(prefixWithTrailingSlash string, paramNames []string) *awsmocker.MockedEndpoint
- func Mock_Tagging_GetResources(typeFilter string, tags map[string]string, resourceArns any) *awsmocker.MockedEndpoint
- func RequireObjectSerializationEqual(t *testing.T, expected any, actual any)
- func StartMocker(t *testing.T, opts *awsmocker.MockerOptions) *awsmocker.MockerInfo
- func StripIndentation(value string) string
- func TemplateApply(tpl string, fields interface{}) string
- type SchemaChecker
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSchemaViolation = errors.New("JsonSchemaViolation")
View Source
var TplDummy = &tplDummy{}
Functions ¶
func CleanTestYaml ¶
Go doesnt have nice heredocs or <<~EOF things. this lets me not write ugly yaml blocks for test cases
func DisableLogging ¶
func DisableLogging()
func DisableLoggingForTest ¶
func JmesPathSearch ¶
func JmesPathSearch(obj interface{}, searchPath string) interface{}
func JmesRequestMatcher ¶
func JmesRequestMatcher(jmesMap map[string]interface{}) func(*awsmocker.ReceivedRequest) bool
func JmesSearchOrNil ¶
func JmesSearchOrNil(obj interface{}, searchPath string) interface{}
func MockResponse_ELBv2_DescribeTargetGroups_Single ¶
func MockResponse_ELBv2_DescribeTargetGroups_Single(tgName string) *awsmocker.MockedResponse
func MockResponse_EmptySuccess ¶
func MockResponse_EmptySuccess() *awsmocker.MockedResponse
func MockSimpleStsProxy ¶
This is just a basic mock server to get the account ID and region
func Mock_ECS_DeregisterTaskDefinition ¶
func Mock_ECS_DeregisterTaskDefinition(family string, rev int) *awsmocker.MockedEndpoint
params should be "dummy-task" and 1234 format
func Mock_ECS_DescribeServices_Missing ¶
func Mock_ECS_DescribeServices_Missing(maxCount int) *awsmocker.MockedEndpoint
func Mock_ECS_DescribeServices_Single ¶
func Mock_ECS_DescribeServices_Single(svc ecsTypes.Service, maxCount int) *awsmocker.MockedEndpoint
func Mock_ECS_DescribeTasks_Pending ¶
func Mock_ECS_DescribeTasks_Pending(status string, maxCount int) *awsmocker.MockedEndpoint
func Mock_ECS_DescribeTasks_Stopped ¶
func Mock_ECS_DescribeTasks_Stopped(stopCode ecsTypes.TaskStopCode, exitCode int, maxCount int) *awsmocker.MockedEndpoint
func Mock_ECS_ListTaskDefinitionFamilies ¶
func Mock_ECS_ListTaskDefinitionFamilies(results []string) *awsmocker.MockedEndpoint
func Mock_ECS_ListTaskDefinitions ¶
func Mock_ECS_ListTaskDefinitions(familyName string, revisions []int) *awsmocker.MockedEndpoint
func Mock_ECS_RegisterTaskDefinition_Generic ¶
func Mock_ECS_RegisterTaskDefinition_Generic() *awsmocker.MockedEndpoint
func Mock_ECS_RunTask ¶
func Mock_ECS_RunTask() *awsmocker.MockedEndpoint
func Mock_ECS_RunTask_FailToLaunch ¶
func Mock_ECS_RunTask_FailToLaunch(maxCount int) *awsmocker.MockedEndpoint
func Mock_ELBv2_DescribeTargetGroups_Single_Failure ¶
func Mock_ELBv2_DescribeTargetGroups_Single_Failure(tgName string) *awsmocker.MockedEndpoint
func Mock_ELBv2_DescribeTargetGroups_Single_Success ¶
func Mock_ELBv2_DescribeTargetGroups_Single_Success(tgName string) *awsmocker.MockedEndpoint
func Mock_Events_DeleteRule ¶
func Mock_Events_DeleteRule(ruleName, busName string) *awsmocker.MockedEndpoint
func Mock_Events_ListTargetsByRule ¶
func Mock_Events_ListTargetsByRule(ruleName, busName string, targetIds []string) *awsmocker.MockedEndpoint
func Mock_Events_PutRule_Generic ¶
func Mock_Events_PutRule_Generic() *awsmocker.MockedEndpoint
func Mock_Events_PutTargets_Generic ¶
func Mock_Events_PutTargets_Generic() *awsmocker.MockedEndpoint
func Mock_Events_RemoveTargets ¶
func Mock_Events_RemoveTargets(ruleName, busName, targetId string) *awsmocker.MockedEndpoint
func Mock_Logs_CreateLogGroup ¶
func Mock_Logs_CreateLogGroup(logGroupName string) *awsmocker.MockedEndpoint
func Mock_Logs_CreateLogGroup_AllowAny ¶
func Mock_Logs_CreateLogGroup_AllowAny() *awsmocker.MockedEndpoint
func Mock_Logs_DeleteRetentionPolicy ¶
func Mock_Logs_DeleteRetentionPolicy(logGroupName string) *awsmocker.MockedEndpoint
func Mock_Logs_DescribeLogGroups ¶
func Mock_Logs_DescribeLogGroups(logGroupRetentions map[string]int32) *awsmocker.MockedEndpoint
func Mock_Logs_PutRetentionPolicy ¶
func Mock_Logs_PutRetentionPolicy(logGroupName string, days int32) *awsmocker.MockedEndpoint
func Mock_Logs_PutRetentionPolicy_AllowAny ¶
func Mock_Logs_PutRetentionPolicy_AllowAny() *awsmocker.MockedEndpoint
func Mock_SSM_GetParametersByPath ¶
func Mock_SSM_GetParametersByPath(prefixWithTrailingSlash string, paramNames []string) *awsmocker.MockedEndpoint
func Mock_Tagging_GetResources ¶
func Mock_Tagging_GetResources(typeFilter string, tags map[string]string, resourceArns any) *awsmocker.MockedEndpoint
resourceArns can be either a string array, or a map or key=>map[tagkey]=tagvalue
func StartMocker ¶
func StartMocker(t *testing.T, opts *awsmocker.MockerOptions) *awsmocker.MockerInfo
func StripIndentation ¶
func TemplateApply ¶
Types ¶
type SchemaChecker ¶
type SchemaChecker struct {
// contains filtered or unexported fields
}
func NewSchemaChecker ¶
func NewSchemaChecker(v any) *SchemaChecker
Click to show internal directories.
Click to hide internal directories.