MCPcopy Index your code
hub / github.com/aptly-dev/aptly / apiReposPackageFromFile

Function apiReposPackageFromFile

api/repos.go:547–550  ·  view source on GitHub ↗

@Summary Add Uploaded File @Description Import packages from files (uploaded using File Upload API) to the local repository. If directory specified, aptly would discover package files automatically. @Description Adding same package to local repository is not an error. @Description By default aptly w

(c *gin.Context)

Source from the content-addressed store, hash-verified

545// @Failure 500 {object} Error "Error adding files"
546// @Router /api/repos/{name}/file/{dir}/{file} [post]
547func apiReposPackageFromFile(c *gin.Context) {
548 // redirect all work to dir method
549 apiReposPackageFromDir(c)
550}
551
552// @Summary Add Uploaded Directory
553// @Description Import packages from files (uploaded using File Upload API) to the local repository. If directory specified, aptly would discover package files automatically.

Callers

nothing calls this directly

Calls 1

apiReposPackageFromDirFunction · 0.85

Tested by

no test coverage detected