github

package
v0.4.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repositories

type Repositories interface {
	AddAdminEnforcement(context.Context, string, string, string) (*github.AdminEnforcement, *github.Response, error)
	AddAppRestrictions(context.Context, string, string, string, []string) ([]*github.App, *github.Response, error)
	AddCollaborator(context.Context, string, string, string, *github.RepositoryAddCollaboratorOptions) (*github.CollaboratorInvitation, *github.Response, error)
	CompareCommits(context.Context, string, string, string, string, *github.ListOptions) (*github.CommitsComparison, *github.Response, error)
	CompareCommitsRaw(context.Context, string, string, string, string, github.RawOptions) (string, *github.Response, error)
	Create(context.Context, string, *github.Repository) (*github.Repository, *github.Response, error)
	CreateComment(context.Context, string, string, string, *github.RepositoryComment) (*github.RepositoryComment, *github.Response, error)
	CreateDeployment(context.Context, string, string, *github.DeploymentRequest) (*github.Deployment, *github.Response, error)
	CreateDeploymentStatus(context.Context, string, string, int64, *github.DeploymentStatusRequest) (*github.DeploymentStatus, *github.Response, error)
	CreateFile(context.Context, string, string, string, *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error)
	CreateFork(context.Context, string, string, *github.RepositoryCreateForkOptions) (*github.Repository, *github.Response, error)
	CreateFromTemplate(context.Context, string, string, *github.TemplateRepoRequest) (*github.Repository, *github.Response, error)
	CreateHook(context.Context, string, string, *github.Hook) (*github.Hook, *github.Response, error)
	CreateKey(context.Context, string, string, *github.Key) (*github.Key, *github.Response, error)
	CreateProject(context.Context, string, string, *github.ProjectOptions) (*github.Project, *github.Response, error)
	CreateRelease(context.Context, string, string, *github.RepositoryRelease) (*github.RepositoryRelease, *github.Response, error)
	CreateStatus(context.Context, string, string, string, *github.RepoStatus) (*github.RepoStatus, *github.Response, error)
	CreateUpdateEnvironment(context.Context, string, string, string, *github.CreateUpdateEnvironment) (*github.Environment, *github.Response, error)
	Delete(context.Context, string, string) (*github.Response, error)
	DeleteComment(context.Context, string, string, int64) (*github.Response, error)
	DeleteDeployment(context.Context, string, string, int64) (*github.Response, error)
	DeleteEnvironment(context.Context, string, string, string) (*github.Response, error)
	DeleteFile(context.Context, string, string, string, *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error)
	DeleteHook(context.Context, string, string, int64) (*github.Response, error)
	DeleteInvitation(context.Context, string, string, int64) (*github.Response, error)
	DeleteKey(context.Context, string, string, int64) (*github.Response, error)
	DeletePreReceiveHook(context.Context, string, string, int64) (*github.Response, error)
	DeleteRelease(context.Context, string, string, int64) (*github.Response, error)
	DeleteReleaseAsset(context.Context, string, string, int64) (*github.Response, error)
	DisableAutomatedSecurityFixes(context.Context, string, string) (*github.Response, error)
	DisableDismissalRestrictions(context.Context, string, string, string) (*github.PullRequestReviewsEnforcement, *github.Response, error)
	DisablePages(context.Context, string, string) (*github.Response, error)
	DisableVulnerabilityAlerts(context.Context, string, string) (*github.Response, error)
	Dispatch(context.Context, string, string, github.DispatchRequestOptions) (*github.Repository, *github.Response, error)
	DownloadContents(context.Context, string, string, string, *github.RepositoryContentGetOptions) (io.ReadCloser, *github.Response, error)
	DownloadContentsWithMeta(context.Context, string, string, string, *github.RepositoryContentGetOptions) (io.ReadCloser, *github.RepositoryContent, *github.Response, error)
	DownloadReleaseAsset(context.Context, string, string, int64, *http.Client) (io.ReadCloser, string, error)
	Edit(context.Context, string, string, *github.Repository) (*github.Repository, *github.Response, error)
	EditHook(context.Context, string, string, int64, *github.Hook) (*github.Hook, *github.Response, error)
	EditRelease(context.Context, string, string, int64, *github.RepositoryRelease) (*github.RepositoryRelease, *github.Response, error)
	EditReleaseAsset(context.Context, string, string, int64, *github.ReleaseAsset) (*github.ReleaseAsset, *github.Response, error)
	EnableAutomatedSecurityFixes(context.Context, string, string) (*github.Response, error)
	EnablePages(context.Context, string, string, *github.Pages) (*github.Pages, *github.Response, error)
	EnableVulnerabilityAlerts(context.Context, string, string) (*github.Response, error)
	Get(context.Context, string, string) (*github.Repository, *github.Response, error)
	GetAdminEnforcement(context.Context, string, string, string) (*github.AdminEnforcement, *github.Response, error)
	GetArchiveLink(context.Context, string, string, github.ArchiveFormat, *github.RepositoryContentGetOptions, bool) (*url.URL, *github.Response, error)
	GetBranch(context.Context, string, string, string, bool) (*github.Branch, *github.Response, error)
	GetBranchProtection(context.Context, string, string, string) (*github.Protection, *github.Response, error)
	GetByID(context.Context, int64) (*github.Repository, *github.Response, error)
	GetCodeOfConduct(context.Context, string, string) (*github.CodeOfConduct, *github.Response, error)
	GetCombinedStatus(context.Context, string, string, string, *github.ListOptions) (*github.CombinedStatus, *github.Response, error)
	GetComment(context.Context, string, string, int64) (*github.RepositoryComment, *github.Response, error)
	GetCommit(context.Context, string, string, string, *github.ListOptions) (*github.RepositoryCommit, *github.Response, error)
	GetCommitRaw(context.Context, string, string, string, github.RawOptions) (string, *github.Response, error)
	GetCommitSHA1(context.Context, string, string, string, string) (string, *github.Response, error)
	GetCommunityHealthMetrics(context.Context, string, string) (*github.CommunityHealthMetrics, *github.Response, error)
	GetContents(context.Context, string, string, string, *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
	GetDeployment(context.Context, string, string, int64) (*github.Deployment, *github.Response, error)
	GetDeploymentStatus(context.Context, string, string, int64, int64) (*github.DeploymentStatus, *github.Response, error)
	GetEnvironment(context.Context, string, string, string) (*github.Environment, *github.Response, error)
	GetHook(context.Context, string, string, int64) (*github.Hook, *github.Response, error)
	GetKey(context.Context, string, string, int64) (*github.Key, *github.Response, error)
	GetLatestPagesBuild(context.Context, string, string) (*github.PagesBuild, *github.Response, error)
	GetLatestRelease(context.Context, string, string) (*github.RepositoryRelease, *github.Response, error)
	GetPageBuild(context.Context, string, string, int64) (*github.PagesBuild, *github.Response, error)
	GetPagesInfo(context.Context, string, string) (*github.Pages, *github.Response, error)
	GetPermissionLevel(context.Context, string, string, string) (*github.RepositoryPermissionLevel, *github.Response, error)
	GetPreReceiveHook(context.Context, string, string, int64) (*github.PreReceiveHook, *github.Response, error)
	GetPullRequestReviewEnforcement(context.Context, string, string, string) (*github.PullRequestReviewsEnforcement, *github.Response, error)
	GetReadme(context.Context, string, string, *github.RepositoryContentGetOptions) (*github.RepositoryContent, *github.Response, error)
	GetRelease(context.Context, string, string, int64) (*github.RepositoryRelease, *github.Response, error)
	GetReleaseAsset(context.Context, string, string, int64) (*github.ReleaseAsset, *github.Response, error)
	GetReleaseByTag(context.Context, string, string, string) (*github.RepositoryRelease, *github.Response, error)
	GetRequiredStatusChecks(context.Context, string, string, string) (*github.RequiredStatusChecks, *github.Response, error)
	GetSignaturesProtectedBranch(context.Context, string, string, string) (*github.SignaturesProtectedBranch, *github.Response, error)
	GetVulnerabilityAlerts(context.Context, string, string) (bool, *github.Response, error)
	IsCollaborator(context.Context, string, string, string) (bool, *github.Response, error)
	License(context.Context, string, string) (*github.RepositoryLicense, *github.Response, error)
	List(context.Context, string, *github.RepositoryListOptions) ([]*github.Repository, *github.Response, error)
	ListAll(context.Context, *github.RepositoryListAllOptions) ([]*github.Repository, *github.Response, error)
	ListAllTopics(context.Context, string, string) ([]string, *github.Response, error)
	ListApps(context.Context, string, string, string) ([]*github.App, *github.Response, error)
	ListBranches(context.Context, string, string, *github.BranchListOptions) ([]*github.Branch, *github.Response, error)
	ListBranchesHeadCommit(context.Context, string, string, string) ([]*github.BranchCommit, *github.Response, error)
	ListByOrg(context.Context, string, *github.RepositoryListByOrgOptions) ([]*github.Repository, *github.Response, error)
	ListCodeFrequency(context.Context, string, string) ([]*github.WeeklyStats, *github.Response, error)
	ListCollaborators(context.Context, string, string, *github.ListCollaboratorsOptions) ([]*github.User, *github.Response, error)
	ListComments(context.Context, string, string, *github.ListOptions) ([]*github.RepositoryComment, *github.Response, error)
	ListCommitActivity(context.Context, string, string) ([]*github.WeeklyCommitActivity, *github.Response, error)
	ListCommitComments(context.Context, string, string, string, *github.ListOptions) ([]*github.RepositoryComment, *github.Response, error)
	ListCommits(context.Context, string, string, *github.CommitsListOptions) ([]*github.RepositoryCommit, *github.Response, error)
	ListContributors(context.Context, string, string, *github.ListContributorsOptions) ([]*github.Contributor, *github.Response, error)
	ListContributorsStats(context.Context, string, string) ([]*github.ContributorStats, *github.Response, error)
	ListDeploymentStatuses(context.Context, string, string, int64, *github.ListOptions) ([]*github.DeploymentStatus, *github.Response, error)
	ListDeployments(context.Context, string, string, *github.DeploymentsListOptions) ([]*github.Deployment, *github.Response, error)
	ListEnvironments(context.Context, string, string, *github.EnvironmentListOptions) (*github.EnvResponse, *github.Response, error)
	ListForks(context.Context, string, string, *github.RepositoryListForksOptions) ([]*github.Repository, *github.Response, error)
	ListHooks(context.Context, string, string, *github.ListOptions) ([]*github.Hook, *github.Response, error)
	ListInvitations(context.Context, string, string, *github.ListOptions) ([]*github.RepositoryInvitation, *github.Response, error)
	ListKeys(context.Context, string, string, *github.ListOptions) ([]*github.Key, *github.Response, error)
	ListLanguages(context.Context, string, string) (map[string]int, *github.Response, error)
	ListPagesBuilds(context.Context, string, string, *github.ListOptions) ([]*github.PagesBuild, *github.Response, error)
	ListParticipation(context.Context, string, string) (*github.RepositoryParticipation, *github.Response, error)
	ListPreReceiveHooks(context.Context, string, string, *github.ListOptions) ([]*github.PreReceiveHook, *github.Response, error)
	ListProjects(context.Context, string, string, *github.ProjectListOptions) ([]*github.Project, *github.Response, error)
	ListPunchCard(context.Context, string, string) ([]*github.PunchCard, *github.Response, error)
	ListReleaseAssets(context.Context, string, string, int64, *github.ListOptions) ([]*github.ReleaseAsset, *github.Response, error)
	ListReleases(context.Context, string, string, *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
	ListRequiredStatusChecksContexts(context.Context, string, string, string) ([]string, *github.Response, error)
	ListStatuses(context.Context, string, string, string, *github.ListOptions) ([]*github.RepoStatus, *github.Response, error)
	ListTags(context.Context, string, string, *github.ListOptions) ([]*github.RepositoryTag, *github.Response, error)
	ListTeams(context.Context, string, string, *github.ListOptions) ([]*github.Team, *github.Response, error)
	ListTrafficClones(context.Context, string, string, *github.TrafficBreakdownOptions) (*github.TrafficClones, *github.Response, error)
	ListTrafficPaths(context.Context, string, string) ([]*github.TrafficPath, *github.Response, error)
	ListTrafficReferrers(context.Context, string, string) ([]*github.TrafficReferrer, *github.Response, error)
	ListTrafficViews(context.Context, string, string, *github.TrafficBreakdownOptions) (*github.TrafficViews, *github.Response, error)
	Merge(context.Context, string, string, *github.RepositoryMergeRequest) (*github.RepositoryCommit, *github.Response, error)
	OptionalSignaturesOnProtectedBranch(context.Context, string, string, string) (*github.Response, error)
	PingHook(context.Context, string, string, int64) (*github.Response, error)
	RemoveAdminEnforcement(context.Context, string, string, string) (*github.Response, error)
	RemoveAppRestrictions(context.Context, string, string, string, []string) ([]*github.App, *github.Response, error)
	RemoveBranchProtection(context.Context, string, string, string) (*github.Response, error)
	RemoveCollaborator(context.Context, string, string, string) (*github.Response, error)
	RemovePullRequestReviewEnforcement(context.Context, string, string, string) (*github.Response, error)
	RemoveRequiredStatusChecks(context.Context, string, string, string) (*github.Response, error)
	ReplaceAllTopics(context.Context, string, string, []string) ([]string, *github.Response, error)
	ReplaceAppRestrictions(context.Context, string, string, string, []string) ([]*github.App, *github.Response, error)
	RequestPageBuild(context.Context, string, string) (*github.PagesBuild, *github.Response, error)
	RequireSignaturesOnProtectedBranch(context.Context, string, string, string) (*github.SignaturesProtectedBranch, *github.Response, error)
	TestHook(context.Context, string, string, int64) (*github.Response, error)
	Transfer(context.Context, string, string, github.TransferRequest) (*github.Repository, *github.Response, error)
	UpdateBranchProtection(context.Context, string, string, string, *github.ProtectionRequest) (*github.Protection, *github.Response, error)
	UpdateComment(context.Context, string, string, int64, *github.RepositoryComment) (*github.RepositoryComment, *github.Response, error)
	UpdateFile(context.Context, string, string, string, *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error)
	UpdateInvitation(context.Context, string, string, int64, string) (*github.RepositoryInvitation, *github.Response, error)
	UpdatePages(context.Context, string, string, *github.PagesUpdate) (*github.Response, error)
	UpdatePreReceiveHook(context.Context, string, string, int64, *github.PreReceiveHook) (*github.PreReceiveHook, *github.Response, error)
	UpdatePullRequestReviewEnforcement(context.Context, string, string, string, *github.PullRequestReviewsEnforcementUpdate) (*github.PullRequestReviewsEnforcement, *github.Response, error)
	UpdateRequiredStatusChecks(context.Context, string, string, string, *github.RequiredStatusChecksRequest) (*github.RequiredStatusChecks, *github.Response, error)
	UploadReleaseAsset(context.Context, string, string, int64, *github.UploadOptions, *os.File) (*github.ReleaseAsset, *github.Response, error)
}

Repositories is an interface generated for "github.com/google/go-github/v43/github.RepositoriesService".

type Users

type Users interface {
	AcceptInvitation(context.Context, int64) (*github.Response, error)
	AddEmails(context.Context, []string) ([]*github.UserEmail, *github.Response, error)
	BlockUser(context.Context, string) (*github.Response, error)
	CreateGPGKey(context.Context, string) (*github.GPGKey, *github.Response, error)
	CreateKey(context.Context, *github.Key) (*github.Key, *github.Response, error)
	CreateProject(context.Context, *github.CreateUserProjectOptions) (*github.Project, *github.Response, error)
	DeclineInvitation(context.Context, int64) (*github.Response, error)
	DeleteEmails(context.Context, []string) (*github.Response, error)
	DeleteGPGKey(context.Context, int64) (*github.Response, error)
	DeleteKey(context.Context, int64) (*github.Response, error)
	DemoteSiteAdmin(context.Context, string) (*github.Response, error)
	Edit(context.Context, *github.User) (*github.User, *github.Response, error)
	Follow(context.Context, string) (*github.Response, error)
	Get(context.Context, string) (*github.User, *github.Response, error)
	GetByID(context.Context, int64) (*github.User, *github.Response, error)
	GetGPGKey(context.Context, int64) (*github.GPGKey, *github.Response, error)
	GetHovercard(context.Context, string, *github.HovercardOptions) (*github.Hovercard, *github.Response, error)
	GetKey(context.Context, int64) (*github.Key, *github.Response, error)
	IsBlocked(context.Context, string) (bool, *github.Response, error)
	IsFollowing(context.Context, string, string) (bool, *github.Response, error)
	ListAll(context.Context, *github.UserListOptions) ([]*github.User, *github.Response, error)
	ListBlockedUsers(context.Context, *github.ListOptions) ([]*github.User, *github.Response, error)
	ListEmails(context.Context, *github.ListOptions) ([]*github.UserEmail, *github.Response, error)
	ListFollowers(context.Context, string, *github.ListOptions) ([]*github.User, *github.Response, error)
	ListFollowing(context.Context, string, *github.ListOptions) ([]*github.User, *github.Response, error)
	ListGPGKeys(context.Context, string, *github.ListOptions) ([]*github.GPGKey, *github.Response, error)
	ListInvitations(context.Context, *github.ListOptions) ([]*github.RepositoryInvitation, *github.Response, error)
	ListKeys(context.Context, string, *github.ListOptions) ([]*github.Key, *github.Response, error)
	ListProjects(context.Context, string, *github.ProjectListOptions) ([]*github.Project, *github.Response, error)
	PromoteSiteAdmin(context.Context, string) (*github.Response, error)
	Suspend(context.Context, string, *github.UserSuspendOptions) (*github.Response, error)
	UnblockUser(context.Context, string) (*github.Response, error)
	Unfollow(context.Context, string) (*github.Response, error)
	Unsuspend(context.Context, string) (*github.Response, error)
}

Users is an interface generated for "github.com/google/go-github/v43/github.UsersService".

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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