fix: add some comments
This commit is contained in:
@@ -244,7 +244,7 @@ func DockerInspect(containerOrImageID, format string) (output string, err error)
|
||||
return
|
||||
}
|
||||
|
||||
// DockerInspect runs an inspect command with a given format against a container ID
|
||||
// DockerSignal sends a given signal (in string form) to a docker container
|
||||
func DockerSignal(containerID, signal string) (err error) {
|
||||
return sh.Command(DockerBin(), "kill", fmt.Sprintf("--signal=%s", signal), containerID).Run()
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ func LogVerboseQuietContainerLogs(containerID string) {
|
||||
}
|
||||
}
|
||||
|
||||
// LogVerboseQuietContainerLogs is the verbose log formatter for container logs
|
||||
// LogVerboseQuietContainerLogsTail is the verbose log formatter for container logs with tail mode enabled
|
||||
func LogVerboseQuietContainerLogsTail(containerID string) {
|
||||
sc := NewShellCmdWithArgs(DockerBin(), "container", "logs", containerID, "--follow", "--tail", "10")
|
||||
stdout, _ := sc.Command.StdoutPipe()
|
||||
|
||||
@@ -18,6 +18,7 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
// VectorImage contains the default vector image to run
|
||||
const VectorImage = "timberio/vector:0.11.X-debian"
|
||||
|
||||
// GetFailedLogs outputs failed deploy logs for a given app
|
||||
|
||||
Reference in New Issue
Block a user