principal

package
v0.0.0-...-9ccd474 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextInstanceUUID

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

func ContextWithInstanceUUID

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

func ContextWithLocalID

func ContextWithLocalID(ctx context.Context) context.Context

ContextWithLocalID returns a context for local access.

func MustContextInstanceUUID

func MustContextInstanceUUID(ctx context.Context) [16]byte

Types

type ID

type ID = internal.ID

func ContextID

func ContextID(ctx context.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