msi

package
v0.0.0-...-c4e7759 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL