Versions in this module Expand all Collapse all v1 v1.0.1 Jul 25, 2019 v1.0.0 Jul 22, 2019 Changes in this version + var DefaultEmail = "unknown@unknown.com" + var ErrMalformedJSON = errors.New("malformed json") + type DependencyManager interface + GetRoots func(child string) []string + SetDeps func(parent string, deps []string) + type DinghyJsonUnmarshaller struct + func (d DinghyJsonUnmarshaller) Unmarshal(data []byte, i interface{}) error + type Dinghyfile struct + Application string + ApplicationSpec plank.Application + DeleteStalePipelines bool + Globals map[string]interface{} + Pipelines []plank.Pipeline + func NewDinghyfile() Dinghyfile + type DinghyfileParser struct + Builder *PipelineBuilder + func NewDinghyfileParser(b *PipelineBuilder) *DinghyfileParser + func (r *DinghyfileParser) Parse(org, repo, path, branch string, vars []VarMap) (*bytes.Buffer, error) + func (r *DinghyfileParser) SetBuilder(b *PipelineBuilder) + type Downloader interface + DecodeURL func(url string) (string, string, string, string) + Download func(org, repo, file, branch string) (string, error) + EncodeURL func(org, repo, file, branch string) string + type EventsTestClient struct + func (c *EventsTestClient) SendEvent(eventType string, event *events.Event) + type MockDependencyManager struct + func NewMockDependencyManager(ctrl *gomock.Controller) *MockDependencyManager + func (m *MockDependencyManager) EXPECT() *MockDependencyManagerMockRecorder + func (m *MockDependencyManager) GetRoots(child string) []string + func (m *MockDependencyManager) SetDeps(parent string, deps []string) + type MockDependencyManagerMockRecorder struct + func (mr *MockDependencyManagerMockRecorder) GetRoots(child interface{}) *gomock.Call + func (mr *MockDependencyManagerMockRecorder) SetDeps(parent, deps interface{}) *gomock.Call + type MockDownloader struct + func NewMockDownloader(ctrl *gomock.Controller) *MockDownloader + func (m *MockDownloader) DecodeURL(url string) (string, string, string, string) + func (m *MockDownloader) Download(org, repo, file, branch string) (string, error) + func (m *MockDownloader) EXPECT() *MockDownloaderMockRecorder + func (m *MockDownloader) EncodeURL(org, repo, file, branch string) string + type MockDownloaderMockRecorder struct + func (mr *MockDownloaderMockRecorder) DecodeURL(url interface{}) *gomock.Call + func (mr *MockDownloaderMockRecorder) Download(org, repo, file, branch interface{}) *gomock.Call + func (mr *MockDownloaderMockRecorder) EncodeURL(org, repo, file, branch interface{}) *gomock.Call + type MockParser struct + func NewMockParser(ctrl *gomock.Controller) *MockParser + func (m *MockParser) EXPECT() *MockParserMockRecorder + func (m *MockParser) Parse(org, repo, path, branch string, vars []VarMap) (*bytes.Buffer, error) + func (m *MockParser) SetBuilder(b *PipelineBuilder) + type MockParserMockRecorder struct + func (mr *MockParserMockRecorder) Parse(org, repo, path, branch, vars interface{}) *gomock.Call + func (mr *MockParserMockRecorder) SetBuilder(b interface{}) *gomock.Call + type MockPlankClient struct + func NewMockPlankClient(ctrl *gomock.Controller) *MockPlankClient + func (m *MockPlankClient) ArmoryEndpointsEnabled() bool + func (m *MockPlankClient) CreateApplication(arg0 *plank.Application) error + func (m *MockPlankClient) DeletePipeline(arg0 plank.Pipeline) error + func (m *MockPlankClient) EXPECT() *MockPlankClientMockRecorder + func (m *MockPlankClient) EnableArmoryEndpoints() + func (m *MockPlankClient) GetApplication(arg0 string) (*plank.Application, error) + func (m *MockPlankClient) GetPipelines(arg0 string) ([]plank.Pipeline, error) + func (m *MockPlankClient) ResyncFiat() error + func (m *MockPlankClient) UpsertPipeline(arg0 plank.Pipeline, arg1 string) error + type MockPlankClientMockRecorder struct + func (mr *MockPlankClientMockRecorder) ArmoryEndpointsEnabled() *gomock.Call + func (mr *MockPlankClientMockRecorder) CreateApplication(arg0 interface{}) *gomock.Call + func (mr *MockPlankClientMockRecorder) DeletePipeline(arg0 interface{}) *gomock.Call + func (mr *MockPlankClientMockRecorder) EnableArmoryEndpoints() *gomock.Call + func (mr *MockPlankClientMockRecorder) GetApplication(arg0 interface{}) *gomock.Call + func (mr *MockPlankClientMockRecorder) GetPipelines(arg0 interface{}) *gomock.Call + func (mr *MockPlankClientMockRecorder) ResyncFiat() *gomock.Call + func (mr *MockPlankClientMockRecorder) UpsertPipeline(arg0, arg1 interface{}) *gomock.Call + type Parser interface + Parse func(org, repo, path, branch string, vars []VarMap) (*bytes.Buffer, error) + SetBuilder func(b *PipelineBuilder) + type PipelineBuilder struct + AutolockPipelines string + Client util.PlankClient + DeleteStalePipelines bool + Depman DependencyManager + DinghyfileName string + Downloader Downloader + EventClient events.EventClient + Logger log.FieldLogger + Notifiers []notifiers.Notifier + Parser Parser + TemplateOrg string + TemplateRepo string + Ums []Unmarshaller + func (b *PipelineBuilder) AddUnmarshaller(u Unmarshaller) + func (b *PipelineBuilder) DetermineParser(path string) Parser + func (b *PipelineBuilder) GetPipelineByID(app, pipelineName string) (string, error) + func (b *PipelineBuilder) NotifyFailure(org, repo, path string, err error) + func (b *PipelineBuilder) NotifySuccess(org, repo, path string) + func (b *PipelineBuilder) PipelineIDs(app string) (map[string]string, error) + func (b *PipelineBuilder) ProcessDinghyfile(org, repo, path, branch string) error + func (b *PipelineBuilder) RebuildModuleRoots(org, repo, path, branch string) error + func (b *PipelineBuilder) UpdateDinghyfile(dinghyfile []byte) (Dinghyfile, error) + type Unmarshaller interface + Unmarshal func(data []byte, i interface{}) error + type VarMap map[string]interface