kubernetesk8s.io/kubernetes/pkg/util/tail Index | Files

package tail

import "k8s.io/kubernetes/pkg/util/tail"

Index

Functions

func ReadAtMost

func ReadAtMost(path string, max int64) ([]byte, bool, error)

ReadAtMost reads at most max bytes from the end of the file identified by path or returns an error. It returns true if the file was longer than max. It will allocate up to max bytes.

Source Files

tail.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
3 hours ago

Tools for package owners.