github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/docker/state.go (about)

     1  package docker
     2  
     3  import "github.com/tilt-dev/tilt/pkg/apis/core/v1alpha1"
     4  
     5  // Helper functions for dealing with ContainerState.
     6  const ZeroTime = "0001-01-01T00:00:00Z"
     7  
     8  func HasStarted(cState v1alpha1.DockerContainerState) bool {
     9  	return !cState.StartedAt.IsZero()
    10  }
    11  
    12  func HasFinished(cState v1alpha1.DockerContainerState) bool {
    13  	return !cState.FinishedAt.IsZero()
    14  }