Documentation ¶
Overview ¶
Package logs handles log output from a run
Index ¶
- type Client
- type Options
- type PhaseWriter
- type PhaseWriterOptions
- type Service
- func (s *Service) AddHandlers(r *mux.Router)
- func (s *Service) GetChunk(ctx context.Context, opts internal.GetChunkOptions) (internal.Chunk, error)
- func (s *Service) PutChunk(ctx context.Context, opts internal.PutChunkOptions) error
- func (s *Service) Tail(ctx context.Context, opts internal.GetChunkOptions) (<-chan internal.Chunk, error)
- func (s *Service) WatchLogs(ctx context.Context) (<-chan pubsub.Event[internal.Chunk], func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
func NewService ¶
func (*Service) AddHandlers ¶ added in v0.2.2
func (*Service) GetChunk ¶
func (s *Service) GetChunk(ctx context.Context, opts internal.GetChunkOptions) (internal.Chunk, error)
GetChunk reads a chunk of logs for a phase.
NOTE: unauthenticated - access granted only via signed URL
Click to show internal directories.
Click to hide internal directories.