inspector

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CPPModuleUUID = uuid.Must(uuid.Parse("794a5c39-ce6b-458e-8f26-ff26298bab09"))
View Source
var CxxExtSet = map[string]bool{
	".c":   true,
	".h":   true,
	".hpp": true,
	".cpp": true,
	".cxx": true,
	".c++": true,
	".C":   true,
	".cc":  true,
	".hxx": true,
	".C++": true,
	".cp":  true,
}

Functions

func BinScan

func BinScan(ctx context.Context) error

func CollectContributor

func CollectContributor(dir string) ([]api.Contributor, error)

func FileHashScan

func FileHashScan(ctx context.Context) error

func Scan

func Scan(ctx context.Context) error

func ScanCodeFile

func ScanCodeFile(ctx context.Context) []string

func ScannerScan

func ScannerScan(dir string)

func UploadCodeFile

func UploadCodeFile(ctx context.Context) error

Types

type GitInfo

type GitInfo struct {
	RemoteName     string    `json:"remote_name"`
	RemoteURL      string    `json:"remote_url"`
	HeadCommitHash string    `json:"head_commit_hash"`
	HeadRefName    string    `json:"head_ref_name"`
	ProjectName    string    `json:"project_name"`
	CommitMsg      string    `json:"commit_msg"`
	Committer      string    `json:"committer"`
	CommitterEmail string    `json:"committer_email"`
	CommitTime     time.Time `json:"commit_time"`
}

func (*GitInfo) ApiVo

func (g *GitInfo) ApiVo() *api.VoGitInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL