Documentation
¶
Index ¶
- type Store
- func (s *Store) AccountByToken(token string) (*store.Account, error)
- func (s *Store) AddBytes(accountID string, n int64)
- func (s *Store) AddPushes(accountID string, n int)
- func (s *Store) ApproveDeviceCode(userCode, accountID string) error
- func (s *Store) AuthenticateV1(string, string, string, bool) (*store.Host, error)
- func (s *Store) AuthenticateV2(id, name string, pub []byte, _, _, _ bool) (*store.Host, error)
- func (s *Store) Ban(id string, banned bool) error
- func (s *Store) Close()
- func (s *Store) ConsumeDeviceCode(deviceCode string) (*store.Account, string, error)
- func (s *Store) Count() int
- func (s *Store) CreateCLIToken(accountID string) (string, error)
- func (s *Store) CreateDeviceCode(userCode, deviceCode string, ttl time.Duration) (*store.DeviceCode, error)
- func (s *Store) Flush() error
- func (s *Store) ListHosts(accountID string) ([]*store.Host, error)
- func (s *Store) Lookup(id string) (*store.Host, bool)
- func (s *Store) LookupDeviceCode(deviceCode string) (*store.DeviceCode, error)
- func (s *Store) LookupUserCode(userCode string) (*store.DeviceCode, error)
- func (s *Store) QuotaFor(accountID string) store.Quota
- func (s *Store) RegisterHost(accountID, id, name string, pub []byte, bundleID string) (*store.Host, error)
- func (s *Store) RotateEd25519(string, []byte) error
- func (s *Store) SetNode(id, nodeID string) error
- func (s *Store) SetQuotaDefaults(q store.Quota)
- func (s *Store) TouchSeen(id, name string) error
- func (s *Store) UpsertAccount(provider, providerID, login string) (*store.Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ApproveDeviceCode ¶
func (*Store) AuthenticateV1 ¶
func (*Store) AuthenticateV2 ¶
func (*Store) ConsumeDeviceCode ¶
func (*Store) CreateDeviceCode ¶
func (*Store) LookupDeviceCode ¶
func (s *Store) LookupDeviceCode(deviceCode string) (*store.DeviceCode, error)
func (*Store) LookupUserCode ¶
func (s *Store) LookupUserCode(userCode string) (*store.DeviceCode, error)
func (*Store) RegisterHost ¶
func (*Store) SetQuotaDefaults ¶
Click to show internal directories.
Click to hide internal directories.