Documentation
¶
Index ¶
- Constants
- type Storage
- func (s *Storage) ClearDeviceCredentials() error
- func (s *Storage) DeleteDeviceID() error
- func (s *Storage) DeleteEncryptionPrivateKey() error
- func (s *Storage) DeleteSigningPrivateKey() error
- func (s *Storage) DeleteToken() error
- func (s *Storage) GetDeviceID() (string, error)
- func (s *Storage) GetEncryptionPrivateKey() ([]byte, error)
- func (s *Storage) GetSigningPrivateKey() (ed25519.PrivateKey, error)
- func (s *Storage) GetToken() (string, error)
- func (s *Storage) HasDeviceID() bool
- func (s *Storage) HasEncryptionPrivateKey() bool
- func (s *Storage) HasSigningPrivateKey() bool
- func (s *Storage) HasToken() bool
- func (s *Storage) StoreDeviceID(deviceID string) error
- func (s *Storage) StoreEncryptionPrivateKey(privateKey []byte) error
- func (s *Storage) StoreSigningPrivateKey(privateKey ed25519.PrivateKey) error
- func (s *Storage) StoreToken(token string) error
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 NewWithServiceName ¶
func (*Storage) ClearDeviceCredentials ¶
func (*Storage) DeleteDeviceID ¶
func (*Storage) DeleteEncryptionPrivateKey ¶
func (*Storage) DeleteSigningPrivateKey ¶
func (*Storage) DeleteToken ¶
func (*Storage) GetDeviceID ¶
func (*Storage) GetEncryptionPrivateKey ¶
func (*Storage) GetSigningPrivateKey ¶
func (s *Storage) GetSigningPrivateKey() (ed25519.PrivateKey, error)
func (*Storage) HasDeviceID ¶
func (*Storage) HasEncryptionPrivateKey ¶
func (*Storage) HasSigningPrivateKey ¶
func (*Storage) StoreDeviceID ¶
func (*Storage) StoreEncryptionPrivateKey ¶
func (*Storage) StoreSigningPrivateKey ¶
func (s *Storage) StoreSigningPrivateKey(privateKey ed25519.PrivateKey) error
func (*Storage) StoreToken ¶
Click to show internal directories.
Click to hide internal directories.