Documentation
¶
Index ¶
Constants ¶
View Source
const (
ProcessedMetadataValue = "processed"
)
Variables ¶
This section is empty.
Functions ¶
func FilterAndExplain ¶
func GetUserAgent ¶
func GetUserAgent() string
GetUserAgent gets a de-facto standardish user agent string. It includes, OS, ARCH, build date and git commit hash. It uses "Elastic/GCSBeat" as the software identifier.
Types ¶
type Filter ¶
func InvertFilter ¶
type StorageProvider ¶
type StorageProvider interface {
ListUnprocessed() (files []string, err error)
Read(path string) (reader io.ReadCloser, err error)
Remove(path string) error
WasProcessed(path string) (bool, error)
MarkProcessed(path string) error
}
func NewStorageProvider ¶
func NewStorageProvider(cfg *config.Config) (StorageProvider, error)
Click to show internal directories.
Click to hide internal directories.