MCPcopy Create free account

hub / github.com/Debian/debiman / functions

Functions210 in github.com/Debian/debiman

↓ 43 callersMethodString
()
internal/manpage/meta.go:168
↓ 26 callersMethodmustPrint
(key string, template redirect.IndexEntry)
cmd/debiman-idx2rwmap/rwmap.go:53
↓ 21 callersMethodServingPath
()
internal/manpage/meta.go:172
↓ 15 callersFunctionAtomically
(dest string, compress bool, write func(w io.Writer) error)
internal/write/atomically.go:23
↓ 14 callersFunctionAsset
Asset returns either the bundled asset with the given name or the injected version (see the -inject_assets flag).
internal/bundled/inject.go:46
↓ 14 callersMethodRedirect
(r *http.Request)
internal/redirect/redirect.go:359
↓ 11 callersFunctionmustParseFromServingPath
(t *testing.T, path string)
cmd/debiman/rendermanpage_test.go:14
↓ 11 callersFunctionxref
(txt string, resolve func(ref string) string)
internal/convert/convert.go:184
↓ 9 callersFunctioncmpElems
(input *html.Node, got []*html.Node, want []*html.Node)
internal/convert/convert_test.go:101
↓ 8 callersMethodError
()
internal/redirect/redirect.go:355
↓ 8 callersFunctionFromManPath
FromManPath constructs a manpage, gathering details from path (relative underneath /usr/share/man).
internal/manpage/meta.go:67
↓ 8 callersMethodWrite
(p []byte)
cmd/debiman/rendermanpage.go:468
↓ 6 callersFunctionNewServer
(idx redirect.Index, notFoundTmpl *template.Template, debimanVersion string)
internal/auxserver/auxserver.go:28
↓ 5 callersFunctionBaseURLPath
BaseURLPath returns the path of the -base_url flag. E.g. “/sub” for “https://example.com/sub”, or “” for “https://manpages.debian.org”.
internal/commontmpl/commontmpl.go:33
↓ 5 callersFunctionless
(a, b pkgEntry)
cmd/debiman/getpackages.go:152
↓ 4 callersFunctionIndexFromProto
(path string)
internal/redirect/redirect.go:444
↓ 4 callersMethodKill
()
internal/convert/mandoc.go:30
↓ 4 callersMethodMainSection
()
internal/manpage/meta.go:187
↓ 4 callersFunctionMustParseCommonTmpls
()
internal/commontmpl/commontmpl.go:44
↓ 4 callersFunctionNewProcess
()
internal/convert/mandoc.go:25
↓ 4 callersFunctionmustRedirectI3
(t *testing.T, s *Server)
internal/auxserver/auxserver_test.go:35
↓ 4 callersMethodredirect
(r *http.Request)
internal/auxserver/auxserver.go:77
↓ 3 callersFunctionFromLocale
(l string)
internal/tag/tag.go:25
↓ 3 callersFunctionFromServingPath
FromServingPath constructs a manpage, gathering details from path
internal/manpage/meta.go:126
↓ 3 callersMethodNarrow
(acceptLang string, template, ref IndexEntry, entries []IndexEntry)
internal/redirect/redirect.go:185
↓ 3 callersMethodSwapIndex
(idx redirect.Index)
internal/auxserver/auxserver.go:56
↓ 3 callersMethodToHTML
TODO(stapelberg): ToHTML’s output currently is used directly as (html/template).HTML, i.e. “known safe HTML document fragment”. We should be more aggr
internal/convert/convert.go:407
↓ 3 callersFunctionbestLanguageMatch
bestLanguageMatch returns the best manpage out of options (coming from current) based on text/language’s matching.
cmd/debiman/rendermanpage.go:186
↓ 3 callersMethodsuggest
(q string)
internal/auxserver/auxserver.go:133
↓ 2 callersMethodHandleRedirect
(w http.ResponseWriter, r *http.Request)
internal/auxserver/auxserver.go:83
↓ 2 callersFunctionInject
Inject overwrites bundled assets with versions from dir. Not all assets must be overwritten at once, i.e. just supplying a modified header.tmpl is per
internal/bundled/inject.go:14
↓ 2 callersFunctionReader
(r io.Reader, lang string)
internal/recode/recode.go:52
↓ 2 callersFunctionWriteIndexTo
(w io.Writer, baseUrl string, contents map[string]time.Time)
internal/sitemap/sitemap.go:63
↓ 2 callersFunctionWriteTo
(w io.Writer, baseUrl string, contents map[string]time.Time)
internal/sitemap/sitemap.go:25
↓ 2 callersFunctioncreateAlternativesLinks
(logger *log.Logger, p pkgEntry, gv globalView)
cmd/debiman/download.go:210
↓ 2 callersFunctiondone
(exhausted []bool)
cmd/debiman/getpackages.go:159
↓ 2 callersFunctionfindClosestFile
findClosestFile returns a manpage struct for name, if name exists in the same suite. TODO(stapelberg): resolve multiple matches: consider dependencies
cmd/debiman/download.go:57
↓ 2 callersFunctionformattedXrefInput
()
internal/convert/convert_test.go:326
↓ 2 callersFunctionlistManpages
listManpages lists all files in dir (non-recursively) and returns a map from filename (within dir) to *manpage.Meta.
cmd/debiman/render.go:105
↓ 2 callersFunctionlogic
TODO: handle deleted packages, i.e. packages which are present on disk but not in pkgs TODO(later): add memory usage estimates to the big structures,
cmd/debiman/main.go:87
↓ 2 callersFunctionmarkPresent
(latestVersion map[string]*manpage.PkgMeta, xref map[string][]*manpage.Meta, filename string, key string)
cmd/debiman/globalview.go:179
↓ 2 callersFunctionmustParseAboutTmpl
()
cmd/debiman/renderaux.go:30
↓ 2 callersFunctionmustParseContentsTmpl
()
cmd/debiman/rendercontents.go:18
↓ 2 callersFunctionmustParseFaqTmpl
()
cmd/debiman/renderaux.go:24
↓ 2 callersFunctionmustParseIndexTmpl
()
cmd/debiman/renderaux.go:18
↓ 2 callersFunctionmustParseManpageTmpl
()
cmd/debiman/rendermanpage.go:97
↓ 2 callersFunctionmustParseManpageerrorTmpl
()
cmd/debiman/rendermanpage.go:116
↓ 2 callersFunctionmustParseManpagefooterextraTmpl
()
cmd/debiman/rendermanpage.go:135
↓ 2 callersFunctionmustParsePkgindexTmpl
()
cmd/debiman/renderpkgindex.go:17
↓ 2 callersFunctionmustParseSrcPkgindexTmpl
()
cmd/debiman/renderpkgindex.go:21
↓ 2 callersFunctiononeVarReader
(varName string, r io.Reader)
goembed.go:65
↓ 2 callersFunctionparseContentsEntry
(scanner *bufio.Scanner)
cmd/debiman/getcontents.go:26
↓ 2 callersFunctionplaintext
(n *html.Node)
internal/convert/convert.go:242
↓ 2 callersFunctionpostprocess
(resolve func(ref string) string, n *html.Node, toc *[]string)
internal/convert/convert.go:286
↓ 2 callersMethodprepareSuggest
prepareSuggest sets sortedNames to a sorted slice of <name>.<section> strings found in idx.
internal/auxserver/auxserver.go:40
↓ 2 callersFunctionreadGzipped
(fn string)
internal/recode/recode_test.go:12
↓ 2 callersFunctionrecurse
(n *html.Node, f func(c *html.Node) error)
internal/convert/convert.go:23
↓ 2 callersFunctionrendermanpage
(gzipw *gzip.Writer, converter *convert.Process, job renderJob)
cmd/debiman/rendermanpage.go:473
↓ 2 callersFunctionrendermanpageprep
(converter *convert.Process, job renderJob)
cmd/debiman/rendermanpage.go:278
↓ 2 callersFunctionreuse
(src string)
cmd/debiman/reuse.go:14
↓ 2 callersFunctionsoElim
(logger *log.Logger, src string, r io.Reader, w io.Writer, contentByPath map[string][]*contentEntry)
cmd/debiman/download.go:163
↓ 2 callersFunctionstripAttr
(n *html.Node, key, val string)
internal/convert/convert.go:275
↓ 2 callersFunctiontempDir
(dest string)
internal/write/atomically.go:12
↓ 2 callersFunctionwalkManContents
walkManContents walks over all entries in dir and, depending on mode, does: 1. send a renderJob for each regular file 2. send a renderJob for each sym
cmd/debiman/render.go:183
↓ 1 callersFunctionAssetsFiltered
(cb func(string) bool)
internal/bundled/inject.go:50
↓ 1 callersFunctionAtomicallyWithGz
(dest string, gzipw *gzip.Writer, write func(w io.Writer) error)
internal/write/atomically.go:73
↓ 1 callersMethodRawPath
RawPath returns the path to access the raw manpage equivalent of what is currently being served, i.e. locked to the current language.
internal/manpage/meta.go:179
↓ 1 callersMethodReset
()
internal/proto/index.pb.go:89
↓ 1 callersMethodSameBinary
(o *PkgMeta)
internal/manpage/meta.go:29
↓ 1 callersMethodServingPath
(suffix string)
internal/redirect/redirect.go:26
↓ 1 callersMethodToJSON
()
cmd/debiman/render.go:55
↓ 1 callersFunctionbestLanguageMatch
bestLanguageMatch is like bestLanguageMatch in rendermanpage.go, but for the redirector index. TODO: can we de-duplicate the code?
internal/redirect/redirect.go:42
↓ 1 callersFunctionbuildContainsMains
TODO(later): containsMans could be a map[string]bool, if only all Debian packages would ship their manpages in all architectures. Example of a package
cmd/debiman/getpackages.go:45
↓ 1 callersFunctionbuildGlobalView
(ar *archive.Downloader, dists []distribution, alternativesDir string, start time.Time)
cmd/debiman/globalview.go:206
↓ 1 callersFunctioncanSkip
canSkip returns true if the package is present in the same (or a newer) version on disk already.
cmd/debiman/download.go:34
↓ 1 callersFunctionconvertFile
(converter *convert.Process, src string, resolve func(ref string) string)
cmd/debiman/rendermanpage.go:145
↓ 1 callersFunctiondiff
(got, want string)
internal/convert/convert_test.go:17
↓ 1 callersFunctiondistributions
distributions returns a list of all distributions (either codenames [e.g. wheezy, jessie] or suites [e.g. testing, unstable]) from the -sync_codenames
cmd/debiman/globalview.go:86
↓ 1 callersFunctiondownloadPkg
(ar *archive.Downloader, p pkgEntry, gv globalView)
cmd/debiman/download.go:268
↓ 1 callersFunctionfindFile
(logger *log.Logger, src, name string, contentByPath map[string][]*contentEntry)
cmd/debiman/download.go:115
↓ 1 callersFunctionfindUrls
findUrls finds anything that roughly like a URL. Matches are filtered by checking whether (net/url).Parse returns an error.
internal/convert/convert.go:101
↓ 1 callersFunctionfindXrefs
(txt string)
internal/convert/convert.go:55
↓ 1 callersFunctiongetAllContents
(ar *archive.Downloader, suite string, release *archive.Release, hashByFilename map[string]*control.SHA256File
cmd/debiman/getcontents.go:179
↓ 1 callersFunctiongetAllPackages
(ar *archive.Downloader, rd *archive.ReleaseDownloader, suite string, release *archive.Release, hashByFilename
cmd/debiman/getpackages.go:329
↓ 1 callersFunctiongetContents
(ar *archive.Downloader, suite string, component string, archs []string, hashByFilename map[string]*control.SH
cmd/debiman/getcontents.go:61
↓ 1 callersFunctiongetPackages
(ar *archive.Downloader, rd *archive.ReleaseDownloader, suite string, component string, archs []string, hashBy
cmd/debiman/getpackages.go:168
↓ 1 callersMethodinitMandoc
()
internal/convert/mandoc.go:38
↓ 1 callersMethodmandoc
(r io.Reader)
internal/convert/mandoc.go:89
↓ 1 callersMethodmandocFork
(r io.Reader)
internal/convert/mandoc.go:106
↓ 1 callersMethodmandocUnix
(r io.Reader)
internal/convert/mandoc.go:118
↓ 1 callersFunctionmaybeSetLinkMtime
(destPath string, t time.Time)
cmd/debiman/mtime.go:8
↓ 1 callersFunctiononeVar
(varName, filename string)
goembed.go:56
↓ 1 callersFunctionparallelDownload
(ar *archive.Downloader, gv globalView)
cmd/debiman/download.go:496
↓ 1 callersFunctionparseAlternativesDir
(dir string)
cmd/debiman/globalview.go:145
↓ 1 callersFunctionparseAlternativesFile
(fn, prefix string)
cmd/debiman/globalview.go:109
↓ 1 callersFunctionparsePackageParagraph
(scanner *bufio.Scanner, arch string, containsMans map[string]map[string]bool)
cmd/debiman/getpackages.go:76
↓ 1 callersFunctionprintAll
(bufw *bufio.Writer, idx redirect.Index, name string)
cmd/debiman-idx2rwmap/rwmap.go:73
↓ 1 callersFunctionrenderAll
(gv globalView)
cmd/debiman/render.go:532
↓ 1 callersFunctionrenderAux
(destDir string, gv globalView)
cmd/debiman/renderaux.go:47
↓ 1 callersFunctionrenderContents
(dest, suite string, bins []string)
cmd/debiman/rendercontents.go:22
next →1–100 of 210, ranked by callers