sql

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDAO

func NewDAO(db *gorm.DB) key.DAO

Types

type UserKey

type UserKey struct {
	Owner        string `gorm:"primaryKey; column:owner; type:varchar(255) not null;index:,composite:ow;"`
	ID           string `gorm:"primaryKey; column:key_id;type:varchar(255) not null;"`
	Label        string `gorm:"column:key_label;type:varchar(255);"`
	Content      string `gorm:"column:key_data;type:varchar(255)"`
	Info         []byte `gorm:"column:key_info"`
	Version      int    `gorm:"column:version"`
	CreationDate int32  `gorm:"column:creation_date"`
}

func (*UserKey) As

func (u *UserKey) As(res *encryption.Key) *encryption.Key

func (*UserKey) From

func (u *UserKey) From(res *encryption.Key) *UserKey

Jump to

Keyboard shortcuts

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