empty

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 0 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 empty provides a no-operation token storage implementation. This package is used when authentication tokens are not required or when using API key-based authentication instead of OAuth tokens for any provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyStorage

type EmptyStorage struct {
	// Type indicates the authentication provider type, always "empty" for this implementation.
	Type string `json:"type"`
}

EmptyStorage is a no-operation implementation of the TokenStorage interface. It provides empty implementations for scenarios where token storage is not needed, such as when using API keys instead of OAuth tokens for authentication.

func (*EmptyStorage) SaveTokenToFile

func (ts *EmptyStorage) SaveTokenToFile(_ string) error

SaveTokenToFile is a no-operation implementation that always succeeds. This method satisfies the TokenStorage interface but performs no actual file operations since empty storage doesn't require persistent token data.

Parameters:

  • _: The file path parameter is ignored in this implementation

Returns:

  • error: Always returns nil (no error)

Jump to

Keyboard shortcuts

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