handler

package
v0.0.0-...-56df1c5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(h *sdk.Handler, d *Driver)

Handle initializes all the socket endpoints for the Docker daemon and the driver

Types

type Driver

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

Driver maintains a mutex for synchronizing map access for tracking logpairs and maintains the logging interface for each container

func NewDriver

func NewDriver() *Driver

NewDriver creates a driver which initializes the logpairs for each container

func (*Driver) ReadLogs

func (d *Driver) ReadLogs(info logger.Info, config logger.ReadConfig) (io.ReadCloser, error)

ReadLogs reads from the log stream for the docker logs command

func (*Driver) StartLogging

func (d *Driver) StartLogging(file string, logCtx logger.Info) error

StartLogging initializes the logging endpoints for log stream, file and application insights

func (*Driver) StopLogging

func (d *Driver) StopLogging(file string) error

StopLogging will unregister all the handles to files and application insights

Jump to

Keyboard shortcuts

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