repository

package
v0.0.0-...-dcc6434 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubRepository

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

GitHubRepository is a wrapper around various services to abstract the list and save to repository from the caller

func NewRepository

func NewRepository() *GitHubRepository

NewRepository returns the service wrapper

func (*GitHubRepository) GetLicenses

func (ghr *GitHubRepository) GetLicenses(owner, repo string) (license.LicenseCheckResults, error)

GetLicenses returns the graphql license result or an error

func (*GitHubRepository) GetRepos

func (ghr *GitHubRepository) GetRepos(org string) (gitrepos.Repos, error)

GetRepos return the Repos struct the dependant GetRepos in github has an issue with getting the foll data

func (*GitHubRepository) SaveLicenses

func (ghr *GitHubRepository) SaveLicenses(res license.LicenseCheckResults) error

SaveLicenses abstracts licenses

Jump to

Keyboard shortcuts

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