mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
feat(deploy): print last logs from failed pre-deploy hook
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user