You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
522 B
34 lines
522 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ts_omit_logtail
|
|
|
|
package filch
|
|
|
|
import "os"
|
|
|
|
type Options struct {
|
|
ReplaceStderr bool
|
|
MaxLineSize int
|
|
MaxFileSize int
|
|
}
|
|
|
|
type Filch struct {
|
|
OrigStderr *os.File
|
|
}
|
|
|
|
func (*Filch) TryReadLine() ([]byte, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (*Filch) Write(b []byte) (int, error) {
|
|
return len(b), nil
|
|
}
|
|
|
|
func (f *Filch) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func New(string, Options) (*Filch, error) {
|
|
return new(Filch), nil
|
|
}
|
|
|