agentauth

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

func NewSigner

func NewSigner(
	ctx context.Context,
	store SigningKeyStore,
	instanceID string,
	opts SignerOptions,
) (*Signer, error)

func (*Signer) PublicKey

func (s *Signer) PublicKey() pkgagentauth.PublicKey

func (*Signer) SignForward

func (s *Signer) SignForward(sourceAgentID string) (pkgagentauth.ForwardTicket, time.Time, error)

func (*Signer) SignRelay

func (s *Signer) SignRelay(agentID string, generation uint64) (pkgagentauth.RelayTicket, time.Time, error)

func (*Signer) SignWelcome

func (s *Signer) SignWelcome(claims pkgagentauth.WelcomeProofClaims) ([]byte, error)

type SignerOptions

type SignerOptions struct {
	RelayTTL   time.Duration
	ForwardTTL time.Duration
	Now        func() time.Time
}

type SigningKeyStore

type SigningKeyStore interface {
	LoadOrCreateActive(ctx context.Context) (*models.MasterSigningKey, error)
}

Jump to

Keyboard shortcuts

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