component-basek8s.io/component-base/logs/kube-log-runner/internal/logrotation Index | Files

package logrotation

import "k8s.io/component-base/logs/kube-log-runner/internal/logrotation"

Index

Functions

func Open

func Open(filePath string, flushInterval time.Duration, maxSize int64, maxAge time.Duration) (io.WriteCloser, error)

func OpenStub

func OpenStub(filePath string, flushInterval time.Duration, maxSize int64, maxAge time.Duration) (io.WriteCloser, error)

Types

type RotationStub

type RotationStub struct{}

func (*RotationStub) Close

func (w *RotationStub) Close() error

func (*RotationStub) Write

func (w *RotationStub) Write(p []byte) (int, error)

write func to satisfy io.writer interface

Source Files

logrotation.go logrotationstub.go

Version
v0.34.0-alpha.3
Published
Jul 10, 2025
Platform
js/wasm
Imports
7 packages
Last checked
10 hours ago

Tools for package owners.