config

package
v0.1.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: 4 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
}

func NewStore

func NewStore(dir string) *Store

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