Files
picoclaw/pkg/providers/azure/identity_stub.go
T
Kunal Karmakar 46e5b59d5f Fix linting
2026-05-30 14:11:39 +00:00

25 lines
836 B
Go

//go:build !azidentity
// Stub for the Entra ID auth path when built without the azidentity tag.
// Mirrors the exported surface of identity.go so callers compile cleanly
// in the default build.
package azure
import "fmt"
const azidentityBuildHint = "azure identity auth not available: build with -tags azidentity to enable Entra ID auth, or set api_key"
// NewProviderWithIdentity returns an error in the default build.
func NewProviderWithIdentity(apiBase, proxy, userAgent string, opts ...Option) (*Provider, error) {
return nil, fmt.Errorf("%s", azidentityBuildHint)
}
// NewProviderWithIdentityAndTimeout returns an error in the default build.
func NewProviderWithIdentityAndTimeout(
apiBase, proxy, userAgent string,
requestTimeoutSeconds int,
) (*Provider, error) {
return nil, fmt.Errorf("%s", azidentityBuildHint)
}