Documentation
¶
Overview ¶
Package sourcearchive 는 외부 원본 저장소의 특정 커밋 파일을 가져온다.
템플릿이 원본을 새 앱 저장소로 복사할 때 쓴다(port.SourceArchive). git 을 실행하지 않고 호스트가 내주는 커밋 아카이브를 받아 푼다 — API 파드에는 git 이 없고, 이력은 필요 없다.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLimits = Limits{
MaxFiles: 1000,
MaxTotalBytes: 32 << 20,
MaxFileBytes: 8 << 20,
}
DefaultLimits 는 eGov 샘플(파일 약 150개, 2.8MB)에 여유를 둔 값이다. 가져온 파일은 커밋 요청 하나에 실리고(GitLab 커밋 API 는 요청 하나, 바이너리는 base64 로 3분의 1 이 늘어난다) 그 요청은 타임아웃 안에 끝나야 한다.
Functions ¶
This section is empty.
Types ¶
type GitHub ¶
type GitHub struct {
// contains filtered or unexported fields
}
GitHub 은 github.com 저장소의 커밋 아카이브를 받는다.
func (*GitHub) WithBaseURL ¶
WithBaseURL 은 아카이브를 받을 주소를 바꾼다(테스트·사설 미러).
func (*GitHub) WithLimits ¶
WithLimits 는 크기 한도를 바꾼다.
Click to show internal directories.
Click to hide internal directories.