buildtestutils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainer

func GetContainer(taskDef *ecs.RegisterTaskDefinitionInput, containerName string) (ecsTypes.ContainerDefinition, error)

func GetPredeployTask

func GetPredeployTask(project *config.Project, name string) *config.PreDeployTask

func GetServiceTask

func GetServiceTask(project *config.Project, name string) *config.Service

func KVListToMap

func KVListToMap[T any](kvList []T, mapFunc kvToMapFunc[T]) map[string]string

func KVListToMap_Depends

func KVListToMap_Depends(val ecsTypes.ContainerDependency) (string, string)

func KVListToMap_KVP

func KVListToMap_KVP(val ecsTypes.KeyValuePair) (string, string)

func KVListToMap_Secret

func KVListToMap_Secret(val ecsTypes.Secret) (string, string)

func KVListToSlice

func KVListToSlice[T any, K any](kvList []T, sliceFunc kvToSliceFunc[T, K]) []K

func KVListToSlice_PortMaps

func KVListToSlice_PortMaps(val ecsTypes.PortMapping) string

func LoadProjectConfig

func LoadProjectConfig(t *testing.T, filepath string, optFuncs ...optsLPCFunc) *config.Context

func Mock_ECS_CreateService_Dump

func Mock_ECS_CreateService_Dump(t *testing.T) *awsmocker.MockedEndpoint

func Mock_ECS_RegisterTaskDefinition_Dump

func Mock_ECS_RegisterTaskDefinition_Dump(t *testing.T) *awsmocker.MockedEndpoint

func Mock_ECS_RunTask_Dump

func Mock_ECS_RunTask_Dump(t *testing.T) *awsmocker.MockedEndpoint

func Mock_ECS_UpdateService_Dump

func Mock_ECS_UpdateService_Dump(t *testing.T) *awsmocker.MockedEndpoint

func OptSetNumSSMVars

func OptSetNumSSMVars(num int) optsLPCFunc

func StartMocker

func StartMocker(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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