scm

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: Apache-2.0 Imports: 4 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 {
	DataStore *store.DataStore
}

Manager represents the manager for scm.

func (*Manager) FindScm

func (scm *Manager) FindScm(scmType string) (SCM, error)

FindScm returns the scm by scm type.

type SCM

type SCM interface {
	Authcallback(code, state string) (string, error)
	GetRepos(string) ([]api.Repository, string, string, error)
	LogOut(projectID string) error
	GetAuthCodeURL(projectID string) (string, error)
}

SCM is the interface of all operations needed for scm repository.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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