mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-11 07:11:00 +00:00
158 lines
7.2 KiB
Go
158 lines
7.2 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./cas/cloudcas/cloudcas.go
|
|
|
|
// Package cloudcas is a generated GoMock package.
|
|
package cloudcas
|
|
|
|
import (
|
|
privateca "cloud.google.com/go/security/privateca/apiv1beta1"
|
|
context "context"
|
|
gomock "github.com/golang/mock/gomock"
|
|
gax "github.com/googleapis/gax-go/v2"
|
|
privateca0 "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1"
|
|
reflect "reflect"
|
|
)
|
|
|
|
// MockCertificateAuthorityClient is a mock of CertificateAuthorityClient interface
|
|
type MockCertificateAuthorityClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockCertificateAuthorityClientMockRecorder
|
|
}
|
|
|
|
// MockCertificateAuthorityClientMockRecorder is the mock recorder for MockCertificateAuthorityClient
|
|
type MockCertificateAuthorityClientMockRecorder struct {
|
|
mock *MockCertificateAuthorityClient
|
|
}
|
|
|
|
// NewMockCertificateAuthorityClient creates a new mock instance
|
|
func NewMockCertificateAuthorityClient(ctrl *gomock.Controller) *MockCertificateAuthorityClient {
|
|
mock := &MockCertificateAuthorityClient{ctrl: ctrl}
|
|
mock.recorder = &MockCertificateAuthorityClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockCertificateAuthorityClient) EXPECT() *MockCertificateAuthorityClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// CreateCertificate mocks base method
|
|
func (m *MockCertificateAuthorityClient) CreateCertificate(ctx context.Context, req *privateca0.CreateCertificateRequest, opts ...gax.CallOption) (*privateca0.Certificate, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, req}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "CreateCertificate", varargs...)
|
|
ret0, _ := ret[0].(*privateca0.Certificate)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CreateCertificate indicates an expected call of CreateCertificate
|
|
func (mr *MockCertificateAuthorityClientMockRecorder) CreateCertificate(ctx, req interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, req}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCertificate", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).CreateCertificate), varargs...)
|
|
}
|
|
|
|
// RevokeCertificate mocks base method
|
|
func (m *MockCertificateAuthorityClient) RevokeCertificate(ctx context.Context, req *privateca0.RevokeCertificateRequest, opts ...gax.CallOption) (*privateca0.Certificate, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, req}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "RevokeCertificate", varargs...)
|
|
ret0, _ := ret[0].(*privateca0.Certificate)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// RevokeCertificate indicates an expected call of RevokeCertificate
|
|
func (mr *MockCertificateAuthorityClientMockRecorder) RevokeCertificate(ctx, req interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, req}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeCertificate", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).RevokeCertificate), varargs...)
|
|
}
|
|
|
|
// GetCertificateAuthority mocks base method
|
|
func (m *MockCertificateAuthorityClient) GetCertificateAuthority(ctx context.Context, req *privateca0.GetCertificateAuthorityRequest, opts ...gax.CallOption) (*privateca0.CertificateAuthority, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, req}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "GetCertificateAuthority", varargs...)
|
|
ret0, _ := ret[0].(*privateca0.CertificateAuthority)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetCertificateAuthority indicates an expected call of GetCertificateAuthority
|
|
func (mr *MockCertificateAuthorityClientMockRecorder) GetCertificateAuthority(ctx, req interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, req}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).GetCertificateAuthority), varargs...)
|
|
}
|
|
|
|
// CreateCertificateAuthority mocks base method
|
|
func (m *MockCertificateAuthorityClient) CreateCertificateAuthority(ctx context.Context, req *privateca0.CreateCertificateAuthorityRequest, opts ...gax.CallOption) (*privateca.CreateCertificateAuthorityOperation, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, req}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "CreateCertificateAuthority", varargs...)
|
|
ret0, _ := ret[0].(*privateca.CreateCertificateAuthorityOperation)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CreateCertificateAuthority indicates an expected call of CreateCertificateAuthority
|
|
func (mr *MockCertificateAuthorityClientMockRecorder) CreateCertificateAuthority(ctx, req interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, req}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).CreateCertificateAuthority), varargs...)
|
|
}
|
|
|
|
// FetchCertificateAuthorityCsr mocks base method
|
|
func (m *MockCertificateAuthorityClient) FetchCertificateAuthorityCsr(ctx context.Context, req *privateca0.FetchCertificateAuthorityCsrRequest, opts ...gax.CallOption) (*privateca0.FetchCertificateAuthorityCsrResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, req}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "FetchCertificateAuthorityCsr", varargs...)
|
|
ret0, _ := ret[0].(*privateca0.FetchCertificateAuthorityCsrResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FetchCertificateAuthorityCsr indicates an expected call of FetchCertificateAuthorityCsr
|
|
func (mr *MockCertificateAuthorityClientMockRecorder) FetchCertificateAuthorityCsr(ctx, req interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, req}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCertificateAuthorityCsr", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).FetchCertificateAuthorityCsr), varargs...)
|
|
}
|
|
|
|
// ActivateCertificateAuthority mocks base method
|
|
func (m *MockCertificateAuthorityClient) ActivateCertificateAuthority(ctx context.Context, req *privateca0.ActivateCertificateAuthorityRequest, opts ...gax.CallOption) (*privateca.ActivateCertificateAuthorityOperation, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, req}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "ActivateCertificateAuthority", varargs...)
|
|
ret0, _ := ret[0].(*privateca.ActivateCertificateAuthorityOperation)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ActivateCertificateAuthority indicates an expected call of ActivateCertificateAuthority
|
|
func (mr *MockCertificateAuthorityClientMockRecorder) ActivateCertificateAuthority(ctx, req interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, req}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateCertificateAuthority", reflect.TypeOf((*MockCertificateAuthorityClient)(nil).ActivateCertificateAuthority), varargs...)
|
|
}
|