agent/api/task/task.go
func (task *Task) updateContainerVolumeDependency(name string) {
	// Find all the container that depends on the volume
	for _, container := range task.Containers {
		for _, mountpoint := range container.MountPoints {
			if mountpoint.SourceVolume == name {
				container.BuildResourceDependency(name,
					resourcestatus.ResourceCreated,
					apicontainerstatus.ContainerPulled)
			}
		}
	}
}
func (task *Task) updateContainerVolumeDependency(name string) {
	// Find all the container that depends on the volume
	for _, container := range task.Containers {
		for _, mountpoint := range container.MountPoints {
			if mountpoint.SourceVolume == name {
				container.BuildResourceDependency(name,
					resourcestatus.ResourceCreated,
					apicontainerstatus.ContainerPulled)
			}
		}
	}
}
func ( task * Task ) updateContainerVolumeDependency ( name string ) { // Find all the container that depends on the volume for _ , container := range task . Containers { for _ , mountpoint := range container . MountPoints { if mountpoint . SourceVolume == name { container . BuildResourceDependency ( name , resourcestatus . ResourceCreated , apicontainerstatus . ContainerPulled ) } } } }
// updateContainerVolumeDependency adds the volume resource to container dependency
updateContainerVolumeDependency adds the volume resource to container dependency