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

Function apiReposIncludePackageFromFile

api/repos.go:892–895  ·  view source on GitHub ↗

@Summary Include File from Directory @Description Allows automatic processing of .changes file controlling package upload (uploaded using File Upload API) to the local repository. i.e. Exposes repo include command in api. @Tags Repos @Param name path string true "Repository name" @Param dir path str

(c *gin.Context)

Source from the content-addressed store, hash-verified

890// @Failure 404 {object} Error "Not Found"
891// @Router /api/repos/{name}/include/{dir}/{file} [post]
892func apiReposIncludePackageFromFile(c *gin.Context) {
893 // redirect all work to dir method
894 apiReposIncludePackageFromDir(c)
895}
896
897type reposIncludePackageFromDirResponse struct {
898 Report *aptly.RecordingResultReporter

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected