Versions in this module Expand all Collapse all v1 v1.1.10 Jan 27, 2026 v1.1.9 Jan 24, 2026 Changes in this version + var BedrockModelMapping = map[string]string + var DefaultEnvVars = map[string][]string + var ProviderHeaderConfig = map[string]struct{ ... } + func BedrockEndpoint(region string) string + func VertexEndpoint(project, region string) string + type APIKeyCredential struct + func NewAPIKeyCredential(apiKey string, opts ...APIKeyOption) *APIKeyCredential + func (c *APIKeyCredential) APIKey() string + func (c *APIKeyCredential) Apply(_ context.Context, req *http.Request) error + func (c *APIKeyCredential) Type() string + type APIKeyOption func(*APIKeyCredential) + func WithBearerPrefix() APIKeyOption + func WithHeaderName(name string) APIKeyOption + func WithPrefix(prefix string) APIKeyOption + type AWSCredential struct + func NewAWSCredential(ctx context.Context, region string) (*AWSCredential, error) + func NewAWSCredentialWithRole(ctx context.Context, region, roleARN string) (*AWSCredential, error) + func (c *AWSCredential) Apply(ctx context.Context, req *http.Request) error + func (c *AWSCredential) Config() aws.Config + func (c *AWSCredential) Region() string + func (c *AWSCredential) Type() string + type AzureCredential struct + func NewAzureCredential(ctx context.Context, endpoint string) (*AzureCredential, error) + func NewAzureCredentialWithClientSecret(ctx context.Context, endpoint, tenantID, clientID, clientSecret string) (*AzureCredential, error) + func NewAzureCredentialWithManagedIdentity(ctx context.Context, endpoint string, clientID *string) (*AzureCredential, error) + func (c *AzureCredential) Apply(ctx context.Context, req *http.Request) error + func (c *AzureCredential) Endpoint() string + func (c *AzureCredential) Type() string + type Credential interface + Apply func(ctx context.Context, req *http.Request) error + Type func() string + func MustResolve(ctx context.Context, cfg ResolverConfig) Credential + func Resolve(ctx context.Context, cfg ResolverConfig) (Credential, error) + type GCPCredential struct + func NewGCPCredential(ctx context.Context, project, region string) (*GCPCredential, error) + func NewGCPCredentialWithServiceAccount(ctx context.Context, project, region, keyFile string) (*GCPCredential, error) + func (c *GCPCredential) Apply(ctx context.Context, req *http.Request) error + func (c *GCPCredential) Project() string + func (c *GCPCredential) Region() string + func (c *GCPCredential) Type() string + type NoOpCredential struct + func (c *NoOpCredential) Apply(_ context.Context, _ *http.Request) error + func (c *NoOpCredential) Type() string + type ResolverConfig struct + ConfigDir string + CredentialConfig *config.CredentialConfig + PlatformConfig *config.PlatformConfig + ProviderType string