Documentation ¶
Overview ¶
Package golang provides a concrete Cataloger implementation for go.mod files.
Index ¶
- Constants
- func NewGoModFileCataloger(opts GoCatalogerOpts) pkg.Cataloger
- func NewGoModuleBinaryCataloger(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 NewGoModFileCataloger ¶ added in v0.25.0
func NewGoModFileCataloger(opts GoCatalogerOpts) pkg.Cataloger
NewGoModFileCataloger returns a new Go module cataloger object.
func NewGoModuleBinaryCataloger ¶ added in v0.25.0
func NewGoModuleBinaryCataloger(opts GoCatalogerOpts) pkg.Cataloger
NewGoModuleBinaryCataloger returns a new Golang cataloger object.
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.