Documentation ¶
Overview ¶
Package msi provides authentication methods using Microsoft Service Identities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Token ¶
func Token(authMethod AuthMethod) (*azblob.TokenCredential, error)
Token fetches an azblob.TokenCredential that can be used to access blob storage using MSI.
Types ¶
type AppID ¶
type AppID struct { // ID is the application's managed system identity. ID string // Resource is the resource you will be accessing. If not set this defaults // to "https://storage.azure.com/". Resource string }
AppID implements AuthMethod when you wish to use a application MSI to authenticate to Blob storage.
type AuthMethod ¶
type AuthMethod interface {
// contains filtered or unexported methods
}
AuthMethod represents an MSI authentication method for the Token() call.
type ResourceID ¶
type ResourceID struct { // ID is the resource's managed system identity. ID string // Resource is the resource you will be accessing. If not set this defaults // to "https://storage.azure.com/". Resource string }
ResourceID implements AuthMethod when you wish to use a resource MSI to authenticate to Blob storage.
type SystemAssigned ¶
type SystemAssigned struct { // Resource is the resource you will be accessing. If not set this defaults // to "https://storage.azure.com/". Resource string }
SystemAssigned implements AuthMethod when you wish to use a system MSI to authenticate to Blob storage.
Click to show internal directories.
Click to hide internal directories.