Documentation ¶
Index ¶
- type Repo
- type RepoKey
- type RepoManager
- func (manager *RepoManager) AddRepo(repoPath string, defaultRevision string) (string, bool, error)
- func (manager *RepoManager) EnsureReposPresent(taskClassesRequired []string) (err error)
- func (manager *RepoManager) GetAllRepos() (repoList map[string]*Repo)
- func (manager *RepoManager) GetDefaultRevision() string
- func (manager *RepoManager) GetOrderedRepolistKeys() []string
- func (manager *RepoManager) GetWorkflow(workflowPath string) (resolvedWorkflowPath string, workflowRepo *Repo, err error)
- func (manager *RepoManager) GetWorkflowTemplates(repoPattern string, revisionPattern string, allBranches bool, allTags bool) (TemplatesByRepo, int, error)
- func (manager *RepoManager) RefreshRepo(repoPath string) error
- func (manager *RepoManager) RefreshRepoByIndex(index int) error
- func (manager *RepoManager) RefreshRepos() error
- func (manager *RepoManager) RemoveRepoByIndex(index int) (string, error)
- func (manager *RepoManager) SetGlobalDefaultRevision(revision string) error
- func (manager *RepoManager) UpdateDefaultRepo(repoPath string) error
- func (manager *RepoManager) UpdateDefaultRepoByIndex(index int) error
- func (manager *RepoManager) UpdateDefaultRevisionByIndex(index int, revision string) (string, error)
- type RevisionKey
- type Template
- type Templates
- type TemplatesByRepo
- type TemplatesByRevision
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 (*Repo) GetIdentifier ¶
func (*Repo) ResolveTaskClassIdentifier ¶
type RepoManager ¶
type RepoManager struct {
// contains filtered or unexported fields
}
func Instance ¶
func Instance(service *confsys.Service) *RepoManager
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 RevisionKey ¶ added in v0.11.0
type RevisionKey string
type TemplatesByRepo ¶ added in v0.11.0
type TemplatesByRepo map[RepoKey]TemplatesByRevision
type TemplatesByRevision ¶ added in v0.11.0
type TemplatesByRevision map[RevisionKey]Templates
Click to show internal directories.
Click to hide internal directories.