istio: istio.io/istio/security/pkg/util/mock Index | Files

package mock

import "istio.io/istio/security/pkg/util/mock"

Index

Package Files

fakecertutil.go

type FakeCertUtil Uses

type FakeCertUtil struct {
    Duration time.Duration
    Err      error
}

FakeCertUtil is a mocked CertUtil for testing.

func (FakeCertUtil) GetWaitTime Uses

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

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

Package mock imports 1 packages (graph). Updated 2019-10-07. Refresh now. Tools for package owners.