webhook

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerName = "fluentd-sidecar"
	VolumeName    = "fluentd-sidecar-injector-logs"
)

Variables

This section is empty.

Functions

func StartServer

func StartServer(tlsCertFile, tlsKeyFile string) error

StartServer run webhook server.

Types

type FluentBitEnv

type FluentBitEnv struct {
	DockerImage       string `envconfig:"DOCKER_IMAGE" default:"ghcr.io/h3poteto/fluentbit-forward:latest"`
	ApplicationLogDir string `envconfig:"APPLICATION_LOG_DIR"`
	TagPrefix         string `envconfig:"TAG_PREFIX" default:"app"`
	AggregatorHost    string `envconfig:"AGGREGATOR_HOST"`
	AggregatorPort    string `envconfig:"AGGREGATOR_PORT" default:"24224"`
	CustomEnv         string `envconfig:"CUSTOM_ENV"`
}

type FluentDEnv

type FluentDEnv struct {
	DockerImage       string `envconfig:"DOCKER_IMAGE" default:"ghcr.io/h3poteto/fluentd-forward:latest"`
	ApplicationLogDir string `envconfig:"APPLICATION_LOG_DIR"`
	TimeFormat        string `envconfig:"TIME_FORMAT" default:"%Y-%m-%dT%H:%M:%S%z"`
	TimeKey           string `envconfig:"TIME_KEY" default:"time"`
	TagPrefix         string `envconfig:"TAG_PREFIX" default:"app"`
	AggregatorHost    string `envconfig:"AGGREGATOR_HOST"`
	AggregatorPort    string `envconfig:"AGGREGATOR_PORT" default:"24224"`
	LogFormat         string `envconfig:"LOG_FORMAT" default:"json"`
	CustomEnv         string `envconfig:"CUSTOM_ENV"`
}

FluentDEnv is required environment variables for fluentd settings.

type GeneralEnv

type GeneralEnv struct {
	Collector string `envconfig:"COLLECTOR" default:"fluentd"`
}

GeneralEnv is required environment variables to run this server.

Jump to

Keyboard shortcuts

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