credentials

package
v0.7.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	Name     string `json:"name"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Profile stores a named credential.

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store manages named credential profiles with JSON persistence.

func LoadStore

func LoadStore(filePath string) *Store

LoadStore reads the credential store from disk.

func (*Store) Delete

func (s *Store) Delete(name string) error

Delete removes a credential profile.

func (*Store) Get

func (s *Store) Get(name string) (*Profile, error)

Get returns a credential profile by name.

func (*Store) List

func (s *Store) List() []string

List returns all profile names.

func (*Store) Set

func (s *Store) Set(p *Profile) error

Set adds or updates a credential profile.

Jump to

Keyboard shortcuts

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