PlatformBackupKeysEnsureCommand
extends Command
in package
FinalYes
Idempotently provisions backup KEKs without printing secret values.
Table of Contents
Methods
- defaultName() : string
- execute() : int
- buildOptionParser() : ConsoleOptionParser
- countResult() : void
- Add one ensure result to the aggregate counters.
- ensure() : bool|null
- Create a missing key without exposing its value.
Methods
defaultName()
public
static defaultName() : string
Tags
Return values
stringexecute()
public
execute(Arguments $args, ConsoleIo $io) : int
Parameters
- $args : Arguments
- $io : ConsoleIo
Tags
Return values
intbuildOptionParser()
protected
buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
- $parser : ConsoleOptionParser
Tags
Return values
ConsoleOptionParsercountResult()
Add one ensure result to the aggregate counters.
private
countResult(bool|null $result, int &$created, int &$existing, int &$unavailable) : void
Parameters
- $result : bool|null
- $created : int
- $existing : int
- $unavailable : int
ensure()
Create a missing key without exposing its value.
private
ensure(SecretStoreInterface $store, string $name) : bool|null
Parameters
- $store : SecretStoreInterface
- $name : string