golang

package
v0.0.0-...-f61acfb Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package golang provides a concrete Cataloger implementation for go.mod files.

Index

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 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

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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