github

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider implements the Provider interface for GitHub

func NewProvider

func NewProvider(ctx context.Context, token, baseURL string, orgs []string) (p Provider, err error)

NewProvider returns a new Provider with a new GitHub client instanciation and associated config

func (Provider) Compare

func (p Provider) Compare(project string, fromRef, toRef providers.Ref) (cmp *providers.Comparison, err error)

Compare calculates the diff between two git references

func (Provider) ListRefs

func (p Provider) ListRefs(project string) (refs providers.Refs, err error)

ListRefs returns all the Refs for a given project

func (Provider) ListRepositories

func (p Provider) ListRepositories() (repos providers.Repositories, err error)

ListRepositories returns the list of all projects which belong to the organizations configured

func (Provider) ListRepositoryBranches

func (p Provider) ListRepositoryBranches(owner, repo string) (refs providers.Refs, err error)

ListRepositoryBranches returns all the branches for a given repository

func (*Provider) ListRepositoryTags

func (p *Provider) ListRepositoryTags(owner, repo string) (refs providers.Refs, err error)

ListRepositoryTags returns all the tags for a given repository

func (Provider) Type

func (p Provider) Type() providers.ProviderType

Type returns the provider type

func (Provider) WebBaseURL

func (p Provider) WebBaseURL() string

WebBaseURL returns the base URL for HTML rendered pages (non-API)

Jump to

Keyboard shortcuts

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