agentauth

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 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) CachedForwardCredential added in v0.0.14

func (c *Cache) CachedForwardCredential() (ForwardCredential, 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)
}

type ForwardCredential added in v0.0.14

type ForwardCredential struct {
	Ticket    pkgagentauth.ForwardTicket
	ExpiresAt time.Time
}

type ForwardCredentialReader added in v0.0.14

type ForwardCredentialReader interface {
	CachedForwardCredential() (ForwardCredential, error)
}

Jump to

Keyboard shortcuts

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