Documentation
¶
Overview ¶
Package signin signs in to model providers with each vendor's own tool (gcloud, ant, aws, az), for the Blitz service, so the credentials land where the service reads them. It adds to API keys, never replaces them: a provider set up with a key keeps it.
Index ¶
Constants ¶
const ( Google = "google" // Gemini and Claude on Vertex AI (auth = "adc") Anthropic = "anthropic" // a Claude Console account (auth = "oauth") AWS = "aws" // Claude on Amazon Bedrock Azure = "azure" // Azure OpenAI and Claude on Azure (auth = "entra") )
The providers Blitz signs in to.
Variables ¶
var ( // ErrUnknownProvider is a provider Blitz doesn't sign in to. ErrUnknownProvider = errors.New("unknown provider: use google, anthropic, aws or azure") // ErrBadProfile is a profile name that isn't one. ErrBadProfile = errors.New("a profile is letters, digits, '.', '_' and '-' (at most 64)") // ErrNoTool is a vendor tool that isn't installed. ErrNoTool = errors.New("isn't installed") // ErrRunning is a sign-in to a provider already under way. ErrRunning = errors.New("a sign-in to it is already under way") )
Providers are the providers, in the order they're shown.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Line, URL, Code string
}
Event is a line the vendor's tool printed, with the sign-in page's URL and a device code when the line has them.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner runs sign-ins and sign-outs, one per provider at a time.