plugin

package
v0.10.11 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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