provider

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2017 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Exec()
	GetStdErr() ([]byte, error)
	GetStdOut() ([]byte, error)
	Next() Command
}

Command represents a single task to perform in with git

type GitServer

type GitServer interface {
	Authenticate() error
	GetServerString() string
	GetRepos() (map[string]Repo, error)
	GetRepo(string) (Repo, error)
	GetRepoByOwner(owner, name string) (Repo, error)
	OwnerName() string
	OwnerEmail() string
	Fork(Repo, string) (Repo, error)
	DeleteRepo(string) (bool, error)
	DeleteRepoByOwner(owner, name string) (bool, error)
	NewRepo(name, desc string) (Repo, error)
}

GitServer represents a git server (like github.com)

type KloneProvider

type KloneProvider interface {
	NewGitServer() (GitServer, error)
}

KloneProvider is the core provider for using Klone

type Repo

type Repo interface {
	GitCloneUrl() string
	GitRemoteUrl() string
	HttpsCloneUrl() string
	Language() string
	Owner() string
	Name() string
	Description() string
	ForkedFrom() Repo
	GetKlonefile() []byte
	SetImplementation(interface{})
}

Repo represents a git repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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