func newDockerContainerMetadataResolver(taskEngine ecsengine.TaskEngine) (*DockerContainerMetadataResolver, error) {
	dockerTaskEngine, ok := taskEngine.(*ecsengine.DockerTaskEngine)
	if !ok {
		// Error type casting docker task engine.
		return nil, fmt.Errorf("Could not load docker task engine")
	}

	resolver := &DockerContainerMetadataResolver{
		dockerTaskEngine: dockerTaskEngine,
	}

	return resolver, nil
}
func newDockerContainerMetadataResolver(taskEngine ecsengine.TaskEngine) (*DockerContainerMetadataResolver, error) {
	dockerTaskEngine, ok := taskEngine.(*ecsengine.DockerTaskEngine)
	if !ok {
		
		return nil, fmt.Errorf("Could not load docker task engine")
	}

	resolver := &DockerContainerMetadataResolver{
		dockerTaskEngine: dockerTaskEngine,
	}

	return resolver, nil
}
func newDockerContainerMetadataResolver ( taskEngine ecsengine . TaskEngine ) ( * DockerContainerMetadataResolver , error ) { dockerTaskEngine , ok := taskEngine . ( * ecsengine . DockerTaskEngine ) if ! ok { // Error type casting docker task engine. return nil , fmt . Errorf ( " " ) } resolver := & DockerContainerMetadataResolver { dockerTaskEngine : dockerTaskEngine , } return resolver , nil }
// newDockerContainerMetadataResolver returns a new instance of DockerContainerMetadataResolver.
newDockerContainerMetadataResolver returns a new instance of DockerContainerMetadataResolver .