istio: Index | Files

package config

import ""


Package Files



var (
    ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")
var Params_Level_name = map[int32]string{
    0:  "INFO",
    1:  "WARNING",
    2:  "ERROR",
var Params_Level_value = map[string]int32{
    "INFO":    0,
    "WARNING": 1,
    "ERROR":   2,
var Params_Stream_name = map[int32]string{
    0:  "STDOUT",
    1:  "STDERR",
    2:  "FILE",
    3:  "ROTATED_FILE",
var Params_Stream_value = map[string]int32{
    "STDOUT":       0,
    "STDERR":       1,
    "FILE":         2,
    "ROTATED_FILE": 3,

type Params Uses

type Params struct {
    // Selects which standard stream to write to for log entries.
    // STDERR is the default Stream.
    LogStream Params_Stream `protobuf:"varint,1,opt,name=log_stream,json=logStream,proto3,enum=adapter.stdio.config.Params_Stream" json:"log_stream,omitempty"`
    // Maps from severity strings as specified in LogEntry instances to
    // the set of levels supported by this adapter. This defaults to a map of
    // ```
    // "informational" : INFO,
    // "INFO" : INFO,
    // "info" : INFO,
    // "warning" : WARNING,
    // "WARN": WARNING,
    // "warning": WARNING,
    // "ERROR": ERROR,
    // "error": ERROR,
    // "ERR": ERROR,
    // "err": ERROR,
    // "FATAL": ERROR,
    // "fatal": ERROR,
    // ```
    SeverityLevels map[string]Params_Level `protobuf:"bytes,2,rep,name=severity_levels,json=severityLevels,proto3" json:"severity_levels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=adapter.stdio.config.Params_Level"`
    // The level to assign to metrics being output. Defaults to INFO.
    MetricLevel Params_Level `protobuf:"varint,3,opt,name=metric_level,json=metricLevel,proto3,enum=adapter.stdio.config.Params_Level" json:"metric_level,omitempty"`
    // Whether to output a console-friendly or json-friendly format. Defaults to true.
    OutputAsJson bool `protobuf:"varint,4,opt,name=output_as_json,json=outputAsJson,proto3" json:"output_as_json,omitempty"`
    // The minimum level to output, anything less than this level is ignored. Defaults to INFO (everything).
    OutputLevel Params_Level `protobuf:"varint,5,opt,name=output_level,json=outputLevel,proto3,enum=adapter.stdio.config.Params_Level" json:"output_level,omitempty"`
    // The file system path when outputting to a file or rotating file.
    // When using rotated log files, this path is used as a foundational path. This is where log
    // output is normally saved. When a rotation needs to take place because the file got too big
    // or too old, then the file is renamed by appending a timestamp to the name. Such renamed
    // files are called backups. Once a backup has been created, output resumes to this path.
    OutputPath string `protobuf:"bytes,6,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"`
    // The maximum size in megabytes of a log file before it gets
    // rotated. It defaults to 100 megabytes.
    MaxMegabytesBeforeRotation int32 `protobuf:"varint,7,opt,name=max_megabytes_before_rotation,json=maxMegabytesBeforeRotation,proto3" json:"max_megabytes_before_rotation,omitempty"`
    // The maximum number of days to retain old rotated log files based on the
    // timestamp encoded in their filename. Note that a day is defined as 24
    // hours and may not exactly correspond to calendar days due to daylight
    // savings, leap seconds, etc. The default is to remove log files
    // older than 30 days. 0 indicates no limit.
    MaxDaysBeforeRotation int32 `protobuf:"varint,8,opt,name=max_days_before_rotation,json=maxDaysBeforeRotation,proto3" json:"max_days_before_rotation,omitempty"`
    // The maximum number of old rotated log files to retain.  The default
    // is to retain at most 1000 logs. 0 indicates no limit.
    MaxRotatedFiles int32 `protobuf:"varint,9,opt,name=max_rotated_files,json=maxRotatedFiles,proto3" json:"max_rotated_files,omitempty"`

Configuration format for the `stdio` adapter

func (*Params) Descriptor Uses

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

func (*Params) Marshal Uses

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

func (*Params) MarshalTo Uses

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

func (*Params) MarshalToSizedBuffer Uses

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (*Params) Size Uses

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

func (*Params) String Uses

func (this *Params) String() string

func (*Params) Unmarshal Uses

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

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge Uses

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

func (m *Params) XXX_Unmarshal(b []byte) error

type Params_Level Uses

type Params_Level int32

Importance level for individual items output by this adapter.

const (
    INFO    Params_Level = 0
    WARNING Params_Level = 1
    ERROR   Params_Level = 2

func (Params_Level) EnumDescriptor Uses

func (Params_Level) EnumDescriptor() ([]byte, []int)

func (Params_Level) String Uses

func (x Params_Level) String() string

type Params_Stream Uses

type Params_Stream int32

Stream is used to select between different log output sinks.

const (
    // Output to the Mixer process' standard output stream. This is the default value.
    STDOUT Params_Stream = 0
    // Output to the Mixer process' standard error stream.
    STDERR Params_Stream = 1
    // Output to a specific file.
    FILE Params_Stream = 2
    // Output to a specific rotating file, controlled by the various file rotation options.
    ROTATED_FILE Params_Stream = 3

func (Params_Stream) EnumDescriptor Uses

func (Params_Stream) EnumDescriptor() ([]byte, []int)

func (Params_Stream) String Uses

func (x Params_Stream) String() string

Package config imports 10 packages (graph) and is imported by 3 packages. Updated 2020-07-06. Refresh now. Tools for package owners.