id

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Grant

func Grant(agentID, itemID string) string

func NewApproval

func NewApproval() (string, error)

NewApproval is a random approval row id.

func NewGroup

func NewGroup() (string, error)

NewGroup is a random group row id. The name is the org-scoped handle.

func NewItem

func NewItem() (string, error)

NewItem is a random Infisical-style id. Display names are not ids.

func NewOrg

func NewOrg() (string, error)

NewOrg is a uuid v4 — the same join-key shape Kratos organization_id and the Keto object use.

func NewRequest

func NewRequest() (string, error)

NewRequest is a random approval-request row id — names must survive same-nanosecond files and clock rewinds, so time is not the entropy.

func NewSession

func NewSession() (string, error)

NewSession is a random row id for a sandbox session. Not the bearer token.

func Principal

func Principal(s string) bool

Principal is an agent name or a Kratos identity UUID.

func UUID

func UUID(s string) bool

func Valid

func Valid(s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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