mock

package
v0.0.0-...-dcdb1c8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCertUtil

type FakeCertUtil struct {
	Duration time.Duration
	Err      error
}

FakeCertUtil is a mocked CertUtil for testing.

func (FakeCertUtil) GetWaitTime

func (f FakeCertUtil) GetWaitTime(certBytes []byte, now time.Time) (time.Duration, error)

GetWaitTime returns duration if err is nil, otherwise, it returns err.

Jump to

Keyboard shortcuts

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