view

package
v1.87.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthNKeyByID

func AuthNKeyByID(db *gorm.DB, table string, keyID string) (*model.AuthNKeyView, error)

func AuthNKeyByIDs

func AuthNKeyByIDs(db *gorm.DB, table, objectID, keyID string) (*model.AuthNKeyView, error)

func AuthNKeysByObjectID

func AuthNKeysByObjectID(db *gorm.DB, table string, objectID string) ([]*model.AuthNKeyView, error)

func DeleteAuthNKey

func DeleteAuthNKey(db *gorm.DB, table, keyID string) error

func DeleteAuthNKeysByObjectID

func DeleteAuthNKeysByObjectID(db *gorm.DB, table, objectID string) error

func DeleteKey

func DeleteKey(db *gorm.DB, table, keyID string, private bool) error

func DeleteKeyPair

func DeleteKeyPair(db *gorm.DB, table, keyID string) error

func GetActivePublicKeys

func GetActivePublicKeys(db *gorm.DB, table string) ([]*model.KeyView, error)

func GetSigningKey

func GetSigningKey(db *gorm.DB, table string, expiry time.Time) (*model.KeyView, error)

func KeyByIDAndType

func KeyByIDAndType(db *gorm.DB, table, keyID string, private bool) (*model.KeyView, error)

func KeyPairQuery

func KeyPairQuery(latestSequence uint64) *eventstore.SearchQueryBuilder

func PutAuthNKey

func PutAuthNKey(db *gorm.DB, table string, role *model.AuthNKeyView) error

func PutKeys

func PutKeys(db *gorm.DB, table string, privateKey, publicKey *model.KeyView) error

func SearchAuthNKeys

func SearchAuthNKeys(db *gorm.DB, table string, req *key_model.AuthNKeySearchRequest) ([]*model.AuthNKeyView, uint64, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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