github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/libpod/define/runtime.go (about)

     1  package define
     2  
     3  import "time"
     4  
     5  // RuntimeStateStore is a constant indicating which state store implementation
     6  // should be used by libpod
     7  type RuntimeStateStore int
     8  
     9  const (
    10  	// InvalidStateStore is an invalid state store
    11  	InvalidStateStore RuntimeStateStore = iota
    12  	// InMemoryStateStore is an in-memory state that will not persist data
    13  	// on containers and pods between libpod instances or after system
    14  	// reboot
    15  	InMemoryStateStore RuntimeStateStore = iota
    16  	// SQLiteStateStore is a state backed by a SQLite database
    17  	// It is presently disabled
    18  	SQLiteStateStore RuntimeStateStore = iota
    19  	// BoltDBStateStore is a state backed by a BoltDB database
    20  	BoltDBStateStore RuntimeStateStore = iota
    21  	// ContainerCreateTimeout is the timeout before we decide we've failed
    22  	// to create a container.
    23  	// TODO: Make this generic - all OCI runtime operations should use the
    24  	// same timeout, this one.
    25  	// TODO: Consider dropping from 240 to 60 seconds. I don't think waiting
    26  	// 4 minutes versus 1 minute makes a real difference.
    27  	ContainerCreateTimeout = 240 * time.Second
    28  )