pub struct ContainerLogQuery {
pub tail: usize,
pub follow: bool,
pub since: Option<i64>,
pub until: Option<i64>,
pub timestamps: bool,
pub stdout: Option<bool>,
pub stderr: Option<bool>,
pub format: Option<ContainerLogFormat>,
}Expand description
Query parameters for container logs.
Mirrors the Docker Engine API GET /containers/{id}/logs query string so
the streaming handler can pass options through to
[zlayer_agent::runtime::Runtime::logs_stream] with minimal translation.
Fields§
§tail: usizeNumber of tail lines to return. 0 and “all” map to “everything
available”; otherwise the runtime ships the last tail lines before
the live stream begins.
follow: boolFollow logs after the current end-of-buffer marker.
since: Option<i64>Earliest log timestamp to include (Unix seconds). None means no
lower bound.
until: Option<i64>Latest log timestamp to include (Unix seconds). None means no upper
bound.
timestamps: boolWhen true, the runtime is asked to populate per-chunk timestamps so
the wire-format includes them.
stdout: Option<bool>Include stdout chunks. When neither stdout nor stderr is set, the
handler defaults both to true (Docker parity).
stderr: Option<bool>Include stderr chunks. See ContainerLogQuery::stdout for the
“neither set” default behavior.
format: Option<ContainerLogFormat>Wire format for the streamed body. "json" (the default) emits one
NDJSON LogChunk per line; "raw" emits Docker’s multiplexed stdcopy
frames (application/vnd.docker.raw-stream).
Trait Implementations§
Source§impl Debug for ContainerLogQuery
impl Debug for ContainerLogQuery
Source§impl Default for ContainerLogQuery
impl Default for ContainerLogQuery
Source§fn default() -> ContainerLogQuery
fn default() -> ContainerLogQuery
Source§impl<'de> Deserialize<'de> for ContainerLogQuery
impl<'de> Deserialize<'de> for ContainerLogQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl IntoParams for ContainerLogQuery
impl IntoParams for ContainerLogQuery
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.