github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/storage/constants.go (about)

     1  package storage
     2  
     3  // StorageVolumeConnector is how an upstream storage source will present
     4  // the volume to a job - examples are "bind" or "library"
     5  //
     6  //go:generate stringer -type=StorageVolumeConnectorType --trimprefix=StorageVolumeConnector
     7  type StorageVolumeConnectorType int
     8  
     9  const (
    10  	storageVolumeConnectorUnknown StorageVolumeConnectorType = iota // must be first
    11  	StorageVolumeConnectorBind
    12  	storageVolumeConnectorDone // must be last
    13  )
    14  
    15  // Used to distinguish files from directories
    16  //
    17  //go:generate stringer -type=FileSystemNodeType --trimprefix=FileSystemNode
    18  type FileSystemNodeType int
    19  
    20  const (
    21  	fileSystemNodeUnknown FileSystemNodeType = iota // must be first
    22  	FileSystemNodeDirectory
    23  	FileSystemNodeFile
    24  	fileSystemNodeDone // must be last
    25  )