remotes

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: GPL-3.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 RemoteDataLookup

type RemoteDataLookup interface {
	Get(string) ([]RemoteRepoInfo, error)
}

type RemoteFacade

type RemoteFacade struct {
	DB      *gorm.DB
	Model   *store.RemoteRepoHostModel
	Lookups map[config.DirectoryType]RemoteDataLookup
}

func (RemoteFacade) Get

func (*RemoteFacade) GetElements

func (r *RemoteFacade) GetElements(t config.DirectoryType, ids []string) ([]RemoteRepoElement, error)

type RemoteRepoElement

type RemoteRepoElement struct {
	Remote RemoteRepoInfo
	Model  *store.RemoteRepoModel
}

type RemoteRepoInfo

type RemoteRepoInfo interface {
	ID() string
	Name() string
	IsArchived() bool
	BrowserURL() string
	GetCloneURI(config.GitAccessProtocol) string
	Path() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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