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.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
3 hours ago

Tools for package owners.