const class fantorepo302::FantoRepo

sys::Obj
  fanr::Repo
    fantorepo302::FantoRepo

FantoRepo implements a repository on the file system using a simple directory structure: (where 1.0.0 would be a pod version)

  • /repo/public/pod1/1.0.0/pod1.pod for public pods
  • /repo/private/company1/pod1/1.0.1/pod1.pod for private pods

The pods are indexed into MongoDb

db

const DB db := ...

find

virtual override PodSpec? find(Str name, Version? ver, Bool checked := true)

log

const Log log := Pod.of(FantoRepo#).log

make

new make()

Make for given URI which must reference a local dir

ping

virtual override Str:Str ping()

publish

virtual override PodSpec publish(File podFile)

query

virtual override PodSpec[] query(Str query, Int numVersions := 1)

Numversion: how many versions max to return

read

virtual override InStream read(PodSpec spec)

root

const File root

settings

const SettingsService settings := Service.find(SettingsService#)

uri

virtual const override Uri uri