Documentation
¶
Overview ¶
Package logs handles log output from a run
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(opts Options) *service
Types ¶
type LogsService ¶
type LogsService = Service
type PhaseWriter ¶
type PhaseWriter struct {
internal.PutChunkService // for uploading logs to server
// contains filtered or unexported fields
}
PhaseWriter writes logs on behalf of a run phase.
func NewPhaseWriter ¶
func NewPhaseWriter(ctx context.Context, opts PhaseWriterOptions) *PhaseWriter
func (*PhaseWriter) Close ¶
func (w *PhaseWriter) Close() error
Close must be called to complete writing job logs
type PhaseWriterOptions ¶
type PhaseWriterOptions struct {
RunID string
Phase internal.PhaseType
Writer internal.PutChunkService
}
type Service ¶
type Service interface {
GetChunk(ctx context.Context, opts internal.GetChunkOptions) (internal.Chunk, error)
Tail(ctx context.Context, opts internal.GetChunkOptions) (<-chan internal.Chunk, error)
WatchLogs(ctx context.Context) (<-chan pubsub.Event[internal.Chunk], func())
internal.PutChunkService
Start(context.Context) error
}
Click to show internal directories.
Click to hide internal directories.