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

     1  package directory
     2  
     3  //go:generate stringer -type=InfraState infra_state.go
     4  
     5  // InfraState is used to track the state of an infrastructure.
     6  //
     7  // This is required because the state of an infrastructure isn't binary.
     8  // It can be not created at all, partially created, or fully created. We
     9  // need to represent this in the directory.
    10  type InfraState byte
    11  
    12  const (
    13  	InfraStateInvalid InfraState = 0
    14  	InfraStatePartial InfraState = iota
    15  	InfraStateReady
    16  )