Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultService = "jamf-cli"
DefaultService is the keychain service name used by jamf-cli.
Variables ¶
View Source
var ErrNotFound = errors.New("keychain item not found")
ErrNotFound is returned when a keychain item does not exist.
Functions ¶
func KeychainRef ¶
KeychainRef builds a keychain: reference string for use in config files. Example: KeychainRef("prod", "client-secret") returns "keychain:jamf-cli/prod/client-secret"
func ParseRef ¶
ParseRef parses a keychain reference value into service and account. The input is the portion after the "keychain:" prefix.
Format: "service/account/subkey" or just "account/subkey" If the value contains exactly two slashes, the first segment is the service. Otherwise DefaultService is used and the entire value is the account.
Examples:
"jamf-cli/prod/client-secret" -> service="jamf-cli", account="prod/client-secret" "prod/client-secret" -> service="jamf-cli", account="prod/client-secret"
Types ¶
Click to show internal directories.
Click to hide internal directories.