models

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CellKey

type CellKey struct {
	UserID           string
	DataID           string
	CPK              []byte
	EncryptedCskCms  []byte
	EncryptedCskBody []byte
}

type GrantKey

type GrantKey struct {
	UserID                string
	KeyID                 []byte
	RecordVersion         uint32
	EncryptedGrantKeyWrap []byte
	EncryptedGrantKeyBlob []byte
	CreationDate          uint64
	ExpirationDate        uint64
}

type PureGrant

type PureGrant struct {
	UKP            crypto.PrivateKey
	UserID         string
	SessionID      string
	CreationDate   time.Time
	ExpirationDate time.Time
}

type Role

type Role struct {
	RoleName string
	RPK      []byte
}

type RoleAssignment

type RoleAssignment struct {
	RoleName     string
	UserID       string
	PublicKeyID  []byte
	EncryptedRsk []byte
}

type UserRecord

type UserRecord struct {
	UserID               string
	PheRecord            []byte
	RecordVersion        uint32
	UPK                  []byte
	EncryptedUsk         []byte
	EncryptedUskBackup   []byte
	BackupPwdHash        []byte
	PasswordRecoveryWrap []byte
	PasswordRecoveryBlob []byte
}

Jump to

Keyboard shortcuts

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