golang

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MulanPSL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name() string

func PkgType

func PkgType() model.PkgType

Types

type Collector

type Collector struct {
	collector.BaseCollector
}

func NewCollector

func NewCollector() *Collector

type GlideYAMLParser

type GlideYAMLParser struct{}

GlideYAMLParser is a parser for glide.yaml file. see: https://github.com/Masterminds/glide

func NewGlideYAMLParser

func NewGlideYAMLParser() *GlideYAMLParser

NewGlideYAMLParser returns a new GlideYAMLParser

func (*GlideYAMLParser) Matcher

func (p *GlideYAMLParser) Matcher() collector.FileMatcher

func (*GlideYAMLParser) Parse

func (p *GlideYAMLParser) Parse(path string) ([]model.Package, error)

type GoBinaryParser

type GoBinaryParser struct{}

GoBinaryParser is a parser for go binary file. see: https://pkg.go.dev/runtime/debug#BuildInfo

func NewGoBinaryParser

func NewGoBinaryParser() GoBinaryParser

func (GoBinaryParser) Matcher

func (GoBinaryParser) Parse

func (GoBinaryParser) Parse(path string) (pkgs []model.Package, err error)

type GoModFileParser

type GoModFileParser struct{}

GoModFileParser is a parser for go.mod file. see: https://go.dev/ref/mod#go-mod-file

func NewGoModFileParser

func NewGoModFileParser() *GoModFileParser

NewGoModFileParser returns a new GoModFileParser

func (GoModFileParser) Matcher

func (GoModFileParser) Parse

func (g GoModFileParser) Parse(path string) ([]model.Package, error)

type GoModGraphParser

type GoModGraphParser struct{}

GoModGraphParser is a parser for output of executing 'go mod graph' command see: https://go.dev/ref/mod#go-mod-graph

func NewGoModGraphParser

func NewGoModGraphParser() *GoModGraphParser

NewGoModGraphParser returns a new GoModGraphParser

func (*GoModGraphParser) Matcher

func (p *GoModGraphParser) Matcher() collector.FileMatcher

func (*GoModGraphParser) Parse

func (p *GoModGraphParser) Parse(path string) ([]model.Package, error)

type Godeps

type Godeps struct {
	ImportPath   string
	GoVersion    string   // Abridged output of 'go version'.
	GodepVersion string   // Abridged output of 'godep version'
	Packages     []string // Arguments to godep save, if any.
	Deps         []struct {
		ImportPath string
		Comment    string // Description of commit, if present.
		Rev        string // VCS-specific commit ID.
	}
}

see https://github.com/tools/godep

type GodepsJSONParser

type GodepsJSONParser struct{}

GodepsJSONParser is a parser for Godeps.json file. see: https://github.com/tools/godep

func NewGodepsJSONParser

func NewGodepsJSONParser() *GodepsJSONParser

NewGodepsJSONParser returns a new GodepsJSONParser

func (*GodepsJSONParser) Matcher

func (p *GodepsJSONParser) Matcher() collector.FileMatcher

func (*GodepsJSONParser) Parse

func (p *GodepsJSONParser) Parse(path string) ([]model.Package, error)

type GopkgTOMLParser

type GopkgTOMLParser struct{}

GopkgTOMLParser is a parser for Gopkg.toml file. see: https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md

func NewGopkgTOMLParser

func NewGopkgTOMLParser() *GopkgTOMLParser

NewGopkgTOMLParser returns a new GopkgTOMLParser

func (*GopkgTOMLParser) Matcher

func (p *GopkgTOMLParser) Matcher() collector.FileMatcher

func (*GopkgTOMLParser) Parse

func (p *GopkgTOMLParser) Parse(path string) ([]model.Package, error)

type GvtJson

type GvtJson struct {
	Dependencies []struct {
		ImportPath string
		Revision   string
		Path       string
	}
}

see https://github.com/FiloSottile/gvt

type GvtManifestParser

type GvtManifestParser struct{}

GvtManifestParser is a parser for vendor/manifest file of gvt. see: https://github.com/FiloSottile/gvt

func NewGvtManifestParser

func NewGvtManifestParser() *GvtManifestParser

NewGvtManifestParser returns a new GodepsJSONParser

func (*GvtManifestParser) Matcher

func (*GvtManifestParser) Parse

func (p *GvtManifestParser) Parse(path string) ([]model.Package, error)

Jump to

Keyboard shortcuts

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