docker

package
v0.0.0-...-55e386a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bulk

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

Bulk configures the Bulk Processor Service

type BulkWorker

type BulkWorker struct {
	elasticsearch.Bulk
	// contains filtered or unexported fields
}

BulkWorker provides a Bulk Processor

func (*BulkWorker) Commit

func (b *BulkWorker) Commit(ctx context.Context)

Commit sends all messages to elasticsearch

func (BulkWorker) Flush

func (b BulkWorker) Flush(ctx context.Context)

Flush checks if there are actions to be commited before sending them to elasticsearch

type BulkWorkerService

type BulkWorkerService interface {
	Flush(ctx context.Context)
	Commit(ctx context.Context)
}

BulkWorkerService interface

type Configuration

type Configuration struct {
	Bulk

	Grok
	// contains filtered or unexported fields
}

Configuration is a type to all log-opt provided

type Driver

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

Driver ...

func NewDriver

func NewDriver() *Driver

NewDriver returns a pointer to driver

func (*Driver) Name

func (d *Driver) Name() string

Name return the docker plugin name

func (*Driver) StartLogging

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

StartLogging implements the docker plugin interface

func (*Driver) StopLogging

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

StopLogging implements the docker plugin interface

type Grok

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

Grok filter

type LogMessage

type LogMessage struct {
	logdriver.LogEntry
	logger.Info

	GrokLine map[string]string
}

LogMessage ...

func (LogMessage) MarshalJSON

func (l LogMessage) MarshalJSON() ([]byte, error)

MarshalJSON ...

Jump to

Keyboard shortcuts

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