Documentation ¶
Index ¶
- Constants
- func GetKey(secret *corev1.Secret, key string) (data []byte, ok bool)
- func HasAwsCredentialsKey(secret *corev1.Secret) bool
- func HasAwsRoleArnKey(secret *corev1.Secret) bool
- func HasKeys(secret *corev1.Secret, keys ...string) bool
- type Acknowledgments
- type Batch
- type Buffer
- type ConfigStrategy
- type Encoding
- type Request
- type RootMixin
- type SinkConfig
- type VectorSecret
Constants ¶
View Source
const ( BufferWhenFullBlock = "block" BufferWhenFullDropNewest = "drop_newest" )
View Source
const ( CodecJSON = "json" TimeStampFormatRFC3339 = "rfc3339" )
Variables ¶
This section is empty.
Functions ¶
func HasAwsCredentialsKey ¶
func HasAwsRoleArnKey ¶
Types ¶
type Acknowledgments ¶
func NewAcknowledgments ¶
func NewAcknowledgments(id string, s ConfigStrategy) Acknowledgments
func (Acknowledgments) Name ¶
func (a Acknowledgments) Name() string
func (Acknowledgments) Template ¶
func (a Acknowledgments) Template() string
type Batch ¶
type Batch struct { ComponentID string MaxBytes helpers.OptionalPair MaxEvents helpers.OptionalPair TimeoutSec helpers.OptionalPair }
func NewBatch ¶
func NewBatch(id string, s ConfigStrategy) Batch
type Buffer ¶
type Buffer struct { ComponentID string Type helpers.OptionalPair WhenFull helpers.OptionalPair MaxEvents helpers.OptionalPair MaxSize helpers.OptionalPair }
func NewBuffer ¶
func NewBuffer(id string, s ConfigStrategy) Buffer
type ConfigStrategy ¶
type ConfigStrategy interface { VisitAcknowledgements(a Acknowledgments) Acknowledgments VisitBatch(b Batch) Batch VisitRequest(r Request) Request VisitBuffer(b Buffer) Buffer // VisitSink allows setting top-level sink parameters VisitSink(s SinkConfig) }
ConfigStrategy abstracts the generator specific sections from the domain
type Encoding ¶
type Encoding struct { ID string Codec helpers.OptionalPair //ExceptFields is a VRL acceptable List ExceptFields helpers.OptionalPair TimeStampFormat helpers.OptionalPair }
func NewEncoding ¶
type Request ¶
type Request struct { ComponentID string RetryAttempts helpers.OptionalPair RetryInitialBackoffSec helpers.OptionalPair RetryMaxDurationSec helpers.OptionalPair Concurrency helpers.OptionalPair TimeoutSecs helpers.OptionalPair // contains filtered or unexported fields }
func NewRequest ¶
func NewRequest(id string, s ConfigStrategy) *Request
NewRequest section for an output Ref: LOG-4536 for RetryAttempts default
func (*Request) SetHeaders ¶
type RootMixin ¶
type RootMixin struct {
Compression helpers.OptionalPair
}
func NewRootMixin ¶
func NewRootMixin(compression interface{}) RootMixin
type SinkConfig ¶
type SinkConfig interface { // SetCompression of the sink SetCompression(algo string) }
SinkConfig is an abstraction to set common root level configuration parameters of a sink (e.g. compression) Not all sinks may support all parameters
type VectorSecret ¶
type VectorSecret struct { framework.ComponentID Desc string BasePath string }
func NewVectorSecret ¶
func NewVectorSecret() VectorSecret
func (VectorSecret) Name ¶
func (sec VectorSecret) Name() string
func (VectorSecret) Template ¶
func (sec VectorSecret) Template() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.