add docker log/payload types
This commit is contained in:
1 parent
a1c54997bb
commit
77974682fb
1 file changed
+15
@@ -103,6 +103,20 @@ export type DockerContainerState = (typeof DockerContainerStates)[number];
|
|||||||
export const DockerHealthStatuses = ["healthy", "unhealthy", "starting", "none"] as const;
|
export const DockerHealthStatuses = ["healthy", "unhealthy", "starting", "none"] as const;
|
||||||
export type DockerHealthStatus = (typeof DockerHealthStatuses)[number];
|
export type DockerHealthStatus = (typeof DockerHealthStatuses)[number];
|
||||||
|
|
||||||
|
export const DockerLogStreams = ["stdout", "stderr"] as const;
|
||||||
|
export type DockerLogStream = (typeof DockerLogStreams)[number];
|
||||||
|
export interface DockerLogLine {
|
||||||
|
ts: string;
|
||||||
|
stream: DockerLogStream;
|
||||||
|
text: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DockerContainerLogs {
|
||||||
|
containerId: string;
|
||||||
|
containerName: string;
|
||||||
|
lines: DockerLogLine[];
|
||||||
|
}
|
||||||
|
|
||||||
export interface DockerContainerSummary {
|
export interface DockerContainerSummary {
|
||||||
total: number;
|
total: number;
|
||||||
running: number;
|
running: number;
|
||||||
@@ -149,6 +163,7 @@ export interface DockerContainerMount {
|
|||||||
export interface DockerStatusPayload {
|
export interface DockerStatusPayload {
|
||||||
containers: DockerContainerInfo[];
|
containers: DockerContainerInfo[];
|
||||||
summary: DockerContainerSummary;
|
summary: DockerContainerSummary;
|
||||||
|
logs?: DockerContainerLogs[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PortStatusPayload {
|
export interface PortStatusPayload {
|
||||||
|
|||||||
Reference in new issue
Block a user