fake

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 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
	SignFn                  func([]byte, time.Duration, []internalvanafiapi.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) SetClient

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

func (*Venafi) Sign

func (v *Venafi) Sign(b []byte, t time.Duration, f []internalvanafiapi.CustomField) ([]byte, error)

Jump to

Keyboard shortcuts

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