livelog

package
v0.0.0-...-30d97dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

This package implements the livelog transport, optionally using websocktunnel or just listening on a port.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiveLog

type LiveLog struct {
	// contains filtered or unexported fields
}

LiveLog is a listener which uses HTTP streaming to deliver up-to-the-second build logs.

func New

func New(log logr.Logger, config *config.Config) (*LiveLog, error)

New creates a new LiveLog, given the configuration and a diagnostic logger.

func (*LiveLog) Allocate

Allocate creates a new live log and returns the URL to access it and the writer to populate the contents.

func (*LiveLog) BaseURL

func (l *LiveLog) BaseURL() string

BaseURL returns the URL at which the LiveLogs will be hosted.

func (*LiveLog) Serve

func (l *LiveLog) Serve(ctx context.Context) error

Serve creates the HTTP server for the LiveLogs and runs it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL