code: func NewBuildManager(b builder.Backend, sg SessionGetter, fsCache *fscache.FSCache, identityMapping *idtools.IdentityMapping) (*BuildManager, error) {
  	bm := &BuildManager{
  		backend:   b,
  		pathCache: &syncmap.Map{},
  		sg:        sg,
  		idMapping: identityMapping,
  		fsCache:   fsCache,
  	}
  	if err := fsCache.RegisterTransport(remotecontext.ClientSessionRemote, NewClientSessionTransport()); err != nil {
  		return nil, err
  	}
  	return bm, nil
  }
docs: // NewBuildManager creates a BuildManager