Documentation
¶
Overview ¶
internal/analyzer/analyzer.go
internal/analyzer/clone.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct{}
Analyzer wraps scc's processor package to analyze source code directories.
type Cloner ¶
type Cloner struct {
// contains filtered or unexported fields
}
Cloner performs shallow git clones into temporary directories.
func NewCloner ¶
NewCloner creates a Cloner. If token is non-empty it will be used for HTTP basic-auth (username "x-token-auth" works for GitHub and Bitbucket).
func (*Cloner) Clone ¶
func (c *Cloner) Clone(ctx context.Context, cloneURL string) (dir string, cleanup func(), err error)
Clone shallow-clones the repository at cloneURL into a temporary directory. It returns the directory path, a cleanup function that removes the directory, and any error. The caller must call cleanup when done with the directory.
Click to show internal directories.
Click to hide internal directories.