Documentation
¶
Index ¶
- Constants
- func CheckFileForRotation(fileName string, regexp *regexp.Regexp) bool
- func CheckFileForStdio(fileName string) bool
- func FetchStartAndLen(xattrKey string, file *os.File) (int64, int64, error)
- func GetCurrentOffset(file *os.File) (int64, error)
- func PotentialStdioNames(localDir string) []string
- type WatchConfig
- type Watcher
Constants ¶
View Source
const ( // VirtualFilePrefix is the attribute namespace used to state virtual file mappings VirtualFilePrefix = "user.titus.virtualFile" // VirtualFilePrefixWithSeparator is the VirtualFilePrefix with a "." appended (the namespace separator VirtualFilePrefixWithSeparator = VirtualFilePrefix + "." // StdioAttr is the attribute that states this is a stdio, rotatable file StdioAttr = "user.stdio" )
Variables ¶
This section is empty.
Functions ¶
func CheckFileForStdio ¶
CheckFileForStdio determines whether the file at the path below is one written by tini as a stdio rotator
func FetchStartAndLen ¶
FetchStartAndLen returns the virtual file start and length for a given xattrKey (a key that includes the prefix)
func GetCurrentOffset ¶
GetCurrentOffset gets the current place where the "active" file is being written from for a given stdio file
func PotentialStdioNames ¶
PotentialStdioNames takes a base directory and returns all stderr/stout files for the main container as well as any other sidecar container (which has stdout-containername and stderr-containername)
Types ¶
type WatchConfig ¶
type WatchConfig struct {
// contains filtered or unexported fields
}
func NewWatchConfig ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
NewWatcher returns a fully instantiated instance of Watcher, which will run until Stop is called.
Click to show internal directories.
Click to hide internal directories.