Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrNoGradle _e // gradle: No gradle found ErrEvalGradleVersion // gradle: Eval gradle version failed )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DepElement ¶
type DepElement struct { GroupId string `json:"group_id"` ArtifactId string `json:"artifact_id"` Version string `json:"version"` Children []DepElement `json:"children,omitempty"` }
func (DepElement) CompName ¶
func (d DepElement) CompName() string
type EvalVersionError ¶ added in v1.9.8
type EvalVersionError struct { ExitCode int `json:"exit_code"` Stderr string `json:"stderr"` // contains filtered or unexported fields }
func (*EvalVersionError) Error ¶ added in v1.9.8
func (e *EvalVersionError) Error() string
func (*EvalVersionError) Is ¶ added in v1.9.8
func (e *EvalVersionError) Is(target error) bool
func (*EvalVersionError) Unwrap ¶ added in v1.9.8
func (e *EvalVersionError) Unwrap() error
type GradleDependencyInfo ¶
type GradleDependencyInfo struct { ProjectName string `json:"project_name"` Dependencies []DepElement `json:"dependencies,omitempty"` }
func (*GradleDependencyInfo) BaseModule ¶
func (g *GradleDependencyInfo) BaseModule(path string) model.Module
type GradleEnv ¶ added in v1.9.8
type GradleEnv struct { Version GradleVersion `json:"version"` Path string `json:"path,omitempty"` GradleWrapperStatus GradleWrapperStatus `json:"gradle_wrapper_status"` GradleWrapperError error `json:"gradle_wrapper_error,omitempty"` }
func DetectGradleEnv ¶ added in v1.9.8
type GradleVersion ¶ added in v1.9.8
type GradleVersion struct { Version string `json:"version"` Items map[string]string `json:"items,omitempty"` }
func (*GradleVersion) String ¶ added in v1.9.8
func (g *GradleVersion) String() string
type GradleWrapperStatus ¶ added in v1.9.8
type GradleWrapperStatus string
const ( // GradleWrapperStatusNotDetected Gradle wrapper is not detected GradleWrapperStatusNotDetected GradleWrapperStatus = "gradle_wrapper_not_detected" // GradleWrapperStatusUsed Gradle wrapper is detected and used GradleWrapperStatusUsed GradleWrapperStatus = "gradle_wrapper_used" // GradleWrapperStatusError Gradle wrapper is detected but some errors happened GradleWrapperStatusError GradleWrapperStatus = "gradle_wrapper_error" )
type Inspector ¶
type Inspector struct{}
func (*Inspector) SupportFeature ¶ added in v1.9.2
func (i *Inspector) SupportFeature(feature model.InspectorFeature) bool
Click to show internal directories.
Click to hide internal directories.