Documentation ¶
Index ¶
- Constants
- type BasicUser
- type FieldCipherInput
- type FieldDecipherInput
- type GPGAddPrivateKeyReturn
- type GPGDecryptData
- type GPGDecryptedData
- type GPGDeletePrivateKeyReturn
- type GPGEncryptData
- type GPGGenerateKeyData
- type GPGKey
- type GPGKeyUid
- type GPGSignData
- type GPGUnlockKeyData
- type GPGVerifySignatureData
- type GPGVerifySignatureDataNonQuanto
- type KeyInfo
- type KeyRingAddPrivateKeyData
- type KeyRingDeletePrivateKeyData
- type SKSAddKey
- type User
- type UserToken
- func (ut *UserToken) GetCreatedAt() time.Time
- func (ut *UserToken) GetFingerPrint() string
- func (ut *UserToken) GetFingerprint() string
- func (ut *UserToken) GetFullName() string
- func (ut *UserToken) GetId() string
- func (ut *UserToken) GetToken() string
- func (ut *UserToken) GetUserdata() interface{}
- func (ut *UserToken) GetUsername() string
Constants ¶
View Source
const ( MimeJSON = "application/json" MimeText = "text/plain" MimeHTML = "text/html" )
View Source
const DefaultPageEnd = 100
View Source
const DefaultPageStart = 0
View Source
const DefaultValue = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicUser ¶
type BasicUser struct { ID string FingerPrint string Username string FullName string CreatedAt time.Time }
func (*BasicUser) GetCreatedAt ¶
func (*BasicUser) GetFingerPrint ¶
func (*BasicUser) GetFullName ¶
func (*BasicUser) GetUserdata ¶
func (bu *BasicUser) GetUserdata() interface{}
func (*BasicUser) GetUsername ¶
type FieldCipherInput ¶
type FieldDecipherInput ¶
type GPGAddPrivateKeyReturn ¶
type GPGDecryptData ¶
type GPGDecryptedData ¶
type GPGDeletePrivateKeyReturn ¶
type GPGDeletePrivateKeyReturn struct {
Status string `example:"OK"`
}
type GPGEncryptData ¶
type GPGGenerateKeyData ¶
type GPGKey ¶
type GPGKey struct { ID string `json:"id,omitempty"` FullFingerprint string `example:"0551F452ABE463A4"` Names []string `example:"Remote Signer Test"` Emails []string `example:"test@quan.to"` KeyUids []GPGKeyUid KeyBits int `example:"3072"` Subkeys []string `example:""` AsciiArmoredPublicKey string `` /* 2555-byte string literal not displayed */ AsciiArmoredPrivateKey string `example:""` ParentKey *GPGKey }
func AsciiArmored2GPGKey ¶
func (*GPGKey) GetShortFingerPrint ¶
type GPGSignData ¶
type GPGUnlockKeyData ¶
type GPGVerifySignatureData ¶
type GPGVerifySignatureDataNonQuanto ¶ added in v1.5.0
type GPGVerifySignatureDataNonQuanto struct { Base64Data string `example:"SGVsbG8gd29ybGQK"` Signature string `` /* 651-byte string literal not displayed */ }
Used only for documentation
type KeyRingDeletePrivateKeyData ¶
type KeyRingDeletePrivateKeyData struct {
FingerPrint string `example:"0551F452ABE463A4"`
}
type SKSAddKey ¶
type SKSAddKey struct {
PublicKey string `` /* 2555-byte string literal not displayed */
}
type User ¶ added in v1.4.0
type User struct { ID string `json:"id,omitempty"` Fingerprint string Username string Password string FullName string CreatedAt time.Time }
func (User) GetCreatedAt ¶ added in v1.4.0
GetCreatedAt returns when the user was created
func (User) GetFingerprint ¶ added in v1.4.0
GetFingerprint returns the user key fingerprint
func (User) GetFullName ¶ added in v1.4.0
GetFullName returns the user full name
func (User) GetUserdata ¶ added in v1.4.0
func (u User) GetUserdata() interface{}
GetUserdata returns the raw user data
func (User) GetUsername ¶ added in v1.4.0
GetUsername returns the username
type UserToken ¶
type UserToken struct { ID string `json:"id,omitempty"` Fingerprint string Username string Fullname string Token string CreatedAt time.Time Expiration time.Time }
func (*UserToken) GetCreatedAt ¶
func (*UserToken) GetFingerPrint ¶
GetFingerPrint returns the user key fingerprint
func (*UserToken) GetFingerprint ¶ added in v1.4.0
func (*UserToken) GetFullName ¶
func (*UserToken) GetUserdata ¶
func (ut *UserToken) GetUserdata() interface{}
func (*UserToken) GetUsername ¶
Source Files ¶
- BasicUser.go
- FieldCipherInput.go
- FieldDecipherInput.go
- GPGAddPrivateKeyReturn.go
- GPGDecryptData.go
- GPGDecryptedDataReturn.go
- GPGDeletePrivateKeyReturn.go
- GPGEncryptData.go
- GPGGenerateKeyData.go
- GPGKey.go
- GPGKeyUid.go
- GPGSignData.go
- GPGUnlockKey.go
- GPGVerifySignatureData.go
- KeyInfo.go
- KeyRingAddPrivateKeyData.go
- KeyRingDeletePrivateKeyData.go
- SKSAddKey.go
- UserModel.go
- UserToken.go
- mimeTypes.go
Click to show internal directories.
Click to hide internal directories.