|
@@ -1,5 +1,10 @@
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
// Source: github.com/smallstep/certificates/cas/cloudcas (interfaces: CertificateAuthorityClient)
|
|
// Source: github.com/smallstep/certificates/cas/cloudcas (interfaces: CertificateAuthorityClient)
|
|
|
|
|
+//
|
|
|
|
|
+// Generated by this command:
|
|
|
|
|
+//
|
|
|
|
|
+// mockgen -package cloudcas -mock_names=CertificateAuthorityClient=MockCertificateAuthorityClient -destination mock_client_test.go github.com/smallstep/certificates/cas/cloudcas CertificateAuthorityClient
|
|
|
|
|
+//
|
|
|
|
|
|
|
|
// Package cloudcas is a generated GoMock package.
|
|
// Package cloudcas is a generated GoMock package.
|
|
|
package cloudcas
|
|
package cloudcas
|
|
@@ -10,14 +15,15 @@ import (
|
|
|
|
|
|
|
|
privateca "cloud.google.com/go/security/privateca/apiv1"
|
|
privateca "cloud.google.com/go/security/privateca/apiv1"
|
|
|
privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb"
|
|
privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb"
|
|
|
- gomock "github.com/golang/mock/gomock"
|
|
|
|
|
gax "github.com/googleapis/gax-go/v2"
|
|
gax "github.com/googleapis/gax-go/v2"
|
|
|
|
|
+ gomock "go.uber.org/mock/gomock"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
// MockCertificateAuthorityClient is a mock of CertificateAuthorityClient interface.
|
|
// MockCertificateAuthorityClient is a mock of CertificateAuthorityClient interface.
|
|
|
type MockCertificateAuthorityClient struct {
|
|
type MockCertificateAuthorityClient struct {
|
|
|
ctrl *gomock.Controller
|
|
ctrl *gomock.Controller
|
|
|
recorder *MockCertificateAuthorityClientMockRecorder
|
|
recorder *MockCertificateAuthorityClientMockRecorder
|
|
|
|
|
+ isgomock struct{}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// MockCertificateAuthorityClientMockRecorder is the mock recorder for MockCertificateAuthorityClient.
|
|
// MockCertificateAuthorityClientMockRecorder is the mock recorder for MockCertificateAuthorityClient.
|
|
@@ -38,10 +44,10 @@ func (m *MockCertificateAuthorityClient) EXPECT() *MockCertificateAuthorityClien
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ActivateCertificateAuthority mocks base method.
|
|
// ActivateCertificateAuthority mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) ActivateCertificateAuthority(arg0 context.Context, arg1 *privatecapb.ActivateCertificateAuthorityRequest, arg2 ...gax.CallOption) (*privateca.ActivateCertificateAuthorityOperation, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) ActivateCertificateAuthority(ctx context.Context, req *privatecapb.ActivateCertificateAuthorityRequest, opts ...gax.CallOption) (*privateca.ActivateCertificateAuthorityOperation, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "ActivateCertificateAuthority", varargs...)
|
|
ret := m.ctrl.Call(m, "ActivateCertificateAuthority", varargs...)
|
|
@@ -51,17 +57,17 @@ func (m *MockCertificateAuthorityClient) ActivateCertificateAuthority(arg0 conte
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ActivateCertificateAuthority indicates an expected call of ActivateCertificateAuthority.
|
|
// ActivateCertificateAuthority indicates an expected call of ActivateCertificateAuthority.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) ActivateCertificateAuthority(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) ActivateCertificateAuthority(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).ActivateCertificateAuthority), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).ActivateCertificateAuthority), varargs...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateCaPool mocks base method.
|
|
// CreateCaPool mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) CreateCaPool(arg0 context.Context, arg1 *privatecapb.CreateCaPoolRequest, arg2 ...gax.CallOption) (*privateca.CreateCaPoolOperation, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) CreateCaPool(ctx context.Context, req *privatecapb.CreateCaPoolRequest, opts ...gax.CallOption) (*privateca.CreateCaPoolOperation, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "CreateCaPool", varargs...)
|
|
ret := m.ctrl.Call(m, "CreateCaPool", varargs...)
|
|
@@ -71,17 +77,17 @@ func (m *MockCertificateAuthorityClient) CreateCaPool(arg0 context.Context, arg1
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateCaPool indicates an expected call of CreateCaPool.
|
|
// CreateCaPool indicates an expected call of CreateCaPool.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) CreateCaPool(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) CreateCaPool(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCaPool", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).CreateCaPool), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCaPool", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).CreateCaPool), varargs...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateCertificate mocks base method.
|
|
// CreateCertificate mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) CreateCertificate(arg0 context.Context, arg1 *privatecapb.CreateCertificateRequest, arg2 ...gax.CallOption) (*privatecapb.Certificate, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) CreateCertificate(ctx context.Context, req *privatecapb.CreateCertificateRequest, opts ...gax.CallOption) (*privatecapb.Certificate, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "CreateCertificate", varargs...)
|
|
ret := m.ctrl.Call(m, "CreateCertificate", varargs...)
|
|
@@ -91,17 +97,17 @@ func (m *MockCertificateAuthorityClient) CreateCertificate(arg0 context.Context,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateCertificate indicates an expected call of CreateCertificate.
|
|
// CreateCertificate indicates an expected call of CreateCertificate.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) CreateCertificate(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) CreateCertificate(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCertificate", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).CreateCertificate), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCertificate", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).CreateCertificate), varargs...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateCertificateAuthority mocks base method.
|
|
// CreateCertificateAuthority mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) CreateCertificateAuthority(arg0 context.Context, arg1 *privatecapb.CreateCertificateAuthorityRequest, arg2 ...gax.CallOption) (*privateca.CreateCertificateAuthorityOperation, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) CreateCertificateAuthority(ctx context.Context, req *privatecapb.CreateCertificateAuthorityRequest, opts ...gax.CallOption) (*privateca.CreateCertificateAuthorityOperation, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "CreateCertificateAuthority", varargs...)
|
|
ret := m.ctrl.Call(m, "CreateCertificateAuthority", varargs...)
|
|
@@ -111,17 +117,17 @@ func (m *MockCertificateAuthorityClient) CreateCertificateAuthority(arg0 context
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateCertificateAuthority indicates an expected call of CreateCertificateAuthority.
|
|
// CreateCertificateAuthority indicates an expected call of CreateCertificateAuthority.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) CreateCertificateAuthority(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) CreateCertificateAuthority(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).CreateCertificateAuthority), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).CreateCertificateAuthority), varargs...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// EnableCertificateAuthority mocks base method.
|
|
// EnableCertificateAuthority mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) EnableCertificateAuthority(arg0 context.Context, arg1 *privatecapb.EnableCertificateAuthorityRequest, arg2 ...gax.CallOption) (*privateca.EnableCertificateAuthorityOperation, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) EnableCertificateAuthority(ctx context.Context, req *privatecapb.EnableCertificateAuthorityRequest, opts ...gax.CallOption) (*privateca.EnableCertificateAuthorityOperation, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "EnableCertificateAuthority", varargs...)
|
|
ret := m.ctrl.Call(m, "EnableCertificateAuthority", varargs...)
|
|
@@ -131,17 +137,17 @@ func (m *MockCertificateAuthorityClient) EnableCertificateAuthority(arg0 context
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// EnableCertificateAuthority indicates an expected call of EnableCertificateAuthority.
|
|
// EnableCertificateAuthority indicates an expected call of EnableCertificateAuthority.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) EnableCertificateAuthority(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) EnableCertificateAuthority(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).EnableCertificateAuthority), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).EnableCertificateAuthority), varargs...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// FetchCertificateAuthorityCsr mocks base method.
|
|
// FetchCertificateAuthorityCsr mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) FetchCertificateAuthorityCsr(arg0 context.Context, arg1 *privatecapb.FetchCertificateAuthorityCsrRequest, arg2 ...gax.CallOption) (*privatecapb.FetchCertificateAuthorityCsrResponse, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) FetchCertificateAuthorityCsr(ctx context.Context, req *privatecapb.FetchCertificateAuthorityCsrRequest, opts ...gax.CallOption) (*privatecapb.FetchCertificateAuthorityCsrResponse, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "FetchCertificateAuthorityCsr", varargs...)
|
|
ret := m.ctrl.Call(m, "FetchCertificateAuthorityCsr", varargs...)
|
|
@@ -151,17 +157,17 @@ func (m *MockCertificateAuthorityClient) FetchCertificateAuthorityCsr(arg0 conte
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// FetchCertificateAuthorityCsr indicates an expected call of FetchCertificateAuthorityCsr.
|
|
// FetchCertificateAuthorityCsr indicates an expected call of FetchCertificateAuthorityCsr.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) FetchCertificateAuthorityCsr(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) FetchCertificateAuthorityCsr(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCertificateAuthorityCsr", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).FetchCertificateAuthorityCsr), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCertificateAuthorityCsr", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).FetchCertificateAuthorityCsr), varargs...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// GetCaPool mocks base method.
|
|
// GetCaPool mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) GetCaPool(arg0 context.Context, arg1 *privatecapb.GetCaPoolRequest, arg2 ...gax.CallOption) (*privatecapb.CaPool, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) GetCaPool(ctx context.Context, req *privatecapb.GetCaPoolRequest, opts ...gax.CallOption) (*privatecapb.CaPool, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "GetCaPool", varargs...)
|
|
ret := m.ctrl.Call(m, "GetCaPool", varargs...)
|
|
@@ -171,17 +177,17 @@ func (m *MockCertificateAuthorityClient) GetCaPool(arg0 context.Context, arg1 *p
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// GetCaPool indicates an expected call of GetCaPool.
|
|
// GetCaPool indicates an expected call of GetCaPool.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) GetCaPool(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) GetCaPool(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCaPool", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).GetCaPool), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCaPool", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).GetCaPool), varargs...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// GetCertificateAuthority mocks base method.
|
|
// GetCertificateAuthority mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) GetCertificateAuthority(arg0 context.Context, arg1 *privatecapb.GetCertificateAuthorityRequest, arg2 ...gax.CallOption) (*privatecapb.CertificateAuthority, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) GetCertificateAuthority(ctx context.Context, req *privatecapb.GetCertificateAuthorityRequest, opts ...gax.CallOption) (*privatecapb.CertificateAuthority, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "GetCertificateAuthority", varargs...)
|
|
ret := m.ctrl.Call(m, "GetCertificateAuthority", varargs...)
|
|
@@ -191,17 +197,17 @@ func (m *MockCertificateAuthorityClient) GetCertificateAuthority(arg0 context.Co
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// GetCertificateAuthority indicates an expected call of GetCertificateAuthority.
|
|
// GetCertificateAuthority indicates an expected call of GetCertificateAuthority.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) GetCertificateAuthority(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) GetCertificateAuthority(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).GetCertificateAuthority), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).GetCertificateAuthority), varargs...)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// RevokeCertificate mocks base method.
|
|
// RevokeCertificate mocks base method.
|
|
|
-func (m *MockCertificateAuthorityClient) RevokeCertificate(arg0 context.Context, arg1 *privatecapb.RevokeCertificateRequest, arg2 ...gax.CallOption) (*privatecapb.Certificate, error) {
|
|
|
|
|
|
|
+func (m *MockCertificateAuthorityClient) RevokeCertificate(ctx context.Context, req *privatecapb.RevokeCertificateRequest, opts ...gax.CallOption) (*privatecapb.Certificate, error) {
|
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.T.Helper()
|
|
|
- varargs := []interface{}{arg0, arg1}
|
|
|
|
|
- for _, a := range arg2 {
|
|
|
|
|
|
|
+ varargs := []any{ctx, req}
|
|
|
|
|
+ for _, a := range opts {
|
|
|
varargs = append(varargs, a)
|
|
varargs = append(varargs, a)
|
|
|
}
|
|
}
|
|
|
ret := m.ctrl.Call(m, "RevokeCertificate", varargs...)
|
|
ret := m.ctrl.Call(m, "RevokeCertificate", varargs...)
|
|
@@ -211,8 +217,8 @@ func (m *MockCertificateAuthorityClient) RevokeCertificate(arg0 context.Context,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// RevokeCertificate indicates an expected call of RevokeCertificate.
|
|
// RevokeCertificate indicates an expected call of RevokeCertificate.
|
|
|
-func (mr *MockCertificateAuthorityClientMockRecorder) RevokeCertificate(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
|
|
|
+func (mr *MockCertificateAuthorityClientMockRecorder) RevokeCertificate(ctx, req any, opts ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
|
|
|
+ varargs := append([]any{ctx, req}, opts...)
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeCertificate", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).RevokeCertificate), varargs...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeCertificate", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).RevokeCertificate), varargs...)
|
|
|
}
|
|
}
|