credentials

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package credentials keeps the token `agni login` gets from each server, by the server's URL, in the user's config folder (agni issue 1772). The file holds one line per server, its URL, a space and the token, and is readable by its owner alone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File() (string, error)

File is where the tokens are kept. AGNI_CONFIG_DIR moves it, for a test.

func Save

func Save(server, token string) (string, error)

Save keeps token for server, and returns the file it is in.

func Token

func Token(server string) string

Token is the token kept for server, or "" for none or an unreadable file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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