packer-cn/builder/azure/common/client/tokenprovider.go

11 lines
269 B
Go

package client
import (
"github.com/Azure/go-autorest/autorest/adal"
)
type oAuthTokenProvider interface {
getServicePrincipalToken() (*adal.ServicePrincipalToken, error)
getServicePrincipalTokenWithResource(resource string) (*adal.ServicePrincipalToken, error)
}