config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDir

func DefaultDir() string

Types

type Credentials

type Credentials struct {
	Token   string `json:"token,omitempty"`
	BaseURL string `json:"base_url,omitempty"`
}

type Store

type Store struct {
	Dir         string
	AuthBackend string
	// contains filtered or unexported fields
}

func NewStore

func NewStore(dir string) *Store

func (*Store) AuthBackendName added in v0.3.0

func (s *Store) AuthBackendName() string

func (*Store) ClearCredentials

func (s *Store) ClearCredentials() error

func (*Store) CredentialsPath

func (s *Store) CredentialsPath() string

func (*Store) LoadCredentials

func (s *Store) LoadCredentials() (Credentials, error)

func (*Store) SaveCredentials

func (s *Store) SaveCredentials(credentials Credentials) error

Jump to

Keyboard shortcuts

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