plugin

package
v0.20.14 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModeUndefined = Mode("")

	ModeStandalone       = Mode("standalone")
	ModeExtension        = Mode("extension")
	ModeCustomTypeModule = Mode("custom")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	URL                 string
	Mod                 *modfile.File
	ModLocation         string
	NonStandardPackages Packages
	CustomTypesPackages Packages
	CustomCodecPackages Packages
	IntegrationMode     Mode
	HasMethod           bool
	UsePkg              bool
	// contains filtered or unexported fields
}

func NewInfo

func NewInfo(ctx context.Context, URL string) (*Info, error)

func (*Info) ChecksumPkg

func (i *Info) ChecksumPkg() string

func (*Info) ChecksumURL

func (i *Info) ChecksumURL() string

func (*Info) DependencyPkg

func (i *Info) DependencyPkg() string

func (*Info) DependencyURL

func (i *Info) DependencyURL() string

func (*Info) IsStandalone

func (i *Info) IsStandalone() bool

func (*Info) Package

func (i *Info) Package(pkg string) string

func (*Info) PluginURL

func (i *Info) PluginURL() string

func (*Info) TypeCorePkg

func (i *Info) TypeCorePkg() string

func (*Info) UpdateDependencies

func (i *Info) UpdateDependencies(URL string)

type Mode

type Mode string //Extension|CustomModule

type Package

type Package struct {
	// contains filtered or unexported fields
}

func NewPackage

func NewPackage(modFileLocation string, modFile *modfile.File) *Package

NewPackage returns package informer

func (*Package) LoadImports

func (p *Package) LoadImports(ctx context.Context, location string) (*packages.Package, error)

func (*Package) NonStandard

func (p *Package) NonStandard(ctx context.Context, location string) (Packages, error)

func (*Package) Package

func (p *Package) Package(location string) (*packages.Package, error)

type Packages

type Packages []*packages.Package

func (*Packages) Append

func (p *Packages) Append(pkg *packages.Package)

func (Packages) Index

func (p Packages) Index() map[string]*packages.Package

Jump to

Keyboard shortcuts

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