Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Start starts the logger. Start(context.Context, io.Writer) error // Stop stops the logger. Stop() // Mute mutes the logger. Mute() // Unmute unmutes the logger. Unmute() // SetSince sets the original timestamp for the logger. SetSince(time.Time) // RegisterArtifacts tracks build artifacts inside of a logger. // The logger sometimes uses information about the currently deployed artifacts // to actually retrieve logs (e.g. the Kubernetes PodSelector). Thus, we need to // track the current build artifacts in the logger. RegisterArtifacts([]graph.Artifact) }
Logger defines the behavior of the object that retrieves logs from deployed resources. Logger implementations are platform-specific, and are controlled by a single Deployer.
type LoggerMux ¶ added in v1.27.0
type LoggerMux []Logger
func (LoggerMux) RegisterArtifacts ¶ added in v1.27.0
type NoopLogger ¶
type NoopLogger struct{}
NoopLogger is used in tests. It will never retrieve any logs from any resources.
func (*NoopLogger) Mute ¶
func (n *NoopLogger) Mute()
func (*NoopLogger) RegisterArtifacts ¶ added in v1.27.0
func (n *NoopLogger) RegisterArtifacts(_ []graph.Artifact)
func (*NoopLogger) SetSince ¶
func (n *NoopLogger) SetSince(time.Time)
func (*NoopLogger) Stop ¶ added in v1.27.0
func (n *NoopLogger) Stop()
func (*NoopLogger) Unmute ¶
func (n *NoopLogger) Unmute()
Click to show internal directories.
Click to hide internal directories.