-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c80ae6
commit 6bfb8d4
Showing
8 changed files
with
148 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package main | ||
|
||
import "log" | ||
|
||
type UpdateEvent struct{} | ||
|
||
var EventBus *UpdateEvent = nil | ||
|
||
func CreateEventBus() { | ||
EventBus = &UpdateEvent{} | ||
} | ||
|
||
func (e *UpdateEvent) OnPerformUpdatesStart() { | ||
log.Println("Gathering details about running containers...") | ||
} | ||
|
||
func (e *UpdateEvent) OnPerformUpdatesComplete() { | ||
log.Println("Done.") | ||
} | ||
|
||
func (e *UpdateEvent) OnProcessComposeFileStart(composeFile *ComposeFile) { | ||
log.Printf("Checking for updates of services in %s...\n", composeFile.YamlFilePath) | ||
} | ||
|
||
func (e *UpdateEvent) OnSkipRestartComposeFileDryMode(composeFile *ComposeFile) { | ||
log.Printf("Dry-Mode enabled, not restarting services in %s\n", composeFile.YamlFilePath) | ||
} | ||
|
||
func (e *UpdateEvent) OnSkipRestartComposeFileNoUpdates(composeFile *ComposeFile) { | ||
log.Printf("No need to restart services in %s\n", composeFile.YamlFilePath) | ||
} | ||
|
||
func (e *UpdateEvent) OnRestartComposeFile(composeFile *ComposeFile) { | ||
log.Printf("Restarting services in %s...\n", composeFile.YamlFilePath) | ||
} | ||
|
||
func (e *UpdateEvent) OnRestartComposeFileComplete(composeFile *ComposeFile) { | ||
log.Printf("Restarted services in %s\n", composeFile.YamlFilePath) | ||
} | ||
|
||
func (e *UpdateEvent) OnProcessServiceStart(service *ComposeService) { | ||
log.Printf("Processing service %s (requires build: %t, watched: %t)...\n", service.Name, service.RequiresBuild(), service.IsWatched()) | ||
} | ||
|
||
func (e *UpdateEvent) OnServiceNewImageBuilt(service *ComposeService) { | ||
log.Printf("Built new image for service %s\n", service.Name) | ||
} | ||
|
||
func (e *UpdateEvent) OnServiceNewImagePulled(service *ComposeService) { | ||
log.Printf("Pulled new image %s for service %s\n", service.ImageName, service.Name) | ||
} | ||
|
||
func (e *UpdateEvent) OnImagePruneStart() { | ||
log.Println("Removing unused images...") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
|
||
// BuildVersion is the version | ||
const BuildVersion = "2.0.1" | ||
const BuildVersion = "2.0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters