github

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	BaseURL             string
	UploadURL           string
	UserName            string
	PersonalAccessToken string
	Organizations       *cli.StringSlice
}

Configuration encapsulates information needed for communicating with a GitHub API instance (Enterprise / Non-enterprise)

func DefaultConfigWithFlags

func DefaultConfigWithFlags() (*Configuration, []cli.Flag)

DefaultConfigWithFlags returns configuration and flags specific to GitHub

func (*Configuration) Validate

func (c *Configuration) Validate() error

Validate ensures the configuration provided contains the required information.

type Integration

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

Integration encapsulates the logic for integrating data from GitHub.

func NewIntegration

func NewIntegration(ctx context.Context, config *Configuration) (*Integration, error)

NewIntegration returns the Integration responsible for communicating with GitHub. Before construction, the Configuration is validated to ensure it contains the proper information.

func (*Integration) Run

func (i *Integration) Run(ctx context.Context, data chan *model.Repository) error

Run feeds the data channel with results it discovers from GitHub

Jump to

Keyboard shortcuts

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