Back to godoc.org

Package test

v1.0.1
Latest Go to latest

The latest major version is .

Published: Sep 4, 2020 | License: Apache-2.0 | Module: github.com/jetstack/cert-manager

Index

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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier