Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseID ¶ added in v0.3.0
ParseID parses "https://myvaultname.vault.azure.net/keys/key1053998307/b86c2e6ad9054f4abf69cc185b99aa60" into "https://myvaultname.managedhsm.azure.net/", "key1053998307", and "b86c2e6ad9054f4abf69cc185b99aa60"
Types ¶
type AcquireResource ¶
type AcquireResource func(state interface{}) (newResource interface{}, newExpiration time.Time, err error)
AcquireResource abstracts a method for refreshing an expiring resource.
type ExpiringResource ¶
type ExpiringResource struct {
// contains filtered or unexported fields
}
ExpiringResource is a temporal resource (usually a credential), that requires periodic refreshing.
func NewExpiringResource ¶
func NewExpiringResource(ar AcquireResource) *ExpiringResource
NewExpiringResource creates a new ExpiringResource that uses the specified AcquireResource for refreshing.
func (*ExpiringResource) GetResource ¶
func (er *ExpiringResource) GetResource(state interface{}) (interface{}, error)
GetResource returns the underlying resource. If the resource is fresh, no refresh is performed.
func (*ExpiringResource) Reset ¶
func (er *ExpiringResource) Reset()
type KeyVaultChallengePolicy ¶
type KeyVaultChallengePolicy struct {
// contains filtered or unexported fields
}
func NewKeyVaultChallengePolicy ¶
func NewKeyVaultChallengePolicy(cred azcore.TokenCredential) *KeyVaultChallengePolicy