github

package
v0.0.0-...-2f0fe34 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 14 Imported by: 3 modules, 2 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

Overview

Package github implements the methods to access resources from github

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubInfo

type GitHubInfo struct {
	Owner      string `json:"owner"`
	Repository string `json:"repository"`
	Path       string `json:"path"`
	GetOptions string `json:"getOptions"`
	TokenInfo  string `json:"tokenInfo"`
}

GitHubInfo represents the sourceInfo type sent by runcommand

type GitHubResource

type GitHubResource struct {
	Info GitHubInfo
	// contains filtered or unexported fields
}

GitHubResource is a struct for the remote resource of type git

func NewGitHubResource

func NewGitHubResource(context context.T, info string, token privategithub.PrivateGithubAccess) (git *GitHubResource, err error)

NewGitHubResource is a constructor of type GitHubResource

func (*GitHubResource) DownloadRemoteResource

func (git *GitHubResource) DownloadRemoteResource(filesys filemanager.FileSystem, destPath string) (err error, result *remoteresource.DownloadResult)

DownloadRemoteResource calls download to pull down files or directory from github

func (*GitHubResource) ValidateLocationInfo

func (git *GitHubResource) ValidateLocationInfo() (valid bool, err error)

ValidateLocationInfo ensures that the required parameters of SourceInfo are specified

Directories

Path Synopsis
Package privategithub deals with all the authorization invocations to access private github
Package privategithub deals with all the authorization invocations to access private github
githubclient
Package githubclient contains methods for interacting with git
Package githubclient contains methods for interacting with git
githubclient/mock
Package mock_githubclient contains methods to mock githubclient package
Package mock_githubclient contains methods to mock githubclient package

Jump to

Keyboard shortcuts

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