providers

package
v0.0.0-...-b2b3290 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Providers map[string]func(*Options) (Provider, error) = map[string]func(*Options) (Provider, error){}

Functions

This section is empty.

Types

type File

type File interface {
	Path() string
	Size() (int, error)
	Contents() (io.Reader, error)
}

type Options

type Options struct {
	Token string
	URL   string
	Path  string
}

type Project

type Project interface {
	Files() ([]File, error)
	Name() string
	URL() string
	ID() int
	Path() string
	LastCommit() (string, error)
}

type Provider

type Provider interface {
	ListAllProjects() <-chan Project
	GetProject(int) (Project, error)
	Username() string
}

Jump to

Keyboard shortcuts

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