repos

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: GPL-3.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	HostingSite string
	User        string
	RepoName    string
	Revision    string
	Default     bool
}

func NewRepo

func NewRepo(repoPath string) (*Repo, error)

func (*Repo) GetIdentifier

func (r *Repo) GetIdentifier() string

func (*Repo) ResolveTaskClassIdentifier

func (r *Repo) ResolveTaskClassIdentifier(loadTaskClass string) (taskClassIdentifier string)

type RepoManager

type RepoManager struct {
	// contains filtered or unexported fields
}

func Instance

func Instance(service *confsys.Service) *RepoManager

func (*RepoManager) AddRepo

func (manager *RepoManager) AddRepo(repoPath string) error

func (*RepoManager) EnsureReposPresent

func (manager *RepoManager) EnsureReposPresent(taskClassesRequired []string) (err error)

func (*RepoManager) GetOrderedRepolistKeys

func (manager *RepoManager) GetOrderedRepolistKeys() []string

func (*RepoManager) GetRepos

func (manager *RepoManager) GetRepos() (repoList map[string]*Repo)

func (*RepoManager) GetWorkflow

func (manager *RepoManager) GetWorkflow(workflowPath string) (resolvedWorkflowPath string, workflowRepo *Repo, err error)

func (*RepoManager) GetWorkflowTemplates

func (manager *RepoManager) GetWorkflowTemplates() (map[string][]string, int, error)

func (*RepoManager) RefreshRepo

func (manager *RepoManager) RefreshRepo(repoPath string) error

func (*RepoManager) RefreshRepoByIndex

func (manager *RepoManager) RefreshRepoByIndex(index int) error

func (*RepoManager) RefreshRepos

func (manager *RepoManager) RefreshRepos() error

func (*RepoManager) RemoveRepoByIndex

func (manager *RepoManager) RemoveRepoByIndex(index int) (ok bool, newDefaultRepo string)

func (*RepoManager) UpdateDefaultRepo

func (manager *RepoManager) UpdateDefaultRepo(repoPath string) error

func (*RepoManager) UpdateDefaultRepoByIndex

func (manager *RepoManager) UpdateDefaultRepoByIndex(index int) error

Jump to

Keyboard shortcuts

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