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
/
localdir
/
client.go
Search
History
269 lines
|
ISO-8859-1
|
8 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
clients.RepoClient
errInputRepoType
localDirClient
logger
:
*log.Logger
ctx
:
context.Context
path
:
string
once
:
sync.Once
errFiles
:
error
files
:
[]string
commitDepth
:
int
isDir
(p string)
:
(bool, error)
trimPrefix
(pathfn, clientPath string)
:
string
listFiles
(clientPath string)
:
([]string, error)
applyPredicate
( clientFiles []string, errFiles error, predicate func(string) (bool, error), )
:
([]string, error)
getFileContent
(clientpath, filename string)
:
([]byte, error)
CreateLocalDirClient
(ctx context.Context, logger *log.Logger)
:
clients.RepoClient
*localDirClient
InitRepo
(inputRepo clients.Repo, commitSHA string, commitDepth int)
:
error
URI
()
:
string
IsArchived
()
:
(bool, error)
LocalPath
()
:
(string, error)
ListFiles
(predicate func(string) (bool, error))
:
([]string, error)
GetFileContent
(filename string)
:
([]byte, error)
GetBranch
(branch string)
:
(*clients.BranchRef, error)
GetDefaultBranch
()
:
(*clients.BranchRef, error)
GetDefaultBranchName
()
:
(string, error)
ListCommits
()
:
([]clients.Commit, error)
ListIssues
()
:
([]clients.Issue, error)
ListReleases
()
:
([]clients.Release, error)
ListContributors
()
:
([]clients.User, error)
ListSuccessfulWorkflowRuns
(filename string)
:
([]clients.WorkflowRun, error)
ListCheckRunsForRef
(ref string)
:
([]clients.CheckRun, error)
ListStatuses
(ref string)
:
([]clients.Status, error)
ListWebhooks
()
:
([]clients.Webhook, error)
Search
(request clients.SearchRequest)
:
(clients.SearchResponse, error)
SearchCommits
(request clients.SearchCommitsOptions)
:
([]clients.Commit, error)
Close
()
:
error
ListProgrammingLanguages
()
:
([]clients.Language, error)
ListLicenses
()
:
([]clients.License, error)
GetCreatedAt
()
:
(time.Time, error)
All occurrences
Please wait...
Page is in error, reload to recover