Documentation
¶
Overview ¶
Package golang provides a concrete Cataloger implementation relating to packages within the Go language ecosystem.
Index ¶
- Constants
- func NewGoModuleBinaryCataloger(opts GoCatalogerOpts) pkg.Cataloger
- func NewGoModuleFileCataloger(opts GoCatalogerOpts) pkg.Cataloger
- type GoCatalogerOpts
- func (g GoCatalogerOpts) WithLocalModCacheDir(input string) GoCatalogerOpts
- func (g GoCatalogerOpts) WithNoProxy(input string) GoCatalogerOpts
- func (g GoCatalogerOpts) WithProxy(input string) GoCatalogerOpts
- func (g GoCatalogerOpts) WithSearchLocalModCacheLicenses(input bool) GoCatalogerOpts
- func (g GoCatalogerOpts) WithSearchRemoteLicenses(input bool) GoCatalogerOpts
Constants ¶
View Source
const GOARCH = "GOARCH"
Variables ¶
This section is empty.
Functions ¶
func NewGoModuleBinaryCataloger ¶ added in v0.25.0
func NewGoModuleBinaryCataloger(opts GoCatalogerOpts) pkg.Cataloger
NewGoModuleBinaryCataloger returns a new cataloger object that searches within binaries built by the go compiler.
func NewGoModuleFileCataloger ¶ added in v0.95.0
func NewGoModuleFileCataloger(opts GoCatalogerOpts) pkg.Cataloger
NewGoModuleFileCataloger returns a new cataloger object that searches within go.mod files.
Types ¶
type GoCatalogerOpts ¶ added in v0.76.0
type GoCatalogerOpts struct {
// contains filtered or unexported fields
}
func NewGoCatalogerOpts ¶ added in v0.78.0
func NewGoCatalogerOpts() GoCatalogerOpts
NewGoCatalogerOpts create a GoCatalogerOpts with default options, which includes: - setting the default remote proxy if none is provided - setting the default no proxy if none is provided - setting the default local module cache dir if none is provided
func (GoCatalogerOpts) WithLocalModCacheDir ¶ added in v0.78.0
func (g GoCatalogerOpts) WithLocalModCacheDir(input string) GoCatalogerOpts
func (GoCatalogerOpts) WithNoProxy ¶ added in v0.78.0
func (g GoCatalogerOpts) WithNoProxy(input string) GoCatalogerOpts
func (GoCatalogerOpts) WithProxy ¶ added in v0.78.0
func (g GoCatalogerOpts) WithProxy(input string) GoCatalogerOpts
func (GoCatalogerOpts) WithSearchLocalModCacheLicenses ¶ added in v0.78.0
func (g GoCatalogerOpts) WithSearchLocalModCacheLicenses(input bool) GoCatalogerOpts
func (GoCatalogerOpts) WithSearchRemoteLicenses ¶ added in v0.78.0
func (g GoCatalogerOpts) WithSearchRemoteLicenses(input bool) GoCatalogerOpts
Source Files
¶
Click to show internal directories.
Click to hide internal directories.