{"modulePath":"github.com/AliceO2Group/Control","version":"v1.51.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package repos\n\nPackage repos provides repository management functionality for accessing and synchronizing Git repositories containing workflow templates and configurations.\n\n## Types\n\n```go\ntype AuxNode struct {\n\t// contains filtered or unexported fields\n}\n```\nAuxNode Use an auxiliary node struct that also carries its parent Name\n\n```go\ntype IRepo interface {\n\tGetIdentifier() string\n\tGetCloneDir() string\n\tResolveTaskClassIdentifier(string) string\n\tResolveSubworkflowTemplateIdentifier(string) string\n\tGetProtocol() string\n\tGetHash() string\n\tGetRevisions() []string\n\tGetDefaultRevision() string\n\tIsDefault() bool\n\tGetTaskTemplatePath(string) string\n\tGetDplCommand(string) (string, error)\n}\n```\n\n```go\ntype Repo struct {\n\tHostingSite     string\n\tPath            string\n\tRepoName        string\n\tRevision        string\n\tDefaultRevision string\n\tHash            string\n\tDefault         bool\n\tRevisions       []string\n\tReposPath       string\n\tProtocol        string\n}\n```\n\n```go\nfunc NewRepo(repoPath string, defaultRevision string, reposPath string) (string, Repo, error)\n```\n\n```go\nfunc (r *Repo) GetCloneDir() string\n```\n\n```go\nfunc (r *Repo) GetDefaultRevision() string\n```\n\n```go\nfunc (r *Repo) GetDplCommand(dplCommandUri string) (string, error)\n```\n\n```go\nfunc (r *Repo) GetHash() string\n```\n\n```go\nfunc (r *Repo) GetIdentifier() string\n```\n\n```go\nfunc (r *Repo) GetProtocol() string\n```\n\n```go\nfunc (r *Repo) GetRevisions() []string\n```\n\n```go\nfunc (r *Repo) GetTaskTemplatePath(taskClassFile string) string\n```\n\n```go\nfunc (r *Repo) IsDefault() bool\n```\n\n```go\nfunc (r *Repo) ResolveSubworkflowTemplateIdentifier(workflowTemplateExpr string) string\n```\n\n```go\nfunc (r *Repo) ResolveTaskClassIdentifier(loadTaskClass string) (taskClassIdentifier string)\n```\n\n```go\ntype RepoKey string\n```\n\n```go\ntype RepoManager struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc Instance(service configuration.Service) *RepoManager\n```\n\n```go\nfunc (manager *RepoManager) AddRepo(repoPath string, defaultRevision string) (string, bool, error)\n```\n\n```go\nfunc (manager *RepoManager) EnsureReposPresent(taskClassesRequired []string) (err error)\n```\n\n```go\nfunc (manager *RepoManager) GetAllRepos() (repoList map[string]iRepo)\n```\n\n```go\nfunc (manager *RepoManager) GetDefaultRevision() string\n```\n\n```go\nfunc (manager *RepoManager) GetOrderedRepolistKeys() []string\n```\n\n```go\nfunc (manager *RepoManager) GetReposPath() string\n```\n\n```go\nfunc (manager *RepoManager) GetWorkflow(workflowPath string) (resolvedWorkflowPath string, workflowRepo IRepo, err error)\n```\n\n```go\nfunc (manager *RepoManager) GetWorkflowTemplates(repoPattern string, revisionPattern string, allBranches bool, allTags bool, allWorkflows bool) (TemplatesByRepo, int, error)\n```\nGetWorkflowTemplates Returns a map of templates: repo -\u003e revision -\u003e \\[]templates\n\n```go\nfunc (manager *RepoManager) RefreshRepo(repoPath string) error\n```\n\n```go\nfunc (manager *RepoManager) RefreshRepoByIndex(index int) error\n```\n\n```go\nfunc (manager *RepoManager) RefreshRepos() error\n```\n\n```go\nfunc (manager *RepoManager) RemoveRepoByIndex(index int) (string, error)\n```\n\n```go\nfunc (manager *RepoManager) SetGlobalDefaultRevision(revision string) error\n```\n\n```go\nfunc (manager *RepoManager) UpdateDefaultRepo(repoPath string) error\n```\n\n```go\nfunc (manager *RepoManager) UpdateDefaultRepoByIndex(index int) error\n```\n\n```go\nfunc (manager *RepoManager) UpdateDefaultRevisionByIndex(index int, revision string) (string, error)\n```\n\n```go\ntype RepoService struct {\n\tSvc configuration.RuntimeService\n}\n```\nTODO: remove support for FILE backend in this one\n\n```go\nfunc (s *RepoService) GetDefaultRepo() (defaultRepo string, err error)\n```\n\n```go\nfunc (s *RepoService) GetDefaultRevision() (defaultRevision string, err error)\n```\n\n```go\nfunc (s *RepoService) GetRepoDefaultRevisions() (map[string]string, error)\n```\n\n```go\nfunc (s *RepoService) GetReposPath() string\n```\n\n```go\nfunc (s *RepoService) NewDefaultRepo(defaultRepo string) error\n```\n\n```go\nfunc (s *RepoService) NewDefaultRevision(defaultRevision string) error\n```\n\n```go\nfunc (s *RepoService) SetRepoDefaultRevisions(defaultRevisions map[string]string) error\n```\n\n```go\ntype RevisionKey string\n```\n\n```go\ntype Template struct {\n\tName        string\n\tDescription string\n\tPublic      bool\n\tVarInfo     VarSpecMap\n}\n```\n\n```go\ntype Templates []Template\n```\n\n```go\ntype TemplatesByRepo map[RepoKey]TemplatesByRevision\n```\n\n```go\ntype TemplatesByRevision map[RevisionKey]Templates\n```\n\n```go\ntype VarSpec struct {\n\tSource        varsource.Source `yaml:\"-\"`\n\tDefaultValue  string           `yaml:\"value\"`\n\tVarType       string           `yaml:\"type\"`\n\tLabel         string           `yaml:\"label\"`\n\tDescription   string           `yaml:\"description\"`\n\tWidget        string           `yaml:\"widget\"`\n\tPanel         string           `yaml:\"panel\" `\n\tAllowedValues []string         `yaml:\"values\"`\n\tIndex         int32            `yaml:\"index\"`\n\tRows          uint32           `yaml:\"rows\"`\n\tVisibleIf     string           `yaml:\"visibleif\"`\n\tEnabledIf     string           `yaml:\"enabledif\"`\n}\n```\nVarSpec is the type of struct into which public variable information from workflows may be parsed\n\n```go\ntype VarSpecMap map[string]VarSpec\n```\nVarSpecMap holds a map of variable names to their variable information struct\n\n```go\nfunc ParseWorkflowPublicVariableInfo(fileName string) (bool, string, VarSpecMap, error)\n```\n\n","path":"github.com/AliceO2Group/Control/core/repos","name":"repos","synopsis":"Package repos provides repository management functionality for accessing and synchronizing Git repositories containing workflow templates and configurations.","isRedistributable":true}
