credential

package
v0.9.7-dev.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: GPL-3.0 Imports: 10 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 Load

func Load(path string) (string, error)

func LoadOrCreate

func LoadOrCreate(path string) (string, error)

func LoadOrCreateOwned added in v0.9.3

func LoadOrCreateOwned(ctx context.Context, layout platform.ResolvedLayout, lease *platform.OwnedDaemonLease) (string, error)

LoadOrCreateOwned is the daemon-only credential bootstrap. The outer owner must retain its daemon lease through listener and worker shutdown.

Types

type Provider added in v0.9.3

type Provider struct {
	// contains filtered or unexported fields
}

Provider reads the current Unix credential through verified read-only discovery.

func NewProvider added in v0.9.3

func NewProvider(locator platform.ControlLocator) *Provider

NewProvider does not open directories or create credentials.

func (*Provider) Load added in v0.9.3

func (p *Provider) Load(ctx context.Context) (string, error)

Load reads once, closes its complete discovery proof, and parses exact token bytes.

Jump to

Keyboard shortcuts

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