storage

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServiceName = "initiat-cli"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New() *Storage

func NewWithServiceName

func NewWithServiceName(serviceName string) *Storage

func (*Storage) ClearDeviceCredentials

func (s *Storage) ClearDeviceCredentials() error

func (*Storage) DeleteDeviceID

func (s *Storage) DeleteDeviceID() error

func (*Storage) DeleteEncryptionPrivateKey

func (s *Storage) DeleteEncryptionPrivateKey() error

func (*Storage) DeleteSigningPrivateKey

func (s *Storage) DeleteSigningPrivateKey() error

func (*Storage) DeleteToken

func (s *Storage) DeleteToken() error

func (*Storage) GetDeviceID

func (s *Storage) GetDeviceID() (string, error)

func (*Storage) GetEncryptionPrivateKey

func (s *Storage) GetEncryptionPrivateKey() ([]byte, error)

func (*Storage) GetSigningPrivateKey

func (s *Storage) GetSigningPrivateKey() (ed25519.PrivateKey, error)

func (*Storage) GetToken

func (s *Storage) GetToken() (string, error)

func (*Storage) HasDeviceID

func (s *Storage) HasDeviceID() bool

func (*Storage) HasEncryptionPrivateKey

func (s *Storage) HasEncryptionPrivateKey() bool

func (*Storage) HasSigningPrivateKey

func (s *Storage) HasSigningPrivateKey() bool

func (*Storage) HasToken

func (s *Storage) HasToken() bool

func (*Storage) StoreDeviceID

func (s *Storage) StoreDeviceID(deviceID string) error

func (*Storage) StoreEncryptionPrivateKey

func (s *Storage) StoreEncryptionPrivateKey(privateKey []byte) error

func (*Storage) StoreSigningPrivateKey

func (s *Storage) StoreSigningPrivateKey(privateKey ed25519.PrivateKey) error

func (*Storage) StoreToken

func (s *Storage) StoreToken(token string) error

Jump to

Keyboard shortcuts

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