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

package flock

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

Index

Functions

func Acquire

func Acquire(path string) error

Acquire acquires a lock on a file for the duration of the process. This method is reentrant.

Source Files

flock_unix.go

Version
v1.33.2 (latest)
Published
Jun 17, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 hour ago

Tools for package owners.