webhook

package
v1.0.0-letsencrypt Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package webhook wraps Let's Encrypt custom producer with HTTP API. It exposes 2 endpoints: `/sync/create` and `/sync/revoke`. These endpoints implement Akeyless Custom Producer protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(p producer.Producer, opts ...Option) (http.Handler, error)

New creates a new handler using the provided configuration. The returned handler can be used to serve Akeyless Custom Producer requests to generate Let's Encrypt certificates.

Types

type Option

type Option func(*hook)

Option is a single configuration parameter used by this webhook.

func WithAllowedAccessID

func WithAllowedAccessID(accessID string) Option

WithAllowedAccessID configures this webhook to accept requests only made by a producer with the provided access ID.

func WithAllowedItemName

func WithAllowedItemName(name string) Option

WithAllowedItemName configures this webhook to accept requests only made by a producer with the provided name.

Jump to

Keyboard shortcuts

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