Documentation
¶
Index ¶
- Variables
- func GenerateClusterConfig(logging mgmtv3.ClusterLoggingSpec, excludeNamespaces, certDir string) ([]byte, error)
- func GenerateConfig(tempalteName string, conf interface{}) ([]byte, error)
- func GenerateProjectConfig(projectLoggings []*mgmtv3.ProjectLogging, namespaces []*k8scorev1.Namespace, ...) ([]byte, error)
- func ValidateCustomTags(data interface{}) error
- func ValidateCustomTarget(data interface{}) error
- func ValidateSyslogToken(data interface{}) error
- type ClusterLoggingTemplateWrap
- type CustomTargetWrap
- type ElasticsearchTemplateWrap
- type FluentForwarderTemplateWrap
- type FluentServer
- type KafkaTemplateWrap
- type LoggingTargetTemplateWrap
- type ProjectLoggingTemplateWrap
- type SplunkTemplateWrap
- type SyslogTemplateWrap
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 LoggingTargetTemplateWrap ¶
type LoggingTargetTemplateWrap struct {
CurrentTarget string
ElasticsearchTemplateWrap
SplunkTemplateWrap
SyslogTemplateWrap
KafkaTemplateWrap
FluentForwarderTemplateWrap
CustomTargetWrap
}
func NewLoggingTargetTemplateWrap ¶
func NewLoggingTargetTemplateWrap(loggingTagets v3.LoggingTargets) (wrapLogging *LoggingTargetTemplateWrap, err error)
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
}
Click to show internal directories.
Click to hide internal directories.