generator

package
v2.2.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilterTemplate = `` /* 2435-byte string literal not displayed */
View Source
var MatchTemplate = `` /* 5960-byte string literal not displayed */
View Source
var SourceTemplate = `` /* 528-byte string literal not displayed */
View Source
var Template = `` /* 886-byte string literal not displayed */

Functions

func GenerateClusterConfig

func GenerateClusterConfig(logging mgmtv3.ClusterLoggingSpec, excludeNamespaces, certDir string) ([]byte, error)

func GenerateConfig

func GenerateConfig(tempalteName string, conf interface{}) ([]byte, error)

func GenerateProjectConfig

func GenerateProjectConfig(projectLoggings []*mgmtv3.ProjectLogging, namespaces []*k8scorev1.Namespace, systemProjectID, certDir string) ([]byte, error)

func ValidateCustomTags

func ValidateCustomTags(data interface{}) error

func ValidateCustomTarget

func ValidateCustomTarget(data interface{}) error

func ValidateSyslogToken

func ValidateSyslogToken(data interface{}) error

Types

type ClusterLoggingTemplateWrap

type ClusterLoggingTemplateWrap struct {
	ExcludeNamespace string

	v3.LoggingCommonField
	LoggingTargetTemplateWrap
	IncludeRke              bool
	CertFilePrefix          string
	BufferFile              string
	ContainerLogSourceTag   string
	CustomLogSourceTag      string
	ContainerLogPosFilename string
	RkeLogTag               string
	RkeLogPosFilename       string
}

type CustomTargetWrap

type CustomTargetWrap struct {
	v3.CustomTargetConfig
}

type ElasticsearchTemplateWrap

type ElasticsearchTemplateWrap struct {
	v3.ElasticsearchConfig
	DateFormat string
	Host       string
	Scheme     string
}

type FluentForwarderTemplateWrap

type FluentForwarderTemplateWrap struct {
	v3.FluentForwarderConfig
	EnableShareKey bool
	FluentServers  []FluentServer
}

type FluentServer

type FluentServer struct {
	Host string
	Port string
	v3.FluentServer
}

type KafkaTemplateWrap

type KafkaTemplateWrap struct {
	v3.KafkaConfig
	Brokers   string
	Zookeeper string
	IsSSL     bool
}

type ProjectLoggingTemplateWrap

type ProjectLoggingTemplateWrap struct {
	GrepNamespace string

	v3.LoggingCommonField
	LoggingTargetTemplateWrap
	IncludeRke              bool
	CertFilePrefix          string
	BufferFile              string
	ContainerLogSourceTag   string
	CustomLogSourceTag      string
	ContainerLogPosFilename string
	RkeLogTag               string
	RkeLogPosFilename       string
}

type SplunkTemplateWrap

type SplunkTemplateWrap struct {
	v3.SplunkConfig
	Host   string
	Port   string
	Scheme string
}

type SyslogTemplateWrap

type SyslogTemplateWrap struct {
	v3.SyslogConfig
	Host         string
	Port         string
	WrapSeverity string
}

Jump to

Keyboard shortcuts

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