Versions in this module Expand all Collapse all v0 v0.12.6 Jul 26, 2023 v0.12.5 Feb 21, 2023 v0.12.4 Aug 15, 2022 v0.12.3 Aug 9, 2022 v0.12.2 Aug 9, 2022 v0.12.1 May 6, 2022 v0.12.0 Apr 27, 2022 v0.11.0 Mar 29, 2022 v0.10.3 Mar 7, 2022 v0.10.2 Feb 22, 2022 v0.10.1 Feb 18, 2022 v0.10.0 Feb 17, 2022 Changes in this version + var ErrTokenExists = errors.New("token already exists") + type LinkQueue interface + DeleteLinkRequest func(t Token) + InitLinkRequest func(t Token) + SendLinkRequest func(lt LinkTransport, lc chan *Link, l *Link) + ValidateLinkRequest func(t Token) bool + WaitLinkRequest func(t Token) (chan *Link, error) v0.9.2 Dec 16, 2021 v0.9.1 Dec 8, 2021 v0.9.0 Dec 6, 2021 Changes in this version + const LinkTimeout + var ErrCouldNotUnlinkKey = errors.New("could not unlink key") + var ErrMalformedKey = errors.New("malformed key; is it missing the algorithm type at the beginning?") + var ErrMissingSSHAuth = errors.New("missing ssh auth") + var ErrMissingUser = errors.New("no user found") + var ErrNameInvalid = errors.New("invalid name") + var ErrNameTaken = errors.New("name already taken") + var ErrPageOutOfBounds = errors.New("page must be a value of 1 or greater") + var ErrUserExists = errors.New("user already exists for that key") + func AddExecPermsForMkDir(mode fs.FileMode) fs.FileMode + func PublicKeySha(key string) string + type Auth struct + EncryptKeys []*EncryptKey + HTTPScheme string + ID string + JWT string + PublicKey string + type EncryptKey struct + CreatedAt *time.Time + ID string + Key string + PublicKey string + type ErrAuthFailed struct + Err error + func (e ErrAuthFailed) Error() string + func (e ErrAuthFailed) Unwrap() error + type FileInfo struct + Files []FileInfo + IsDir bool + ModTime time.Time + Mode fs.FileMode + Name string + Size int64 + type Keys struct + ActiveKey int + Keys []*PublicKey + type Link struct + Host string + Port int + RequestAddr string + RequestPubKey string + Status LinkStatus + Token Token + type LinkHandler interface + Error func(*Link) + InvalidToken func(*Link) + Request func(*Link) bool + RequestDenied func(*Link) + SameUser func(*Link) + Success func(*Link) + Timeout func(*Link) + TokenCreated func(*Link) + TokenSent func(*Link) + ValidToken func(*Link) + type LinkStatus int + const LinkStatusDifferentUser + const LinkStatusError + const LinkStatusInit + const LinkStatusInvalidTokenRequest + const LinkStatusRequestDenied + const LinkStatusRequested + const LinkStatusSameUser + const LinkStatusSuccess + const LinkStatusTimedOut + const LinkStatusTokenCreated + const LinkStatusTokenSent + const LinkStatusValidTokenRequest + type LinkTransport interface + Error func(*Link) + LinkedDifferentUser func(*Link) + LinkedSameUser func(*Link) + RequestDenied func(*Link) + RequestInvalidToken func(*Link) + RequestStart func(*Link) + RequestValidToken func(*Link) + Requested func(*Link) (bool, error) + Success func(*Link) + TimedOut func(*Link) + TokenCreated func(Token) + TokenSent func(*Link) + User func() *User + type Message struct + Message string + type News struct + Body string + CreatedAt time.Time + ID string + Subject string + Tag string + type PublicKey struct + CreatedAt *time.Time + ID int + Key string + UserID int + func (pk *PublicKey) Sha() string + type SeqMsg struct + Seq uint64 + type Token string + type UnlinkRequest struct + Key string + type User struct + Bio string + CharmID string + CreatedAt *time.Time + Email string + ID int + Name string + PublicKey *PublicKey