Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelTrace = Level(codersdk.LogLevelTrace) LevelDebug = Level(codersdk.LogLevelDebug) LevelInfo = Level(codersdk.LogLevelInfo) LevelWarn = Level(codersdk.LogLevelWarn) LevelError = Level(codersdk.LogLevelError) )
Below constants are the same as their codersdk equivalents.
Variables ¶
This section is empty.
Functions ¶
func HijackLogrus ¶
HijackLogrus hijacks the logrus logger and calls the callback for each log entry. This is an abuse of logrus, the package that Kaniko uses, but it exposes no other way to obtain the log entries.
Types ¶
type Func ¶
func Coder ¶
Coder establishes a connection to the Coder instance located at coderURL and authenticates using token. It then establishes a dRPC connection to the Agent API and begins sending logs. If the version of Coder does not support the Agent API, it will fall back to using the PatchLogs endpoint. The returned function is used to block until all logs are sent.
Click to show internal directories.
Click to hide internal directories.