auth

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package auth provides authentication checking for AI model providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
}

Checker checks authentication status for providers.

func NewChecker

func NewChecker() *Checker

NewChecker creates a new authentication checker.

func (*Checker) CheckGCloud

func (c *Checker) CheckGCloud() *GCloudStatus

CheckGCloud checks Google Cloud authentication status.

func (*Checker) CheckProvider

func (c *Checker) CheckProvider(provider *catalogs.Provider, supportedMap map[string]bool) *Status

CheckProvider checks the authentication status of a provider.

type GCloudStatus

type GCloudStatus struct {
	Authenticated     bool
	Project           string
	Location          string
	HasVertexProvider bool
}

GCloudStatus represents Google Cloud authentication status.

type State

type State int

State represents the authentication state of a provider.

const (
	// StateConfigured means the provider has credentials configured.
	StateConfigured State = iota
	// StateMissing means required credentials are missing.
	StateMissing
	// StateOptional means the provider has optional or no auth requirements.
	StateOptional
	// StateUnsupported means the provider has no client implementation.
	StateUnsupported
)

type Status

type Status struct {
	State   State
	Details string
}

Status represents the authentication status of a provider.

Jump to

Keyboard shortcuts

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