feat(deploy): print last logs from failed pre-deploy hook

This commit is contained in:
Pasha Sviderski
2026-04-22 12:43:19 +10:00
parent 5b5cd44d68
commit 8afe52367f
3 changed files with 78 additions and 7 deletions
+8
View File
@@ -12,6 +12,7 @@ type Client interface {
ContainerClient
DNSClient
ImageClient
LogsClient
MachineClient
ServiceClient
VolumeClient
@@ -43,6 +44,13 @@ type ImageClient interface {
InspectRemoteImage(ctx context.Context, id string) ([]MachineRemoteImage, error)
}
type LogsClient interface {
ServiceLogs(
ctx context.Context, serviceNameOrID string, opts ServiceLogsOptions,
) (Service, <-chan ServiceLogEntry, error)
MachineLogs(ctx context.Context, unit string, opts ServiceLogsOptions) (<-chan ServiceLogEntry, error)
}
type MachineClient interface {
InspectMachine(ctx context.Context, id string) (*pb.MachineMember, error)
ListMachines(ctx context.Context, filter *MachineFilter) (MachineMembersList, error)