fake

package
v1.7.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	*fake.Connector

	PingFunc                  func() error
	ReadZoneConfigurationFunc func() (*endpoint.ZoneConfiguration, error)
	RetrieveCertificateFunc   func(*certificate.Request) (*certificate.PEMCollection, error)
	RequestCertificateFunc    func(*certificate.Request) (string, error)
	RenewCertificateFunc      func(*certificate.RenewalRequest) (string, error)
}

func (Connector) Default

func (f Connector) Default() *Connector

func (*Connector) Ping

func (f *Connector) Ping() (err error)

func (*Connector) ReadZoneConfiguration

func (f *Connector) ReadZoneConfiguration() (config *endpoint.ZoneConfiguration, err error)

func (*Connector) RenewCertificate

func (f *Connector) RenewCertificate(req *certificate.RenewalRequest) (requestID string, err error)

func (*Connector) RequestCertificate

func (f *Connector) RequestCertificate(req *certificate.Request) (requestID string, err error)

func (*Connector) RetrieveCertificate

func (f *Connector) RetrieveCertificate(req *certificate.Request) (certificates *certificate.PEMCollection, err error)

type Venafi

type Venafi struct {
	PingFn                  func() error
	RequestCertificateFn    func(csrPEM []byte, duration time.Duration, customFields []api.CustomField) (string, error)
	RetrieveCertificateFn   func(pickupID string, csrPEM []byte, duration time.Duration, customFields []api.CustomField) ([]byte, error)
	ReadZoneConfigurationFn func() (*endpoint.ZoneConfiguration, error)
}

func (*Venafi) Ping

func (v *Venafi) Ping() error

func (*Venafi) ReadZoneConfiguration

func (v *Venafi) ReadZoneConfiguration() (*endpoint.ZoneConfiguration, error)

func (*Venafi) RequestCertificate

func (v *Venafi) RequestCertificate(csrPEM []byte, duration time.Duration, customFields []api.CustomField) (string, error)

func (*Venafi) RetrieveCertificate

func (v *Venafi) RetrieveCertificate(pickupID string, csrPEM []byte, duration time.Duration, customFields []api.CustomField) ([]byte, error)

func (*Venafi) SetClient

func (v *Venafi) SetClient(endpoint.Connector)

Jump to

Keyboard shortcuts

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