package
0.0.3
Repository: https://github.com/useproject/origin-elastic.git
Documentation: pkg.go.dev

# Functions

GetOSState returns the FileStateOS for non windows systems.
Lstat returns a FileInfo describing the named file.
MaxBackups configures the maximum number of backup files to save (not counting the active file).
MaxSizeBytes configures the maximum number of bytes that a file should contain before being rotated.
NewFileRotator returns a new Rotator.
Permissions configures the file permissions to use for the file that the Rotator creates.
ReadOpen opens a file for reading only.
SafeFileRotate safely rotates an existing file under path and replaces it with the tempfile.
Stat returns a FileInfo describing the named file.

# Constants

MaxBackupsLimit is the upper bound on the number of backup files.

# Structs

Rotator is a io.WriteCloser that automatically rotates the file it is writing to when it reaches a maximum size.
No description provided by the author

# Interfaces

A FileInfo describes a file and is returned by Stat and Lstat.

# Type aliases

RotatorOption is a configuration option for Rotator.