Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Debian/debiman
/ functions
Functions
210 in github.com/Debian/debiman
⨍
Functions
210
◇
Types & classes
39
↓ 43 callers
Method
String
()
internal/manpage/meta.go:168
↓ 26 callers
Method
mustPrint
(key string, template redirect.IndexEntry)
cmd/debiman-idx2rwmap/rwmap.go:53
↓ 21 callers
Method
ServingPath
()
internal/manpage/meta.go:172
↓ 15 callers
Function
Atomically
(dest string, compress bool, write func(w io.Writer) error)
internal/write/atomically.go:23
↓ 14 callers
Function
Asset
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 callers
Method
Redirect
(r *http.Request)
internal/redirect/redirect.go:359
↓ 11 callers
Function
mustParseFromServingPath
(t *testing.T, path string)
cmd/debiman/rendermanpage_test.go:14
↓ 11 callers
Function
xref
(txt string, resolve func(ref string) string)
internal/convert/convert.go:184
↓ 9 callers
Function
cmpElems
(input *html.Node, got []*html.Node, want []*html.Node)
internal/convert/convert_test.go:101
↓ 8 callers
Method
Error
()
internal/redirect/redirect.go:355
↓ 8 callers
Function
FromManPath
FromManPath constructs a manpage, gathering details from path (relative underneath /usr/share/man).
internal/manpage/meta.go:67
↓ 8 callers
Method
Write
(p []byte)
cmd/debiman/rendermanpage.go:468
↓ 6 callers
Function
NewServer
(idx redirect.Index, notFoundTmpl *template.Template, debimanVersion string)
internal/auxserver/auxserver.go:28
↓ 5 callers
Function
BaseURLPath
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 callers
Function
less
(a, b pkgEntry)
cmd/debiman/getpackages.go:152
↓ 4 callers
Function
IndexFromProto
(path string)
internal/redirect/redirect.go:444
↓ 4 callers
Method
Kill
()
internal/convert/mandoc.go:30
↓ 4 callers
Method
MainSection
()
internal/manpage/meta.go:187
↓ 4 callers
Function
MustParseCommonTmpls
()
internal/commontmpl/commontmpl.go:44
↓ 4 callers
Function
NewProcess
()
internal/convert/mandoc.go:25
↓ 4 callers
Function
mustRedirectI3
(t *testing.T, s *Server)
internal/auxserver/auxserver_test.go:35
↓ 4 callers
Method
redirect
(r *http.Request)
internal/auxserver/auxserver.go:77
↓ 3 callers
Function
FromLocale
(l string)
internal/tag/tag.go:25
↓ 3 callers
Function
FromServingPath
FromServingPath constructs a manpage, gathering details from path
internal/manpage/meta.go:126
↓ 3 callers
Method
Narrow
(acceptLang string, template, ref IndexEntry, entries []IndexEntry)
internal/redirect/redirect.go:185
↓ 3 callers
Method
SwapIndex
(idx redirect.Index)
internal/auxserver/auxserver.go:56
↓ 3 callers
Method
ToHTML
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 callers
Function
bestLanguageMatch
bestLanguageMatch returns the best manpage out of options (coming from current) based on text/language’s matching.
cmd/debiman/rendermanpage.go:186
↓ 3 callers
Method
suggest
(q string)
internal/auxserver/auxserver.go:133
↓ 2 callers
Method
HandleRedirect
(w http.ResponseWriter, r *http.Request)
internal/auxserver/auxserver.go:83
↓ 2 callers
Function
Inject
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 callers
Function
Reader
(r io.Reader, lang string)
internal/recode/recode.go:52
↓ 2 callers
Function
WriteIndexTo
(w io.Writer, baseUrl string, contents map[string]time.Time)
internal/sitemap/sitemap.go:63
↓ 2 callers
Function
WriteTo
(w io.Writer, baseUrl string, contents map[string]time.Time)
internal/sitemap/sitemap.go:25
↓ 2 callers
Function
createAlternativesLinks
(logger *log.Logger, p pkgEntry, gv globalView)
cmd/debiman/download.go:210
↓ 2 callers
Function
done
(exhausted []bool)
cmd/debiman/getpackages.go:159
↓ 2 callers
Function
findClosestFile
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 callers
Function
formattedXrefInput
()
internal/convert/convert_test.go:326
↓ 2 callers
Function
listManpages
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 callers
Function
logic
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 callers
Function
markPresent
(latestVersion map[string]*manpage.PkgMeta, xref map[string][]*manpage.Meta, filename string, key string)
cmd/debiman/globalview.go:179
↓ 2 callers
Function
mustParseAboutTmpl
()
cmd/debiman/renderaux.go:30
↓ 2 callers
Function
mustParseContentsTmpl
()
cmd/debiman/rendercontents.go:18
↓ 2 callers
Function
mustParseFaqTmpl
()
cmd/debiman/renderaux.go:24
↓ 2 callers
Function
mustParseIndexTmpl
()
cmd/debiman/renderaux.go:18
↓ 2 callers
Function
mustParseManpageTmpl
()
cmd/debiman/rendermanpage.go:97
↓ 2 callers
Function
mustParseManpageerrorTmpl
()
cmd/debiman/rendermanpage.go:116
↓ 2 callers
Function
mustParseManpagefooterextraTmpl
()
cmd/debiman/rendermanpage.go:135
↓ 2 callers
Function
mustParsePkgindexTmpl
()
cmd/debiman/renderpkgindex.go:17
↓ 2 callers
Function
mustParseSrcPkgindexTmpl
()
cmd/debiman/renderpkgindex.go:21
↓ 2 callers
Function
oneVarReader
(varName string, r io.Reader)
goembed.go:65
↓ 2 callers
Function
parseContentsEntry
(scanner *bufio.Scanner)
cmd/debiman/getcontents.go:26
↓ 2 callers
Function
plaintext
(n *html.Node)
internal/convert/convert.go:242
↓ 2 callers
Function
postprocess
(resolve func(ref string) string, n *html.Node, toc *[]string)
internal/convert/convert.go:286
↓ 2 callers
Method
prepareSuggest
prepareSuggest sets sortedNames to a sorted slice of <name>.<section> strings found in idx.
internal/auxserver/auxserver.go:40
↓ 2 callers
Function
readGzipped
(fn string)
internal/recode/recode_test.go:12
↓ 2 callers
Function
recurse
(n *html.Node, f func(c *html.Node) error)
internal/convert/convert.go:23
↓ 2 callers
Function
rendermanpage
(gzipw *gzip.Writer, converter *convert.Process, job renderJob)
cmd/debiman/rendermanpage.go:473
↓ 2 callers
Function
rendermanpageprep
(converter *convert.Process, job renderJob)
cmd/debiman/rendermanpage.go:278
↓ 2 callers
Function
reuse
(src string)
cmd/debiman/reuse.go:14
↓ 2 callers
Function
soElim
(logger *log.Logger, src string, r io.Reader, w io.Writer, contentByPath map[string][]*contentEntry)
cmd/debiman/download.go:163
↓ 2 callers
Function
stripAttr
(n *html.Node, key, val string)
internal/convert/convert.go:275
↓ 2 callers
Function
tempDir
(dest string)
internal/write/atomically.go:12
↓ 2 callers
Function
walkManContents
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 callers
Function
AssetsFiltered
(cb func(string) bool)
internal/bundled/inject.go:50
↓ 1 callers
Function
AtomicallyWithGz
(dest string, gzipw *gzip.Writer, write func(w io.Writer) error)
internal/write/atomically.go:73
↓ 1 callers
Method
RawPath
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 callers
Method
Reset
()
internal/proto/index.pb.go:89
↓ 1 callers
Method
SameBinary
(o *PkgMeta)
internal/manpage/meta.go:29
↓ 1 callers
Method
ServingPath
(suffix string)
internal/redirect/redirect.go:26
↓ 1 callers
Method
ToJSON
()
cmd/debiman/render.go:55
↓ 1 callers
Function
bestLanguageMatch
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 callers
Function
buildContainsMains
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 callers
Function
buildGlobalView
(ar *archive.Downloader, dists []distribution, alternativesDir string, start time.Time)
cmd/debiman/globalview.go:206
↓ 1 callers
Function
canSkip
canSkip returns true if the package is present in the same (or a newer) version on disk already.
cmd/debiman/download.go:34
↓ 1 callers
Function
convertFile
(converter *convert.Process, src string, resolve func(ref string) string)
cmd/debiman/rendermanpage.go:145
↓ 1 callers
Function
diff
(got, want string)
internal/convert/convert_test.go:17
↓ 1 callers
Function
distributions
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 callers
Function
downloadPkg
(ar *archive.Downloader, p pkgEntry, gv globalView)
cmd/debiman/download.go:268
↓ 1 callers
Function
findFile
(logger *log.Logger, src, name string, contentByPath map[string][]*contentEntry)
cmd/debiman/download.go:115
↓ 1 callers
Function
findUrls
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 callers
Function
findXrefs
(txt string)
internal/convert/convert.go:55
↓ 1 callers
Function
getAllContents
(ar *archive.Downloader, suite string, release *archive.Release, hashByFilename map[string]*control.SHA256File
cmd/debiman/getcontents.go:179
↓ 1 callers
Function
getAllPackages
(ar *archive.Downloader, rd *archive.ReleaseDownloader, suite string, release *archive.Release, hashByFilename
cmd/debiman/getpackages.go:329
↓ 1 callers
Function
getContents
(ar *archive.Downloader, suite string, component string, archs []string, hashByFilename map[string]*control.SH
cmd/debiman/getcontents.go:61
↓ 1 callers
Function
getPackages
(ar *archive.Downloader, rd *archive.ReleaseDownloader, suite string, component string, archs []string, hashBy
cmd/debiman/getpackages.go:168
↓ 1 callers
Method
initMandoc
()
internal/convert/mandoc.go:38
↓ 1 callers
Method
mandoc
(r io.Reader)
internal/convert/mandoc.go:89
↓ 1 callers
Method
mandocFork
(r io.Reader)
internal/convert/mandoc.go:106
↓ 1 callers
Method
mandocUnix
(r io.Reader)
internal/convert/mandoc.go:118
↓ 1 callers
Function
maybeSetLinkMtime
(destPath string, t time.Time)
cmd/debiman/mtime.go:8
↓ 1 callers
Function
oneVar
(varName, filename string)
goembed.go:56
↓ 1 callers
Function
parallelDownload
(ar *archive.Downloader, gv globalView)
cmd/debiman/download.go:496
↓ 1 callers
Function
parseAlternativesDir
(dir string)
cmd/debiman/globalview.go:145
↓ 1 callers
Function
parseAlternativesFile
(fn, prefix string)
cmd/debiman/globalview.go:109
↓ 1 callers
Function
parsePackageParagraph
(scanner *bufio.Scanner, arch string, containsMans map[string]map[string]bool)
cmd/debiman/getpackages.go:76
↓ 1 callers
Function
printAll
(bufw *bufio.Writer, idx redirect.Index, name string)
cmd/debiman-idx2rwmap/rwmap.go:73
↓ 1 callers
Function
renderAll
(gv globalView)
cmd/debiman/render.go:532
↓ 1 callers
Function
renderAux
(destDir string, gv globalView)
cmd/debiman/renderaux.go:47
↓ 1 callers
Function
renderContents
(dest, suite string, bins []string)
cmd/debiman/rendercontents.go:22
next →
1–100 of 210, ranked by callers