gemini

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package gemini implements the Gemini CLI OAuth usage provider.

Auth: Gemini CLI OAuth credentials from ~/.gemini/oauth_creds.json. Endpoints: Google Cloud Code private quota APIs used by Gemini CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider fetches Gemini quota data.

func (Provider) BrandBg

func (Provider) BrandBg() string

BrandBg returns the background color used on button faces. Dark blue-black to complement the Google-blue accent, replacing the previous purple-tinted bg that came with the CodexBar palette.

func (Provider) BrandColor

func (Provider) BrandColor() string

BrandColor returns the accent color used on button faces. Picks the blue stop from the Gemini spark gradient (Google blue #4285f4), matching Google's wordmark presentation. CodexBar uses #ab87ea (purple), which was a different stop from the same gradient — we diverge here because the rest of Gemini's surface (logo, web UI) reads as blue/multicolor, not purple.

func (Provider) Fetch

Fetch returns the latest Gemini quota snapshot.

func (Provider) ID

func (Provider) ID() string

ID returns the provider identifier used by the registry.

func (Provider) MetricIDs

func (Provider) MetricIDs() []string

MetricIDs enumerates the metrics this provider can emit.

func (Provider) Name

func (Provider) Name() string

Name returns the human-readable provider name.

Jump to

Keyboard shortcuts

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