agent/containermetadata/utils.go
func getMetadataFilePath(taskARN string, containerName string, dataDir string) (string, error) {
	taskID, err := getTaskIDfromARN(taskARN)
	// Empty task ID indicates malformed ARN (Should not happen)
	if err != nil {
		return "", fmt.Errorf("get metdata file path of task %s container %s: %v", taskARN, containerName, err)
	}
	return filepath.Join(dataDir, metadataJoinSuffix, taskID, containerName), nil
}
func getMetadataFilePath(taskARN string, containerName string, dataDir string) (string, error) {
	taskID, err := getTaskIDfromARN(taskARN)
	// Empty task ID indicates malformed ARN (Should not happen)
	if err != nil {
		return "", fmt.Errorf("get metdata file path of task %s container %s: %v", taskARN, containerName, err)
	}
	return filepath.Join(dataDir, metadataJoinSuffix, taskID, containerName), nil
}
func getMetadataFilePath ( taskARN string , containerName string , dataDir string ) ( string , error ) { taskID , err := getTaskIDfromARN ( taskARN ) // Empty task ID indicates malformed ARN (Should not happen) if err != nil { return " " , fmt . Errorf ( " " , taskARN , containerName , err ) } return filepath . Join ( dataDir , metadataJoinSuffix , taskID , containerName ) , nil }
// getMetadataFilePath gives the metadata file path for any agent-managed container
getMetadataFilePath gives the metadata file path for any agent - managed container