golang

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	ResolveVersion func(context.Context, string, string, string) (string, error)
	Download       func(context.Context, string, string) error
	Materialized   func(context.Context, string, string) (bool, string, error)
}

func (Adapter) Capability

func (a Adapter) Capability(root string, dep adapter.Dependency, exp adapter.Export) error

Capability performs a read-only check of the consumer and source shape. A NotWirable result is reserved for Git URLs that cannot be represented as a Go module source; missing consumer state remains an ordinary error.

func (Adapter) Detect

func (Adapter) Detect(root string) (bool, adapter.Variant, error)

func (Adapter) Drift

func (Adapter) Ecosystem

func (Adapter) Ecosystem() string

func (Adapter) Inspect

func (a Adapter) Inspect(ctx context.Context, root string, dep adapter.Dependency, exp adapter.Export, locked adapter.Locked) ([]adapter.Finding, error)

Inspect validates the declaration first, then asks the Go toolchain in offline/read-only mode where the selected module is materialized.

func (Adapter) Pull

func (a Adapter) Pull(ctx context.Context, root string, dep adapter.Dependency, exp adapter.Export, locked adapter.Locked) (adapter.Change, error)

Pull converges both the native declaration and its local materialization.

func (Adapter) Remove

func (a Adapter) Remove(ctx context.Context, root string, dep adapter.Dependency, exp adapter.Export, locked adapter.Locked) (adapter.Change, error)

Remove drops only the owned root directives. The Go module cache is shared across projects and go.sum is a checksum cache rather than a root lock, so deleting either would risk unrelated or transitively required modules.

func (Adapter) Unwire

func (Adapter) Wire

func (a Adapter) Wire(ctx context.Context, root string, dep adapter.Dependency, exp adapter.Export, locked adapter.Locked) (adapter.Change, error)

Jump to

Keyboard shortcuts

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