Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComposerArchive ¶ added in v1.0.3
Note:
GitLab serves repository archive as tar.gz archive, so, for composer:
- repack gitlab archive: ungzip -> untar -> zip
- during repack, set directory and file mtime/atime to predefined constant
- cleanup all temporary files and directories
- cache archive bytes
- return zip archive bytes
func GetNpmArchiveFromCache ¶ added in v1.0.3
Fetch .tgz version of npm archive stored in cache
func GetTokenFromRequest ¶
func PutNpmArchiveToCache ¶ added in v1.0.3
Note:
When project npm-shrinkwrap.json or yarn.lock used to access two different Pavlik instances with different GitLab instances, repository names can differ. In that case, mandatory "shasum" field will not match.
So, for npm: * repack tar.gz archive recevied from GitLab: tar.gz -> tar -> tar -> tgz * force set constant mtime/atime for directories and files * cache final archive bytes * return final archive bytes and calculated shasum
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.