docker: github.com/docker/docker/api/types/plugins/logdriver Index | Files

package logdriver

import "github.com/docker/docker/api/types/plugins/logdriver"

Package logdriver is a generated protocol buffer package.

It is generated from these files:

entry.proto

It has these top-level messages:

LogEntry
PartialLogEntryMetadata

Index

Package Files

entry.pb.go gen.go io.go

Variables

var (
    ErrInvalidLengthEntry = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowEntry   = fmt.Errorf("proto: integer overflow")
)

type LogEntry Uses

type LogEntry struct {
    Source             string                   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
    TimeNano           int64                    `protobuf:"varint,2,opt,name=time_nano,json=timeNano,proto3" json:"time_nano,omitempty"`
    Line               []byte                   `protobuf:"bytes,3,opt,name=line,proto3" json:"line,omitempty"`
    Partial            bool                     `protobuf:"varint,4,opt,name=partial,proto3" json:"partial,omitempty"`
    PartialLogMetadata *PartialLogEntryMetadata `protobuf:"bytes,5,opt,name=partial_log_metadata,json=partialLogMetadata" json:"partial_log_metadata,omitempty"`
}

func (*LogEntry) Descriptor Uses

func (*LogEntry) Descriptor() ([]byte, []int)

func (*LogEntry) GetLine Uses

func (m *LogEntry) GetLine() []byte

func (*LogEntry) GetPartial Uses

func (m *LogEntry) GetPartial() bool

func (*LogEntry) GetPartialLogMetadata Uses

func (m *LogEntry) GetPartialLogMetadata() *PartialLogEntryMetadata

func (*LogEntry) GetSource Uses

func (m *LogEntry) GetSource() string

func (*LogEntry) GetTimeNano Uses

func (m *LogEntry) GetTimeNano() int64

func (*LogEntry) Marshal Uses

func (m *LogEntry) Marshal() (dAtA []byte, err error)

func (*LogEntry) MarshalTo Uses

func (m *LogEntry) MarshalTo(dAtA []byte) (int, error)

func (*LogEntry) ProtoMessage Uses

func (*LogEntry) ProtoMessage()

func (*LogEntry) Reset Uses

func (m *LogEntry) Reset()

func (*LogEntry) Size Uses

func (m *LogEntry) Size() (n int)

func (*LogEntry) String Uses

func (m *LogEntry) String() string

func (*LogEntry) Unmarshal Uses

func (m *LogEntry) Unmarshal(dAtA []byte) error

type LogEntryDecoder Uses

type LogEntryDecoder interface {
    Decode(*LogEntry) error
}

LogEntryDecoder decodes log entries from a stream It is expected that the wire format is as defined by LogEntryEncoder.

func NewLogEntryDecoder Uses

func NewLogEntryDecoder(r io.Reader) LogEntryDecoder

NewLogEntryDecoder creates a new stream decoder for log entries

type LogEntryEncoder Uses

type LogEntryEncoder interface {
    Encode(*LogEntry) error
}

LogEntryEncoder encodes a LogEntry to a protobuf stream The stream should look like:

[uint32 binary encoded message size][protobuf message]

To decode an entry, read the first 4 bytes to get the size of the entry, then read `size` bytes from the stream.

func NewLogEntryEncoder Uses

func NewLogEntryEncoder(w io.Writer) LogEntryEncoder

NewLogEntryEncoder creates a protobuf stream encoder for log entries. This is used to write out log entries to a stream.

type PartialLogEntryMetadata Uses

type PartialLogEntryMetadata struct {
    Last    bool   `protobuf:"varint,1,opt,name=last,proto3" json:"last,omitempty"`
    Id      string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
    Ordinal int32  `protobuf:"varint,3,opt,name=ordinal,proto3" json:"ordinal,omitempty"`
}

func (*PartialLogEntryMetadata) Descriptor Uses

func (*PartialLogEntryMetadata) Descriptor() ([]byte, []int)

func (*PartialLogEntryMetadata) GetId Uses

func (m *PartialLogEntryMetadata) GetId() string

func (*PartialLogEntryMetadata) GetLast Uses

func (m *PartialLogEntryMetadata) GetLast() bool

func (*PartialLogEntryMetadata) GetOrdinal Uses

func (m *PartialLogEntryMetadata) GetOrdinal() int32

func (*PartialLogEntryMetadata) Marshal Uses

func (m *PartialLogEntryMetadata) Marshal() (dAtA []byte, err error)

func (*PartialLogEntryMetadata) MarshalTo Uses

func (m *PartialLogEntryMetadata) MarshalTo(dAtA []byte) (int, error)

func (*PartialLogEntryMetadata) ProtoMessage Uses

func (*PartialLogEntryMetadata) ProtoMessage()

func (*PartialLogEntryMetadata) Reset Uses

func (m *PartialLogEntryMetadata) Reset()

func (*PartialLogEntryMetadata) Size Uses

func (m *PartialLogEntryMetadata) Size() (n int)

func (*PartialLogEntryMetadata) String Uses

func (m *PartialLogEntryMetadata) String() string

func (*PartialLogEntryMetadata) Unmarshal Uses

func (m *PartialLogEntryMetadata) Unmarshal(dAtA []byte) error

Package logdriver imports 5 packages (graph) and is imported by 40 packages. Updated 2018-08-23. Refresh now. Tools for package owners.