helpers

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModelIDForTenant

func GetModelIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)

func GetStoreIDForTenant

func GetStoreIDForTenant(ctx context.Context, client openfgav1.OpenFGAServiceClient, tenantID string) (string, error)

func IsDuplicateWriteError

func IsDuplicateWriteError(err error) bool

func SanitizeUserID added in v0.62.0

func SanitizeUserID(userID string) string

Sanitizes the userID by replacing all colons with underscores to also enable the use of kubernetes service accounts

Types

This section is empty.

Jump to

Keyboard shortcuts

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