pilot

package
v0.0.0-...-cd38d53 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2017 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ENV_SERVICE_LOGS = "aliyun_logs_"
View Source
const FLUENTD_CONF_HOME = "/etc/fluentd"
View Source
const LABEL_POD = "io.kubernetes.pod.name"
View Source
const LABEL_PROJECT = "com.docker.compose.project"
View Source
const LABEL_PROJECT_SWARM_MODE = "com.docker.stack.namespace"
View Source
const LABEL_SERVICE = "com.docker.compose.service"
View Source
const LABEL_SERVICE_LOGS = "aliyun.logs."
View Source
const LABEL_SERVICE_SWARM_MODE = "com.docker.swarm.service.name"

Variables

This section is empty.

Functions

func Convert

func Convert(info *LogInfoNode) (map[string]string, error)

func Register

func Register(format string, converter FormatConverter)

func ReloadFluentd

func ReloadFluentd() error

func Run

func Run(tpl string, baseDir string) error

func StartFluentd

func StartFluentd() error

Types

type FormatConverter

type FormatConverter func(info *LogInfoNode) (map[string]string, error)

type LogConfig

type LogConfig struct {
	Name         string
	HostDir      string
	ContainerDir string
	Format       string
	FormatConfig map[string]string
	File         string
	Tags         map[string]string
	Target       string
	TimeKey      string
}

type LogInfoNode

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

type Pilot

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

func New

func New(tplStr string, baseDir string) (*Pilot, error)

type SimpleConverter

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

Jump to

Keyboard shortcuts

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