gh

package
v0.0.0-...-5cc8c04 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, config map[string]string) (*github.Client, context.Context, error)

NewClient returns a new initialized GH client, context and error

Types

type GH

type GH struct {
	APIKey     string
	OrgMatch   string
	TopicMatch string
	// contains filtered or unexported fields
}

GH is GitHub

func (*GH) Repos

func (gh *GH) Repos() ([]*github.Repository, error)

Repos implements Githubber Github repositories that we'd like to create GoCD config repos for

type Githubber

type Githubber interface {
	Repos() ([]*github.Repository, error)
}

Githubber provides funcs to retrieve Github repositories

func New

func New(ctx context.Context, config map[string]string, logger log.Logger, client *github.Client) (Githubber, error)

New returns a configured GH struct, it uses NewClient if no *github.Client was passed

Jump to

Keyboard shortcuts

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