cert-manager: github.com/jetstack/cert-manager/pkg/acme/accounts/test Index | Files

package test

import "github.com/jetstack/cert-manager/pkg/acme/accounts/test"

Index

Package Files

registry.go

type FakeRegistry Uses

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 Uses

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

func (*FakeRegistry) GetClient Uses

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

func (*FakeRegistry) ListClients Uses

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

func (*FakeRegistry) RemoveClient Uses

func (f *FakeRegistry) RemoveClient(uid string)

Package test imports 3 packages (graph). Updated 2020-05-26. Refresh now. Tools for package owners.