one word to describe lock
If I needed a word that could be used equally to describe the action of locking or unlocking, this word could be used equally to describe its purpose.
Context is naming a class in a program that would contain both actions of locking and unlocking a record.
My primary language isn’t English and I don’t know if the one I have identified as English is
that.
I’d call it “LockManager”, which suggests it’s in charge of removing or adding the
locked status.
What is the word you are looking for is toggle.
(Toggle lock on or off)
This is a verb that is used within computing to indicate something is alternating between discrete states – I’ve only ever known it to be used in a binary sense (typically for on/off switches).