ghapi

package
v0.0.0-...-07cc8c6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ghapi provides a wrapper for easier access to specific parts the GitHub API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

type GitHub struct {
	// contains filtered or unexported fields
}

GitHub is an abstraction for the real GitHub API client

func NewGitHub

func NewGitHub(token string) (*GitHub, error)

NewGitHub creates and returns a reference to a new GitHub object

func (*GitHub) GetReleases

func (githubClient *GitHub) GetReleases(owner string, repository string) ([]*github.RepositoryRelease, error)

GetReleases returns all release information for the supplied repository

func (*GitHub) RemoveRelease

func (githubClient *GitHub) RemoveRelease(owner string, repo string, release *github.RepositoryRelease) error

RemoveRelease will attempt to delete a release from GitHub

Jump to

Keyboard shortcuts

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