# Functions
ConvertCamelCaseToUnderScore returns an underscore-separated name for a given camelcased string e.g., "NetworkMode" -> "network_mode".
ConvertDurationStrToSeconds converts a duration string to an int64 number of seconds In case of an empty string, instead of returning error like time.ParseDuration(), it returns nil as the conversion result and a nil error.
ConvertToDevices transforms a slice of device strings into a slice of ECS Device structs.
ConvertToExtraHosts transforms the yml extra hosts slice to ecs compatible HostEntry slice.
ConvertToHealthCheck converts a compose healthcheck to ECS healthcheck.
ConvertToKeyValuePairs transforms the map of environment variables into list of ecs.KeyValuePair.
ConvertToLogConfiguration converts a libcompose logging fields to an ECS LogConfiguration.
ConvertToMemoryInMB converts libcompose-parsed bytes to MiB, expected by ECS.
ConvertToMountPoints transforms the YAML volumes slice on a libcompose service to ECS compatible MountPoints slice.
ConvertToPortMappings transforms the yml ports string slice to ecs compatible PortMappings slice.
ConvertToTimeInSeconds converts a duration to an int64 number of seconds.
ConvertToTmpfs transforms the yml Tmpfs slice of strings to slice of pointers to Tmpfs structs.
ConvertToULimits transforms the yml extra hosts slice to ecs compatible Ulimit slice.
ConvertToV3Volumes converts the VolumesConfig map in a docker/cli config into a Volumes struct and populates the VolumesEmptyHost field with any named volumes.
ConvertToVolumes converts the VolumeConfigs map on a libcompose project into a Volumes struct and populates the VolumeEmptyHost field with any named volumes.
ConvertToVolumesFrom transforms the yml volumes from to ecs compatible VolumesFrom slice Examples for compose format v2: volumes_from: - service_name - service_name:ro - container:container_name - container:container_name:rw Examples for compose format v1: volumes_from: - service_name - service_name:ro - container_name - container_name:rw.
GetSourcePathAndUpdateVolumes checks for & creates an ECS Volume for a mount point without a source volume and returns the appropriate source volume name.
No description provided by the author
Necessary in conjunction with SortedGoString to avoid spurious tdcache misses.
SortedGoString returns deterministic string representation json Marshal sorts map keys, making it deterministic.
# Structs
ContainerConfig all compose fields supported by the ecs-cli.
No description provided by the author