1. 30 Mar, 2020 1 commit
  2. 11 Feb, 2020 2 commits
    • Steven Allen's avatar
      feat(mount): don't give up on error · ae47316e
      Steven Allen authored
      Instead of giving up when a single datastore fails, operate on all datastores
      first. That way:
      
      * If one datastore doesn't support disk usage, we can at least return our best
        estimate for the ones that do.
      * If one datastore fails to sync, we won't fail to sync the others.
      * If one datastore refuses to close, we'll close the others.
      
      Etc.
      
      Also:
      
      * Drop xerrors. We already need go 1.13 elsewhere.
      * Use uber's multierr. It's much simpler than hashicorps (and is already a
        dependency through zap, fx, etc.).
      ae47316e
    • Steven Allen's avatar
  3. 15 Dec, 2019 2 commits
  4. 29 Aug, 2019 1 commit
    • Steven Allen's avatar
      feat: make not-found errors discoverable · 473787bf
      Steven Allen authored
      Now we just need a common place to put:
      
      func IsNotFound(e error) bool {
        for e != nil {
          if ne, ok := e.(interface { NotFound() bool }); ok {
            return ne.NotFound()
          }
          if ue, ok := e.(interface { Unwrap() error }); ok {
            e = ue.Unwrap()
          } else {
            return false
          }
        }
        return false
      }
      473787bf
  5. 28 Feb, 2019 1 commit