internal

package
v0.0.0-...-547d54e Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.1.0"

Functions

This section is empty.

Types

type CustomSigner

type CustomSigner struct{}

CustomSigner demonstrates a custom bundle signing implementation.

func (*CustomSigner) GenerateSignedToken

func (s *CustomSigner) GenerateSignedToken(files []bundle.FileInfo, sc *bundle.SigningConfig, keyID string) (string, error)

GenerateSignedToken demonstrates how to implement the bundle.Signer interface, for the purpose of creating custom bundle signing. Note: In this example, no actual signing is taking place, it simply demonstrates how one could begin a custom signing implementation.

type CustomVerifier

type CustomVerifier struct{}

CustomVerifier demonstrates a custom bundle verification implementation.

func (*CustomVerifier) VerifyBundleSignature

func (v *CustomVerifier) VerifyBundleSignature(sc bundle.SignaturesConfig, bvc *bundle.VerificationConfig) (map[string]bundle.FileInfo, error)

VerifyBundleSignature demonstrates how to implement the bundle.Verifier interface, for the purpose of creating custom bundle verification. Note: In this example, no actual verification is taking place, it simply demonstrates how one could begin a custom verification implementation.

Jump to

Keyboard shortcuts

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