principal

package
v0.0.0-...-6de12c4 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextInstanceUUID

func ContextInstanceUUID(ctx Context) (id [16]byte, ok bool)

func ContextWithInstanceUUID

func ContextWithInstanceUUID(ctx Context, id [16]byte) Context

func ContextWithLocalID

func ContextWithLocalID(ctx Context) Context

ContextWithLocalID returns a context for local access.

func MustContextInstanceUUID

func MustContextInstanceUUID(ctx Context) [16]byte

Types

type ID

type ID = internal.ID

func ContextID

func ContextID(ctx Context) *ID

ContextID returns the principal id, if any.

type Type

type Type = internal.Type
const (
	TypeLocal   Type = internal.TypeLocal
	TypeEd25519      = internal.TypeEd25519
)

Jump to

Keyboard shortcuts

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