// Show returns the information about a stored Cid. If no information is available,
// since the Cid was never stored, it returns ErrNotFound.
Show returns the information about a stored Cid. If no information is available,
since the Cid was never stored, it returns ErrNotFound.
// Show returns the information about a stored Cid . If no information is available // since the Cid was never stored it returns ErrNotFound .
func (i *API) Show(cid cid.Cid) (ffs.StorageInfo, error) {
	inf, err := i.sched.GetStorageInfo(i.cfg.ID, cid)
	if err == scheduler.ErrNotFound {
		return inf, ErrNotFound
	}
	if err != nil {
		return inf, fmt.Errorf("getting cid storage info: %s", err)
	}
	return inf, nil
}
func ( i * API ) Show ( cid cid . Cid ) ( ffs . StorageInfo , error ) { inf , err := i . sched . GetStorageInfo ( i . cfg . ID , cid ) if err == scheduler . ErrNotFound { return inf , ErrNotFound } if err != nil { return inf , fmt . Errorf ( " " , err ) } return inf , nil }
Show returns the information about a stored Cid.
Show returns the information about a stored Cid .