remote

package
v0.0.0-...-f74d7f1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
}

Manager is the type for remote manager.

func NewManager

func NewManager() *Manager

NewManager creates a new Manager.

func (*Manager) FindRemote

func (remote *Manager) FindRemote(codereposity string) (Remote, error)

FindRemote returns the remote by codereposity.

type Remote

type Remote interface {
	GetTokenQuestURL(string) (string, error)
	Authcallback(code, state string) (string, error)
	GetRepos(string) ([]api.Repo, string, string, error)
	LogOut(userID string) error
	CreateHook(service *api.Service) error
	DeleteHook(service *api.Service) error
	PostCommitStatus(service *api.Service, version *api.Version) error
}

Remote is the interface of all operations needed for remote repository.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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