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 ExtendedBuildInfo
- 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 ¶
func NewGoModFileCataloger(opts GoCatalogerOpts) pkg.Cataloger
NewGoModFileCataloger returns a new Go module cataloger object.
func NewGoModuleBinaryCataloger ¶
func NewGoModuleBinaryCataloger(opts GoCatalogerOpts) pkg.Cataloger
NewGoModuleBinaryCataloger returns a new Golang cataloger object.
Types ¶
type ExtendedBuildInfo ¶
type GoCatalogerOpts ¶
type GoCatalogerOpts struct {
// contains filtered or unexported fields
}
func NewGoCatalogerOpts ¶
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 ¶
func (g GoCatalogerOpts) WithLocalModCacheDir(input string) GoCatalogerOpts
func (GoCatalogerOpts) WithNoProxy ¶
func (g GoCatalogerOpts) WithNoProxy(input string) GoCatalogerOpts
func (GoCatalogerOpts) WithProxy ¶
func (g GoCatalogerOpts) WithProxy(input string) GoCatalogerOpts
func (GoCatalogerOpts) WithSearchLocalModCacheLicenses ¶
func (g GoCatalogerOpts) WithSearchLocalModCacheLicenses(input bool) GoCatalogerOpts
func (GoCatalogerOpts) WithSearchRemoteLicenses ¶
func (g GoCatalogerOpts) WithSearchRemoteLicenses(input bool) GoCatalogerOpts
Source Files ¶
Click to show internal directories.
Click to hide internal directories.