plugin

package
v2.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	Go   string
	Libc string
	Deps map[string]string
}

Descriptor lists all the deps and versions required by a binary/plugin

func Describe

func Describe(r io.Reader, goVersion, libcVersion string) (Descriptor, error)

Describe reads a go.sum and returns a descriptor for the build or an error

func Local

func Local() Descriptor

Local returns a descriptor for the binary calling it

func (Descriptor) Compare

func (d Descriptor) Compare(other Descriptor) []Diff

Compare generates a list of diffs (incompatibility) between two descriptors

type Diff

type Diff struct {
	Name     string
	Expected string
	Have     string
}

Diff points an incompatibility between descriptors

Jump to

Keyboard shortcuts

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