repotool

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneToTempDir

func CloneToTempDir(uri string, ref string) (string, func(), error)

func CloneToTempWithDepth added in v0.29.0

func CloneToTempWithDepth(uri string, depth int) (string, func(), error)

func GitUrlToLocalPath

func GitUrlToLocalPath(url string) (string, func(), error)

func IsSupportedGitUrl

func IsSupportedGitUrl(url string) bool

Types

type GitHubTag added in v0.29.0

type GitHubTag struct {
	Name   string `json:"name"`
	Commit struct {
		SHA string `json:"sha"`
	} `json:"commit"`
}

type GitUrl

type GitUrl struct {
	BaseUrl string
	Ref     string
	RootDir string
}

func ParseGitUrl added in v0.29.0

func ParseGitUrl(url string) (GitUrl, error)

type RepoInfo added in v0.29.0

type RepoInfo struct {
	Owner string `json:"owner"`
	Repo  string `json:"repo"`
	Ref   string `json:"branch,omitempty"`
	Tag   string `json:"tag,omitempty"`
	URL   string `json:"url"`
}

func ParseRepoFromGitURL added in v0.29.0

func ParseRepoFromGitURL(githubURL string) (*RepoInfo, error)

type VersionInfo added in v0.29.0

type VersionInfo struct {
	Version   string    `json:"version"`
	CommitSHA string    `json:"commitSha"`
	Source    string    `json:"source"`
	CreatedAt time.Time `json:"createdAt"`
	URL       string    `json:"url"`
}

func FindReleaseByVersion added in v0.29.0

func FindReleaseByVersion(
	repo *RepoInfo,
	version string,
) (*VersionInfo, error)

Jump to

Keyboard shortcuts

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