keyshares

package
v0.0.0-...-afa1830 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	ctx context.Context, exec boil.ContextExecutor,
	invitHash, share, encShare, boxID, creatorID string,
) error

Create a new keyshare

func EmptyAll

func EmptyAll(
	ctx context.Context, exec boil.ContextExecutor,
	boxID string,
) error

EmptyAll keyshares for a given box

Types

type BoxKeyShare

type BoxKeyShare struct {
	InvitationShareHash         string      `json:"invitation_share_hash"`
	Share                       string      `json:"misakey_share"`
	BoxID                       string      `json:"box_id"`
	EncryptedInvitationKeyShare null.String `json:"encrypted_invitation_key_share"`
	// contains filtered or unexported fields
}

BoxKeyShare model

func Get

func Get(
	ctx context.Context, exec boil.ContextExecutor,
	invitHash string,
) (ret BoxKeyShare, err error)

Get a keyshare from its invitHash

func GetLastForBoxID

func GetLastForBoxID(
	ctx context.Context, exec boil.ContextExecutor,
	boxID string,
) (*BoxKeyShare, error)

GetLastForBoxID returns the last keyShare of a given box

Jump to

Keyboard shortcuts

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