agentauth

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapSnapshot

type BootstrapSnapshot struct {
	MasterInstanceID string
	Capabilities     []string
	SigningKeys      []pkgagentauth.PublicKey
}

type Cache

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

func NewCache

func NewCache(client ControlClient, opts CacheOptions) *Cache

func (*Cache) Bootstrap

func (c *Cache) Bootstrap() BootstrapSnapshot

func (*Cache) CachedForwardTicket

func (c *Cache) CachedForwardTicket() (pkgagentauth.ForwardTicket, error)

func (*Cache) Close

func (c *Cache) Close()

func (*Cache) Done

func (c *Cache) Done() <-chan struct{}

func (*Cache) RelayTicket

func (c *Cache) RelayTicket(ctx context.Context, desiredGeneration uint64) (pkgagentauth.RelayTicket, error)

func (*Cache) Run

func (c *Cache) Run(ctx context.Context) error

type CacheOptions

type CacheOptions struct {
	Now                  func() time.Time
	RelayRefreshFraction float64
	ForwardRefreshAfter  time.Duration
}

type ControlClient

type ControlClient interface {
	Call(ctx context.Context, method string, params any) (json.RawMessage, error)
}

Jump to

Keyboard shortcuts

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