Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch(ctx context.Context, logger *zap.Logger) (*azidentity.DefaultAzureCredential, error)
Fetch uses the Azure SDK method NewDefaultAzureCredential to walk the chain of authentication mechanisms to get a credential. If running in an Azure VM, it will use the identity assigned to the VM. If running locally, it will the identity you have logged into from your local environment. For more information, see: https://learn.microsoft.com/en-us/azure/developer/go/sdk/authentication/authentication-overview
Types ¶
type Config ¶
type Config struct {
ServicePrincipal *ServicePrincipalCredentials `` /* 160-byte string literal not displayed */
UseDefault bool `` /* 136-byte string literal not displayed */
}
Click to show internal directories.
Click to hide internal directories.