mock

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock provides an in-memory implementation of a secret store suitable for unit testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	Signatures map[string]string
}

Signer implements an in-memory signer for testing.

func NewSigner

func NewSigner() *Signer

func (*Signer) Connect

func (s *Signer) Connect(ctx context.Context) error

func (*Signer) Sign

func (s *Signer) Sign(ctx context.Context, ref string) error

func (*Signer) Verify

func (s *Signer) Verify(ctx context.Context, ref string) error

Jump to

Keyboard shortcuts

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