endregion region Interfaces Message is a message structure for error reporting in ContainerSSH. The actual implementations may differ, but we provide the UserMessage method to construct a message that conforms to this interface.
| 77 | // Message is a message structure for error reporting in ContainerSSH. The actual implementations may differ, but we |
| 78 | // provide the UserMessage method to construct a message that conforms to this interface. |
| 79 | type Message interface { |
| 80 | // Error is the Go-compatible error message. |
| 81 | Error() string |
| 82 | // String returns the string representation of this message. |
| 83 | String() string |
| 84 | |
| 85 | // Code is a unique code identifying log messages. |
| 86 | Code() string |
| 87 | // UserMessage is a message that is safe to print/send to the end user. |
| 88 | UserMessage() string |
| 89 | // Explanation is the text explanation for the system administrator. |
| 90 | Explanation() string |
| 91 | // Labels are a set of extra labels for the message containing information. |
| 92 | Labels() Labels |
| 93 | // Label adds a label to the message. |
| 94 | Label(name LabelName, value LabelValue) Message |
| 95 | } |
| 96 | |
| 97 | // WrappingMessage is a message that wraps a different error. |
| 98 | type WrappingMessage interface { |
no outgoing calls
no test coverage detected