Documentation ¶
Index ¶
- Constants
- func HealthCheck(conf *config.Service) interface{}
- func Run(depTree *DepTree, repo *git.Repository, stateCom *statecom.StateCom, ...) error
- func RunTests(srv *Service) error
- func TraverseTree(depSrv *DepService, repo *git.Repository, ...) error
- type DepService
- type DepTree
- type Project
- type Service
Constants ¶
View Source
const PTAttach = "PTRACE_ATTACH"
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
HealthCheck performs a health on deployed services
func Run ¶
func Run(depTree *DepTree, repo *git.Repository, stateCom *statecom.StateCom, lastBuildCommit, currBuildCommit *string, testAll, shouldDeploy *bool) error
Run runs the build for all changed services
func TraverseTree ¶
func TraverseTree(depSrv *DepService, repo *git.Repository, lastBuildCommit, currBuildCommit *string) error
TraverseTree traverses a dependency tree
Types ¶
type DepService ¶
type DepService struct { Parent *DepService Children map[string]*DepService // contains filtered or unexported fields }
DepService represents a service in the tree
type DepTree ¶
type DepTree struct {
CurrNode *DepService
}
DepTree is a dependency tree to determine whether or not to build services
func NewTreeList ¶
NewTreeList returns a list of dependency trees
type Project ¶
type Project struct { State string ABSPath string Services map[string]*Service CloneOpts *git.CloneOptions // contains filtered or unexported fields }
Project is a struct for the Project in the pipeline
func New ¶
func New(conf *config.Config, creds *credentials.RawCredentials, clonePath, branch, last, curr string) *Project
New returns a new instance of a pipeline project
type Service ¶
Service is a struct for services in the pipeline
func NewService ¶
func NewService(srv config.Service, creds *credentials.RawCredentials, clonePath, last, curr string) *Service
NewService returns an instance of a pipeline service
func (*Service) ShouldBuild ¶
func (s *Service) ShouldBuild(repo *git.Repository, lastBuildCommit, currBuildCommit *string) (bool, error)
ShouldBuild diffs a service's path and determs whether or not it needs to run the pipeline on it
Click to show internal directories.
Click to hide internal directories.