repos

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

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
	DefaultRevision string
	Hash            string
	Default         bool
}

func NewRepo

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

func (*Repo) GetIdentifier

func (r *Repo) GetIdentifier() string

func (*Repo) ResolveSubworkflowTemplateIdentifier added in v0.21.80

func (r *Repo) ResolveSubworkflowTemplateIdentifier(workflowTemplateExpr string) string

func (*Repo) ResolveTaskClassIdentifier

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

type RepoKey added in v0.11.0

type RepoKey string

type RepoManager

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

func Instance

func Instance(service configuration.Service) *RepoManager

func (*RepoManager) AddRepo

func (manager *RepoManager) AddRepo(repoPath string, defaultRevision string) (string, bool, error)

func (*RepoManager) EnsureReposPresent

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

func (*RepoManager) GetAllRepos added in v0.11.0

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

func (*RepoManager) GetDefaultRevision added in v0.12.90

func (manager *RepoManager) GetDefaultRevision() string

func (*RepoManager) GetOrderedRepolistKeys

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

func (*RepoManager) GetWorkflow

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

func (*RepoManager) GetWorkflowTemplates

func (manager *RepoManager) GetWorkflowTemplates(repoPattern string, revisionPattern string, allBranches bool, allTags bool) (TemplatesByRepo, int, error)

Returns a map of templates: repo -> revision -> []templates

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) (string, error)

func (*RepoManager) SetGlobalDefaultRevision added in v0.12.90

func (manager *RepoManager) SetGlobalDefaultRevision(revision string) error

func (*RepoManager) UpdateDefaultRepo

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

func (*RepoManager) UpdateDefaultRepoByIndex

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

func (*RepoManager) UpdateDefaultRevisionByIndex added in v0.12.90

func (manager *RepoManager) UpdateDefaultRevisionByIndex(index int, revision string) (string, error)

type RepoService added in v0.19.90

type RepoService struct {
	Svc configuration.RuntimeService
}

TODO: remove support for FILE backend in this one

func (*RepoService) GetDefaultRepo added in v0.19.90

func (s *RepoService) GetDefaultRepo() (defaultRepo string, err error)

func (*RepoService) GetDefaultRevision added in v0.19.90

func (s *RepoService) GetDefaultRevision() (defaultRevision string, err error)

func (*RepoService) GetRepoDefaultRevisions added in v0.19.90

func (s *RepoService) GetRepoDefaultRevisions() (map[string]string, error)

func (*RepoService) GetReposPath added in v0.19.90

func (s *RepoService) GetReposPath() string

func (*RepoService) NewDefaultRepo added in v0.19.90

func (s *RepoService) NewDefaultRepo(defaultRepo string) error

func (*RepoService) NewDefaultRevision added in v0.19.90

func (s *RepoService) NewDefaultRevision(defaultRevision string) error

func (*RepoService) SetRepoDefaultRevisions added in v0.19.90

func (s *RepoService) SetRepoDefaultRevisions(defaultRevisions map[string]string) error

type RevisionKey added in v0.11.0

type RevisionKey string

type Template added in v0.11.0

type Template string

type Templates added in v0.11.0

type Templates []Template

type TemplatesByRepo added in v0.11.0

type TemplatesByRepo map[RepoKey]TemplatesByRevision

type TemplatesByRevision added in v0.11.0

type TemplatesByRevision map[RevisionKey]Templates

Jump to

Keyboard shortcuts

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