Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultNCTRepo is the default NVIDIA Container Toolkit repository. DefaultNCTRepo = "https://github.com/NVIDIA/nvidia-container-toolkit.git" // DefaultK8sRepo is the default Kubernetes repository. DefaultK8sRepo = "https://github.com/kubernetes/kubernetes.git" )
Variables ¶
This section is empty.
Functions ¶
func NormalizeRef ¶
NormalizeRef strips refs/ prefix for API calls.
func ParseRepoURL ¶
ParseRepoURL extracts owner and repo name from a GitHub URL. Handles:
- https://github.com/NVIDIA/nvidia-container-toolkit.git
- git@github.com:NVIDIA/nvidia-container-toolkit.git
- github.com/NVIDIA/nvidia-container-toolkit
Types ¶
type GitHubResolver ¶
type GitHubResolver struct {
// contains filtered or unexported fields
}
GitHubResolver resolves refs using GitHub API.
func NewGitHubResolver ¶
func NewGitHubResolver() *GitHubResolver
NewGitHubResolver creates a new GitHubResolver with a default 30s timeout.
func NewGitHubResolverWithClient ¶
func NewGitHubResolverWithClient(client *http.Client) *GitHubResolver
NewGitHubResolverWithClient creates a GitHubResolver with a custom HTTP client.
Click to show internal directories.
Click to hide internal directories.