Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRegistry

type FakeRegistry struct {
	AddClientFunc    func(uid string, config cmacme.ACMEIssuer, privateKey *rsa.PrivateKey)
	RemoveClientFunc func(uid string)
	GetClientFunc    func(uid string) (acmecl.Interface, error)
	ListClientsFunc  func() map[string]acmecl.Interface
}

FakeRegistry implements the accounts.Registry interface using stub functions

func (*FakeRegistry) AddClient

func (f *FakeRegistry) AddClient(uid string, config cmacme.ACMEIssuer, privateKey *rsa.PrivateKey)

func (*FakeRegistry) GetClient

func (f *FakeRegistry) GetClient(uid string) (acmecl.Interface, error)

func (*FakeRegistry) ListClients

func (f *FakeRegistry) ListClients() map[string]acmecl.Interface

func (*FakeRegistry) RemoveClient

func (f *FakeRegistry) RemoveClient(uid string)

Jump to

Keyboard shortcuts

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