invite

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInviteNotFound = redis.Nil
)

Functions

func GenerateInviteSecret

func GenerateInviteSecret() (string, error)

GenerateInviteSecret returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

Types

type ProjectInviteStore

type ProjectInviteStore interface {
	SetInvite(ctx context.Context, invite *apiv2.ProjectInvite) error
	GetInvite(ctx context.Context, secret string) (*apiv2.ProjectInvite, error)
	ListInvites(ctx context.Context, projectID string) ([]*apiv2.ProjectInvite, error)
	DeleteInvite(ctx context.Context, invite *apiv2.ProjectInvite) error
}

func NewProjectRedisStore

func NewProjectRedisStore(client *redis.Client) ProjectInviteStore

type TenantInviteStore

type TenantInviteStore interface {
	SetInvite(ctx context.Context, invite *apiv2.TenantInvite) error
	GetInvite(ctx context.Context, secret string) (*apiv2.TenantInvite, error)
	ListInvites(ctx context.Context, login string) ([]*apiv2.TenantInvite, error)
	DeleteInvite(ctx context.Context, invite *apiv2.TenantInvite) error
}

func NewTenantRedisStore

func NewTenantRedisStore(client *redis.Client) TenantInviteStore

Jump to

Keyboard shortcuts

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