projects

package
v0.0.0-...-7d5e071 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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