diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-06-27 14:27:25 +0100 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-07-27 12:24:56 +0000 |
commit | 1cbc2e17f782d8765b33c092c42ebdd98510ae62 (patch) | |
tree | 1ae91499ae1f7da6b672c0325bd0bc076c44127a /buildstream/source.py | |
parent | 909120abc32fe3b132f71a13ea94b1f9f929c05c (diff) | |
download | buildstream-1cbc2e17f782d8765b33c092c42ebdd98510ae62.tar.gz |
doc: Add documentation for source mirroring
Diffstat (limited to 'buildstream/source.py')
-rw-r--r-- | buildstream/source.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/buildstream/source.py b/buildstream/source.py index f4b81ee7f..9866c99e9 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -65,6 +65,33 @@ these methods are mandatory to implement. **Optional**: If left unimplemented, this will default to calling :func:`Source.stage() <buildstream.source.Source.stage>` + +* :func:`Source.get_source_fetchers() <buildstream.source.Source.get_source_fetchers>` + + Get the objects that are used for fetching. + + **Optional**: This only needs to be implemented for sources that need to + download from multiple URLs while fetching (e.g. a git repo and its + submodules). For details on how to define a SourceFetcher, see + :ref:`SourceFetcher <core_source_fetcher>`. + + +.. _core_source_fetcher: + +SourceFetcher - Object for fetching individual URLs +=================================================== + + +Abstract Methods +---------------- +SourceFetchers expose the following abstract methods. Unless explicitly +mentioned, these methods are mandatory to implement. + +* :func:`SourceFetcher.fetch() <buildstream.source.SourceFetcher.fetch>` + + Fetches the URL associated with this SourceFetcher, optionally taking an + alias override. + """ import os |