Documentation
¶
Index ¶
- Constants
- Variables
- func HasOption(name string, options []Option) (interface{}, bool)
- func SetTLSProfileOptionsFrom(op utils.Options, o obs.OutputSpec)
- func TLSProfileInfo(op utils.Options, outputSpec obs.OutputSpec, separator string) (string, string)
- type ComponentID
- type ConfLiteral
- type Element
- type Generator
- type InLabel
- type NilElement
- type Option
- type Options
- type OutLabel
- type Section
Constants ¶
const ( ClusterTLSProfileSpec = "tlsProfileSpec" MinTLSVersion = "minTLSVersion" Ciphers = "ciphers" URL = "url" OptionServiceAccountTokenSecretName = "serviceAccountTokenSecretName" OptionForwarderName = "forwarderName" UseKubeCacheOption = "useKubeCache" //OptionLogsToMetricInputs identifies a set of inputs that should be used for exporting metrics OptionLogsToMetricInputs = "logsToMetricInputs" )
Variables ¶
var NoOptions = utils.NoOptions
NoOptions is used to pass empty options
Functions ¶
func SetTLSProfileOptionsFrom ¶
func SetTLSProfileOptionsFrom(op utils.Options, o obs.OutputSpec)
SetTLSProfileOptionsFrom updates options to set the TLS profile based upon the output spec
func TLSProfileInfo ¶
TLSProfileInfo returns the minTLSVersion, ciphers as a delimited list given the available TLSSecurityProfile
Types ¶
type ComponentID ¶
type ComponentID = string
ComponentID is used to define a component in vector configuration, a source, sink, etc
type ConfLiteral ¶
type ConfLiteral struct {
ComponentID
TemplateName string
Desc string
InLabel
OutLabel
Pattern string
TemplateStr string
}
func (ConfLiteral) Name ¶
func (b ConfLiteral) Name() string
func (ConfLiteral) Template ¶
func (b ConfLiteral) Template() string
type Element ¶
Element is a basic unit of configuration. It wraps a golang template along with the data type to hold the data template needs. A type implementing
func MergeElements ¶
MergeElements merges multiple arrays of Elements into a single array of Element
func MergeSections ¶
MergeSections merges multiple Sections into a single array of Element
type Generator ¶
type Generator int
Generator converts an array of Elements to configuration. It is intentionally kept stateless.
type InLabel ¶
type InLabel = string
InLabel defines the name of the <label> section in fluentd configuration
type NilElement ¶
type NilElement int
var Nil NilElement
func (NilElement) Name ¶
func (r NilElement) Name() string
func (NilElement) Template ¶
func (r NilElement) Template() string
type Option ¶
type Option struct {
Name string
Value interface{}
}
TODO: unit me with functional.Option
type Options ¶
Options is a map of Options used to customize the config generation. E.g. Debugging, legacy config generation Deprecated
type OutLabel ¶
type OutLabel = string
OutLabel defined the name of the next @label in the fluentd configuration