fetch

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMissingManifest

func IsMissingManifest(err error) bool

Types

type Fetcher

type Fetcher struct{ Runner gitx.Runner }

func (Fetcher) Fetch

func (f Fetcher) Fetch(ctx context.Context, url, ref, modulePath, work string) (Result, error)

func (Fetcher) FetchFile

func (f Fetcher) FetchFile(ctx context.Context, url, ref, filePath, work string) (Result, error)

FetchFile resolves ref and returns a single file together with the strategy used. It is primarily useful for conformance checks of real git hosts.

func (Fetcher) File

func (f Fetcher) File(ctx context.Context, url, commit, filePath string) ([]byte, error)

func (Fetcher) Surface

func (f Fetcher) Surface(ctx context.Context, url, commit, modulePath, surface, dest, work string) (SurfaceResult, error)

type MissingManifestError added in v1.7.0

type MissingManifestError struct{ Commit string }

func (*MissingManifestError) Error added in v1.7.0

func (e *MissingManifestError) Error() string

type Result

type Result struct {
	Manifest            []byte
	Commit, Ref, Method string
	ManifestName        string
}

type SurfaceResult

type SurfaceResult struct {
	Files  []string
	Tree   string
	Method string
}

Jump to

Keyboard shortcuts

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