mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Updates github.com/docker/cli from v27.1.1 to v29.0.2 to use the latest Docker client API. This upgrade includes required dependency updates: - Added github.com/moby/moby/client v0.1.0 - Added github.com/moby/moby/api v1.52.0 - Updated github.com/docker/go-connections v0.5.0 → v0.6.0 - Updated github.com/opencontainers/image-spec v1.1.0 → v1.1.1 - Updated OpenTelemetry packages (v1.28.0 → v1.35.0) - Updated golang.org/x/sys v0.24.0 → v0.33.0 All changes tested and build verified successfully.
40 lines
1.1 KiB
Go
40 lines
1.1 KiB
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package telemetry
|
|
|
|
// For the semantics of status codes see
|
|
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status
|
|
type StatusCode int32
|
|
|
|
const (
|
|
// The default status.
|
|
StatusCodeUnset StatusCode = 0
|
|
// The Span has been validated by an Application developer or Operator to
|
|
// have completed successfully.
|
|
StatusCodeOK StatusCode = 1
|
|
// The Span contains an error.
|
|
StatusCodeError StatusCode = 2
|
|
)
|
|
|
|
var statusCodeStrings = []string{
|
|
"Unset",
|
|
"OK",
|
|
"Error",
|
|
}
|
|
|
|
func (s StatusCode) String() string {
|
|
if s >= 0 && int(s) < len(statusCodeStrings) {
|
|
return statusCodeStrings[s]
|
|
}
|
|
return "<unknown telemetry.StatusCode>"
|
|
}
|
|
|
|
// The Status type defines a logical error model that is suitable for different
|
|
// programming environments, including REST APIs and RPC APIs.
|
|
type Status struct {
|
|
// A developer-facing human readable error message.
|
|
Message string `json:"message,omitempty"`
|
|
// The status code.
|
|
Code StatusCode `json:"code,omitempty"`
|
|
}
|