Documentation ¶
Index ¶
- type DefaultProjectManager
- func (t DefaultProjectManager) Assemble() error
- func (t DefaultProjectManager) Get(projectKey string) *v1.Project
- func (t DefaultProjectManager) GetProjectByTeamName(team, project string) (v1.Project, bool)
- func (t DefaultProjectManager) GetProjects() map[string]v1.Project
- func (t DefaultProjectManager) RepositoryBranch() string
- func (t DefaultProjectManager) RepositoryURL() string
- type ProjectManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultProjectManager ¶
type DefaultProjectManager struct {
// contains filtered or unexported fields
}
DefaultProjectManager is the live, working projects manager that clones the build scripts repo and returns associated information.
func (DefaultProjectManager) Assemble ¶
func (t DefaultProjectManager) Assemble() error
Assemble assembles the build scripts repo into a manageable API.
func (DefaultProjectManager) Get ¶
func (t DefaultProjectManager) Get(projectKey string) *v1.Project
Get returns the project by key.
func (DefaultProjectManager) GetProjectByTeamName ¶
func (t DefaultProjectManager) GetProjectByTeamName(team, project string) (v1.Project, bool)
GerProjectByTeamName retrieves a project indexed by Team and Project name.
func (DefaultProjectManager) GetProjects ¶
func (t DefaultProjectManager) GetProjects() map[string]v1.Project
GetProjects returns current in-memory view of all projects.
func (DefaultProjectManager) RepositoryBranch ¶
func (t DefaultProjectManager) RepositoryBranch() string
RepositoryBranch returns the branch of the underlying repository.
func (DefaultProjectManager) RepositoryURL ¶
func (t DefaultProjectManager) RepositoryURL() string
RepositoryURL returns the URL of the underlying projects repository.
type ProjectManager ¶
type ProjectManager interface { Assemble() error GetProjects() map[string]v1.Project GetProjectByTeamName(team, project string) (v1.Project, bool) Get(key string) *v1.Project RepositoryURL() string RepositoryBranch() string }
ProjectManager is the interface to the build scripts repository.
func NewDefaultManager ¶
func NewDefaultManager(repo, branch string, logger *log.Logger) ProjectManager
NewDefaultManager returns the working project manager.
Click to show internal directories.
Click to hide internal directories.