crash.software
Projects
Pull Requests
Issues
Builds
scorecard
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
scorecard
Files
🤬
Sign In
61866a06
ROOT
/
clients
/
githubrepo
/
tarball.go
Search
History
276 lines
|
ISO-8859-1
|
7 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
repoDir
repoFilename
errTarballNotFound
errTarballCorrupted
errZipSlip
extractAndValidateArchivePath
(path, dest string)
:
(string, error)
tarballHandler
errSetup
:
error
once
:
*sync.Once
ctx
:
context.Context
repo
:
*github.Repository
httpClient
:
*http.Client
commitSHA
:
string
tempDir
:
string
tempTarFile
:
string
files
:
[]string
*tarballHandler
init
(ctx context.Context, repo *github.Repository, commitSHA string)
setup
()
:
error
getTarball
()
:
error
extractTarball
()
:
error
listFiles
(predicate func(string) (bool, error))
:
([]string, error)
getLocalPath
()
:
(string, error)
getFileContent
(filename string)
:
([]byte, error)
cleanup
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover