agent/stats/engine.go
func (resolver *DockerContainerMetadataResolver) ResolveContainer(dockerID string) (*apicontainer.DockerContainer, error) {
	if resolver.dockerTaskEngine == nil {
		return nil, fmt.Errorf("Docker task engine uninitialized")
	}
	container, found := resolver.dockerTaskEngine.State().ContainerByID(dockerID)
	if !found {
		return nil, fmt.Errorf("Could not map docker id to container: %s", dockerID)
	}

	return container, nil
}
func (resolver *DockerContainerMetadataResolver) ResolveContainer(dockerID string) (*apicontainer.DockerContainer, error) {
	if resolver.dockerTaskEngine == nil {
		return nil, fmt.Errorf("Docker task engine uninitialized")
	}
	container, found := resolver.dockerTaskEngine.State().ContainerByID(dockerID)
	if !found {
		return nil, fmt.Errorf("Could not map docker id to container: %s", dockerID)
	}

	return container, nil
}
func ( resolver * DockerContainerMetadataResolver ) ResolveContainer ( dockerID string ) ( * apicontainer . DockerContainer , error ) { if resolver . dockerTaskEngine == nil { return nil , fmt . Errorf ( " " ) } container , found := resolver . dockerTaskEngine . State ( ) . ContainerByID ( dockerID ) if ! found { return nil , fmt . Errorf ( " " , dockerID ) } return container , nil }
// ResolveContainer resolves the api container object, given container id.
ResolveContainer resolves the api container object given container id .