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: 0

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