Categorygithub.com/connormckelvey/go-github-mockable
modulepackage
0.0.6
Repository: https://github.com/connormckelvey/go-github-mockable.git
Documentation: pkg.go.dev

# README

Go Github Mockable

Go Github Mockable provides an interface-based wrapper for the Go Github client, making it possible to generate mocks (also included) for the client using GoMock.

Install

$ go get github.com/connormckelvey/go-github-mockable

Usage

package main

import (
    "github.com/google/go-github/v48/github"
    "github.com/connormckelvey/go-github-mockable"
)

func main() {
    gh := github.NewClient(nil)
    client := gogithubmockable.NewClient(gh)


    // Instead of client.Repositories, use client.Repositories()
    c.Repositories().Get(context.TODO(), "owner", "repo")
    ...
}

# Packages

No description provided by the author
Package mocks is a generated GoMock package.

# Functions

No description provided by the author

# Structs

A Client manages communication with the GitHub API.

# Interfaces

ActionsService handles communication with the actions related methods of the GitHub API.
ActivityService handles communication with the activity related methods of the GitHub API.
AdminService handles communication with the admin related methods of the GitHub API.
AppsService provides access to the installation related functions in the GitHub API.
AuthorizationsService handles communication with the authorization related methods of the GitHub API.
BillingService provides access to the billing related functions in the GitHub API.
ChecksService provides access to the Checks API in the GitHub API.
No description provided by the author
CodeScanningService handles communication with the code scanning related methods of the GitHub API.
DependabotService handles communication with the Dependabot related methods of the GitHub API.
EnterpriseService provides access to the enterprise related functions in the GitHub API.
GistsService handles communication with the Gist related methods of the GitHub API.
GitignoresService provides access to the gitignore related functions in the GitHub API.
GitService handles communication with the git data related methods of the GitHub API.
InteractionsService handles communication with the repository and organization related methods of the GitHub API.
IssueImportService handles communication with the issue import related methods of the Issue Import GitHub API.
IssuesService handles communication with the issue related methods of the GitHub API.
LicensesService handles communication with the license related methods of the GitHub API.
MarketplaceService handles communication with the marketplace related methods of the GitHub API.
No description provided by the author
OrganizationsService provides access to the organization related functions in the GitHub API.
ProjectsService provides access to the projects functions in the GitHub API.
PullRequestsService handles communication with the pull request related methods of the GitHub API.
ReactionsService provides access to the reactions-related functions in the GitHub API.
RepositoriesService handles communication with the repository related methods of the GitHub API.
SCIMService provides access to SCIM related functions in the GitHub API.
SearchService provides access to the search related functions in the GitHub API.
SecretScanningService handles communication with the secret scanning related methods of the GitHub API.
TeamsService provides access to the team-related functions in the GitHub API.
UsersService handles communication with the user related methods of the GitHub API.