gh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token        string
	MaxVersions  int
	Org          string
	SyncInterval time.Duration
}

type RepoVersion

type RepoVersion struct {
	Name    string
	Org     string
	Version version.Version
	Tag     string
	URL     string
}

type Source

type Source struct {
	Conf Config
	// contains filtered or unexported fields
}

func New

func New(conf Config, universe *universe.Universe) Source

func (Source) AddRepoRelease

func (g Source) AddRepoRelease(r RepoVersion)

Process Repo Release manages adding a release to the universe cache

func (Source) EventProcessor

func (g Source) EventProcessor(events <-chan hook.Event)

eventProcessor runs the loop for watching github events and tossing them over to universe

func (Source) Name

func (g Source) Name() string

func (Source) RateHandler

func (g Source) RateHandler(w http.ResponseWriter, r *http.Request)

func (Source) RateLimit

func (g Source) RateLimit() int

rateLimit is a debug function for outputing API limits

func (Source) Sync

func (g Source) Sync() error

Sync will fetch data bout all cookbooks on the org/

func (Source) SyncInterval

func (g Source) SyncInterval() time.Duration

Jump to

Keyboard shortcuts

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