fetch

package
v1.0.0-beta.67 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloner

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

Cloner clones an upstream repo defined by a repoSpec. Optionally, previously cloned repos can be cached rather than recloning them each time.

func NewCloner

func NewCloner(r *gitutil.RepoSpec, opts ...NewClonerOption) *Cloner

func (*Cloner) ClonerUsingGitExec

func (c *Cloner) ClonerUsingGitExec(ctx context.Context) error

ClonerUsingGitExec uses a local git install, as opposed to say, some remote API, to obtain a local clone of a remote repo. It looks for tags with the directory as a prefix to allow for versioning multiple kpt packages in a single repo independently. It relies on the private clonerUsingGitExec function to try fetching different refs.

type Command

type Command struct {
	Pkg *pkg.Pkg
}

Command takes the upstream information in the Kptfile at the path for the provided package, and fetches the package referenced if it isn't already there.

func (Command) Run

func (c Command) Run(ctx context.Context) error

Run runs the Command.

type NewClonerOption

type NewClonerOption func(*Cloner)

Jump to

Keyboard shortcuts

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