Documentation ¶
Index ¶
- func GenerateFakeAdsCertRecordForTesting(adscertCallsign string) string
- func GenerateFakeKeyPairFromDomainNameForTesting(adscertCallsign string) ([32]byte, [32]byte)
- func GenerateFakePrivateKeysForTesting(adscertCallsign string) []string
- func GetSignatures(response *api.AuthenticatedConnectionSignatureResponse) []string
- func SetRequestInfo(requestInfo *api.RequestInfo, url string, body []byte) error
- func SetRequestSignatures(requestInfo *api.RequestInfo, signatures []string)
- type AuthenticatedConnectionsSignatory
- type AuthenticatedConnectionsSignatoryClient
- func (sc *AuthenticatedConnectionsSignatoryClient) SignAuthenticatedConnection(request *api.AuthenticatedConnectionSignatureRequest) (*api.AuthenticatedConnectionSignatureResponse, error)
- func (sc *AuthenticatedConnectionsSignatoryClient) VerifyAuthenticatedConnection(request *api.AuthenticatedConnectionVerificationRequest) (*api.AuthenticatedConnectionVerificationResponse, error)
- type AuthenticatedConnectionsSignatoryClientOptions
- type LocalAuthenticatedConnectionsSignatory
- func (s *LocalAuthenticatedConnectionsSignatory) IsHealthy() bool
- func (s *LocalAuthenticatedConnectionsSignatory) SignAuthenticatedConnection(request *api.AuthenticatedConnectionSignatureRequest) (*api.AuthenticatedConnectionSignatureResponse, error)
- func (s *LocalAuthenticatedConnectionsSignatory) VerifyAuthenticatedConnection(request *api.AuthenticatedConnectionVerificationRequest) (*api.AuthenticatedConnectionVerificationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSignatures ¶
func GetSignatures(response *api.AuthenticatedConnectionSignatureResponse) []string
func SetRequestInfo ¶
func SetRequestInfo(requestInfo *api.RequestInfo, url string, body []byte) error
func SetRequestSignatures ¶ added in v0.16.0
func SetRequestSignatures(requestInfo *api.RequestInfo, signatures []string)
Types ¶
type AuthenticatedConnectionsSignatory ¶
type AuthenticatedConnectionsSignatory interface { SignAuthenticatedConnection(request *api.AuthenticatedConnectionSignatureRequest) (*api.AuthenticatedConnectionSignatureResponse, error) VerifyAuthenticatedConnection(request *api.AuthenticatedConnectionVerificationRequest) (*api.AuthenticatedConnectionVerificationResponse, error) }
func NewAuthenticatedConnectionsSignatoryClient ¶ added in v0.7.0
func NewAuthenticatedConnectionsSignatoryClient(conn *grpc.ClientConn, options *AuthenticatedConnectionsSignatoryClientOptions) AuthenticatedConnectionsSignatory
type AuthenticatedConnectionsSignatoryClient ¶ added in v0.7.0
type AuthenticatedConnectionsSignatoryClient struct {
// contains filtered or unexported fields
}
func (*AuthenticatedConnectionsSignatoryClient) SignAuthenticatedConnection ¶ added in v0.7.0
func (sc *AuthenticatedConnectionsSignatoryClient) SignAuthenticatedConnection(request *api.AuthenticatedConnectionSignatureRequest) (*api.AuthenticatedConnectionSignatureResponse, error)
func (*AuthenticatedConnectionsSignatoryClient) VerifyAuthenticatedConnection ¶ added in v0.7.0
func (sc *AuthenticatedConnectionsSignatoryClient) VerifyAuthenticatedConnection(request *api.AuthenticatedConnectionVerificationRequest) (*api.AuthenticatedConnectionVerificationResponse, error)
type AuthenticatedConnectionsSignatoryClientOptions ¶ added in v0.7.0
type LocalAuthenticatedConnectionsSignatory ¶ added in v0.22.0
type LocalAuthenticatedConnectionsSignatory struct {
// contains filtered or unexported fields
}
func NewLocalAuthenticatedConnectionsSignatory ¶
func NewLocalAuthenticatedConnectionsSignatory( originCallsign string, reader io.Reader, clock clock.Clock, dnsResolver discovery.DNSResolver, domainStore discovery.DomainStore, domainCheckInterval time.Duration, domainRenewalInterval time.Duration, base64PrivateKeys []string) *LocalAuthenticatedConnectionsSignatory
func (*LocalAuthenticatedConnectionsSignatory) IsHealthy ¶ added in v0.22.0
func (s *LocalAuthenticatedConnectionsSignatory) IsHealthy() bool
func (*LocalAuthenticatedConnectionsSignatory) SignAuthenticatedConnection ¶ added in v0.22.0
func (s *LocalAuthenticatedConnectionsSignatory) SignAuthenticatedConnection(request *api.AuthenticatedConnectionSignatureRequest) (*api.AuthenticatedConnectionSignatureResponse, error)
func (*LocalAuthenticatedConnectionsSignatory) VerifyAuthenticatedConnection ¶ added in v0.22.0
func (s *LocalAuthenticatedConnectionsSignatory) VerifyAuthenticatedConnection(request *api.AuthenticatedConnectionVerificationRequest) (*api.AuthenticatedConnectionVerificationResponse, error)
Click to show internal directories.
Click to hide internal directories.