2020-09-16 14:05:51 +00:00
|
|
|
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
2020-07-27 13:07:34 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2020-08-20 14:48:50 +00:00
|
|
|
//
|
2020-07-27 13:07:34 +00:00
|
|
|
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2020-09-17 17:56:54 +00:00
|
|
|
// Source: github.com/vmware-tanzu/pinniped/internal/registry/credentialrequest (interfaces: CertIssuer)
|
2020-07-27 13:07:34 +00:00
|
|
|
|
|
|
|
// Package mockcertissuer is a generated GoMock package.
|
|
|
|
package mockcertissuer
|
|
|
|
|
|
|
|
import (
|
|
|
|
pkix "crypto/x509/pkix"
|
|
|
|
reflect "reflect"
|
|
|
|
time "time"
|
2020-08-20 17:54:15 +00:00
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2020-07-27 13:07:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// MockCertIssuer is a mock of CertIssuer interface
|
|
|
|
type MockCertIssuer struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockCertIssuerMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockCertIssuerMockRecorder is the mock recorder for MockCertIssuer
|
|
|
|
type MockCertIssuerMockRecorder struct {
|
|
|
|
mock *MockCertIssuer
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockCertIssuer creates a new mock instance
|
|
|
|
func NewMockCertIssuer(ctrl *gomock.Controller) *MockCertIssuer {
|
|
|
|
mock := &MockCertIssuer{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockCertIssuerMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockCertIssuer) EXPECT() *MockCertIssuerMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// IssuePEM mocks base method
|
|
|
|
func (m *MockCertIssuer) IssuePEM(arg0 pkix.Name, arg1 []string, arg2 time.Duration) ([]byte, []byte, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "IssuePEM", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].([]byte)
|
|
|
|
ret1, _ := ret[1].([]byte)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// IssuePEM indicates an expected call of IssuePEM
|
|
|
|
func (mr *MockCertIssuerMockRecorder) IssuePEM(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IssuePEM", reflect.TypeOf((*MockCertIssuer)(nil).IssuePEM), arg0, arg1, arg2)
|
|
|
|
}
|