package nfacct
import "k8s.io/kubernetes/pkg/proxy/util/nfacct"
Index ¶
Types ¶
type Counter ¶
Counter represents a nfacct accounting object.
type Interface ¶
type Interface interface {
// Ensure checks the existence of a nfacct counter with the provided name and creates it if absent.
Ensure(name string) error
// Add creates a nfacct counter with the given name, returning an error if it already exists.
Add(name string) error
// Get retrieves the nfacct counter with the specified name, returning an error if it doesn't exist.
Get(name string) (*Counter, error)
// List retrieves nfacct counters, it could receive all counters or a subset of them with an unix.EINTR error.
List() ([]*Counter, error)
}
Interface is an injectable interface for running nfacct commands.
func New ¶
Source Files ¶
nfacct.go nfacct_others.go
- Version
- v1.33.0-rc.1
- Published
- Apr 15, 2025
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 1 minute ago –
Tools for package owners.