Help us shape the future of Go! Take the 2026 Go Developer Survey

remote

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 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