parse

package
v1.0.0-beta.25 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasGitSuffix

func HasGitSuffix(pkgURL string) bool

HasGitSuffix returns true if the provided pkgURL is a git repo containing the ".git" suffix

func URL

func URL(pkgURL string) (repo string, dir string, ref string, err error)

URL parses a pkg url (must contain ".git") and returns the repo, directory, and version

Types

type Target

type Target struct {
	kptfilev1.Git
	Destination string
}

func GitParseArgs

func GitParseArgs(ctx context.Context, args []string) (Target, error)

Jump to

Keyboard shortcuts

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