auth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package auth resolves token-only authentication for GitVerse CLI commands.

Index

Constants

View Source
const DefaultBaseURL = "https://api.gitverse.ru"

Variables

View Source
var ErrMissingToken = errors.New("missing GitVerse token")

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	LoginName string
	BaseURL   string
	Token     string
}

Credentials are the resolved SDK authentication settings.

func Resolve

func Resolve(opts Options) (Credentials, error)

Resolve returns token credentials from explicit options, environment, and config.

type Options

type Options struct {
	ConfigPath      string
	LoginName       string
	BaseURLOverride string
	TokenOverride   string
}

Options controls token and base URL resolution.

Source Files

  • auth.go
  • doc.go

Jump to

Keyboard shortcuts

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