webhookscommon

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
}

type KeyProvider

type KeyProvider interface {
	PublicKeyForSerial(context.Context, string) (ed25519.PublicKey, error)
}

type KeyProviderCache

type KeyProviderCache struct {
	Inner KeyProvider
	// contains filtered or unexported fields
}

func (*KeyProviderCache) PublicKeyForSerial

func (k *KeyProviderCache) PublicKeyForSerial(ctx context.Context, s string) (ed25519.PublicKey, error)

type KeyProviderMStudio

type KeyProviderMStudio struct {
	Client mittwaldv2.Client
}

func (*KeyProviderMStudio) PublicKeyForSerial

func (k *KeyProviderMStudio) PublicKeyForSerial(ctx context.Context, serial string) (ed25519.PublicKey, error)

type Verifier

type Verifier struct {
	KeyProvider KeyProvider
}

func (*Verifier) VerifyWebhookRequest

func (m *Verifier) VerifyWebhookRequest(ctx context.Context, request *http.Request, body []byte) error

Jump to

Keyboard shortcuts

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