github.com/leowmjw/otto@v0.2.1-0.20160126165905-6400716cf085/directory/deploy_state.go (about)

     1  package directory
     2  
     3  //go:generate stringer -type=DeployState deploy_state.go
     4  
     5  // DeployState is used to track the state of a deploy.
     6  //
     7  // This is required because a deploy is entered in the directory
     8  // prior to the deploy actually happening so that we can always look
     9  // up any binary blobs stored with a deploy even if it fails.
    10  type DeployState byte
    11  
    12  const (
    13  	DeployStateInvalid DeployState = 0
    14  	DeployStateNew     DeployState = iota
    15  	DeployStateFail
    16  	DeployStateSuccess
    17  )