Documentation
¶
Index ¶
- type Signer
- func (s *Signer) PublicKey() pkgagentauth.PublicKey
- func (s *Signer) SignForward(sourceAgentID string) (pkgagentauth.ForwardTicket, time.Time, error)
- func (s *Signer) SignRelay(agentID string, generation uint64) (pkgagentauth.RelayTicket, time.Time, error)
- func (s *Signer) SignWelcome(claims pkgagentauth.WelcomeProofClaims) ([]byte, error)
- type SignerOptions
- type SigningKeyStore
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 SigningKeyStore ¶
type SigningKeyStore interface {
LoadOrCreateActive(ctx context.Context) (*models.MasterSigningKey, error)
}
Click to show internal directories.
Click to hide internal directories.