Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPrivateKeyFromEnvBase64 ¶
func LoadPrivateKeyFromEnvBase64(envKey string) (*ecdsa.PrivateKey, error)
LoadPrivateKeyFromEnvBase64 is a helper function to load a key from the environment in base64 format.
Types ¶
type Notarizer ¶
type Notarizer struct {
// contains filtered or unexported fields
}
Notarizer is the main struct for notarizing files.
type Options ¶
type Options struct { // InfoLogger will log information about the notarization process. No secrets. InfoLoggerf func(format string, a ...any) // Your issuer ID from the API Keys page in App Store Connect; for example, 57246542-96fe-1a63-e053-0824d011072a. IssuerID string // Your private key ID from App Store Connect. Kid string // Timeout waiting for the notarization to complete. // Defaults to 5 minutes. SubmissionTimeout time.Duration // The JWT signing token expires after this duration, // default is 20 minutes. TokenTimeout time.Duration // The signing function to use. // Return the result of token.SignedString(appStoreConnectPrivateKey) // where the private key is the one connected to the kid field. SignFunc func(token *jwt.Token) (string, error) }
Click to show internal directories.
Click to hide internal directories.