Documentation ¶
Index ¶
- type AuxNode
- type IRepo
- type Repo
- func (r *Repo) GetCloneDir() string
- func (r *Repo) GetDefaultRevision() string
- func (r *Repo) GetHash() string
- func (r *Repo) GetIdentifier() string
- func (r *Repo) GetProtocol() string
- func (r *Repo) GetRevisions() []string
- func (r *Repo) GetTaskTemplatePath(taskClassFile string) string
- func (r *Repo) IsDefault() bool
- func (r *Repo) ResolveSubworkflowTemplateIdentifier(workflowTemplateExpr string) string
- func (r *Repo) ResolveTaskClassIdentifier(loadTaskClass string) (taskClassIdentifier string)
- 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]iRepo)
- func (manager *RepoManager) GetDefaultRevision() string
- func (manager *RepoManager) GetOrderedRepolistKeys() []string
- func (manager *RepoManager) GetReposPath() string
- func (manager *RepoManager) GetWorkflow(workflowPath string) (resolvedWorkflowPath string, workflowRepo IRepo, 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 RepoService
- func (s *RepoService) GetDefaultRepo() (defaultRepo string, err error)
- func (s *RepoService) GetDefaultRevision() (defaultRevision string, err error)
- func (s *RepoService) GetRepoDefaultRevisions() (map[string]string, error)
- func (s *RepoService) GetReposPath() string
- func (s *RepoService) NewDefaultRepo(defaultRepo string) error
- func (s *RepoService) NewDefaultRevision(defaultRevision string) error
- func (s *RepoService) SetRepoDefaultRevisions(defaultRevisions map[string]string) error
- type RevisionKey
- type Template
- type Templates
- type TemplatesByRepo
- type TemplatesByRevision
- type VarSpec
- type VarSpecMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuxNode ¶ added in v0.22.80
type AuxNode struct {
// contains filtered or unexported fields
}
AuxNode Use an auxiliary node struct that also carries its parent Name
type IRepo ¶ added in v0.26.3
type IRepo interface { GetIdentifier() string GetCloneDir() string ResolveTaskClassIdentifier(string) string ResolveSubworkflowTemplateIdentifier(string) string GetProtocol() string GetHash() string GetRevisions() []string GetDefaultRevision() string IsDefault() bool GetTaskTemplatePath(string) string }
type Repo ¶
type Repo struct { HostingSite string Path string RepoName string Revision string DefaultRevision string Hash string Default bool Revisions []string ReposPath string }
func (*Repo) GetCloneDir ¶ added in v0.26.3
func (*Repo) GetDefaultRevision ¶ added in v0.26.3
func (*Repo) GetIdentifier ¶
func (*Repo) GetProtocol ¶ added in v0.26.3
func (*Repo) GetRevisions ¶ added in v0.26.3
func (*Repo) GetTaskTemplatePath ¶ added in v0.26.3
func (*Repo) ResolveSubworkflowTemplateIdentifier ¶ added in v0.21.80
func (*Repo) ResolveTaskClassIdentifier ¶
type RepoManager ¶
type RepoManager struct {
// contains filtered or unexported fields
}
func Instance ¶
func Instance(service configuration.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]iRepo)
func (*RepoManager) GetDefaultRevision ¶ added in v0.12.90
func (manager *RepoManager) GetDefaultRevision() string
func (*RepoManager) GetOrderedRepolistKeys ¶
func (manager *RepoManager) GetOrderedRepolistKeys() []string
func (*RepoManager) GetReposPath ¶ added in v0.29.2
func (manager *RepoManager) GetReposPath() string
func (*RepoManager) GetWorkflow ¶
func (manager *RepoManager) GetWorkflow(workflowPath string) (resolvedWorkflowPath string, workflowRepo IRepo, err error)
func (*RepoManager) GetWorkflowTemplates ¶
func (manager *RepoManager) GetWorkflowTemplates(repoPattern string, revisionPattern string, allBranches bool, allTags bool, allWorkflows bool) (TemplatesByRepo, int, error)
GetWorkflowTemplates 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 struct { Name string Description string Public bool VarInfo VarSpecMap }
type TemplatesByRepo ¶ added in v0.11.0
type TemplatesByRepo map[RepoKey]TemplatesByRevision
type TemplatesByRevision ¶ added in v0.11.0
type TemplatesByRevision map[RevisionKey]Templates
type VarSpec ¶ added in v0.22.80
type VarSpec struct { Source varsource.Source `yaml:"-"` DefaultValue string `yaml:"value"` VarType string `yaml:"type"` Label string `yaml:"label"` Description string `yaml:"description"` Widget string `yaml:"widget"` Panel string `yaml:"panel" ` AllowedValues []string `yaml:"values"` Index int32 `yaml:"index"` VisibleIf string `yaml:"visibleif"` EnabledIf string `yaml:"enabledif"` }
VarSpec is the type of struct into which public variable information from workflows may be parsed
type VarSpecMap ¶ added in v0.22.80
VarSpecMap holds a map of variable names to their variable information struct
func ParseWorkflowPublicVariableInfo ¶ added in v0.22.80
func ParseWorkflowPublicVariableInfo(fileName string) (bool, string, VarSpecMap, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.