Documentation ¶
Index ¶
- Constants
- func NewClientChallenge(kr keyring.Keyring, clientId string, logger *slog.Logger) (challenges.ChallengeHandler, error)
- func NewServerChallenge(verifier challenges.KeyringVerifier, logger *slog.Logger, ...) challenges.ChallengeHandler
- func ShouldEnableIncoming(streamContext context.Context) (bool, error)
- type ChallengeOption
- type ChallengeOptions
- type Client
- type Server
Constants ¶
View Source
const (
DomainString = "agent auth v2"
)
Variables ¶
This section is empty.
Functions ¶
func NewClientChallenge ¶
func NewClientChallenge(kr keyring.Keyring, clientId string, logger *slog.Logger) (challenges.ChallengeHandler, error)
func NewServerChallenge ¶
func NewServerChallenge(verifier challenges.KeyringVerifier, logger *slog.Logger, opts ...ChallengeOption) challenges.ChallengeHandler
Types ¶
type ChallengeOption ¶
type ChallengeOption func(*ChallengeOptions)
func WithChallengeTimeout ¶
func WithChallengeTimeout(challengeTimeout time.Duration) ChallengeOption
type ChallengeOptions ¶
type ChallengeOptions struct {
// contains filtered or unexported fields
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DoChallenge ¶
type Server ¶
type Server struct { ChallengeOptions // contains filtered or unexported fields }
func (*Server) DoChallenge ¶
Click to show internal directories.
Click to hide internal directories.