config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 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 Sealer

type Sealer struct {
	Secret string //nolint:gosec // intentional secret field
}

Sealer provides methods to seal and unseal webhook configurations.

func (Sealer) Seal

func (s Sealer) Seal(urlStr, tmplStr string) (string, error)

Seal takes a URL and a template string, encrypts them, and returns a token that can be used to retrieve the original values later.

func (Sealer) Unseal

func (s Sealer) Unseal(token string) (urlStr, tmplStr string, err error)

Unseal decodes the token and returns the original URL and template strings.

Jump to

Keyboard shortcuts

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