Documentation
¶
Index ¶
- type CreateCRPForCertificateOpts
- type MockProviderInterface
- type MockProviderInterface_CreateCRPForCertificate_Call
- func (_c *MockProviderInterface_CreateCRPForCertificate_Call) Return(_a0 *v1alpha1.CertificateRequestPolicy, _a1 error) *MockProviderInterface_CreateCRPForCertificate_Call
- func (_c *MockProviderInterface_CreateCRPForCertificate_Call) Run(...) *MockProviderInterface_CreateCRPForCertificate_Call
- func (_c *MockProviderInterface_CreateCRPForCertificate_Call) RunAndReturn(...) *MockProviderInterface_CreateCRPForCertificate_Call
- type MockProviderInterface_Expecter
- type Provider
- type ProviderInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCRPForCertificateOpts ¶
type CreateCRPForCertificateOpts struct {
helpers.MaxWaitTime
}
type MockProviderInterface ¶
MockProviderInterface is an autogenerated mock type for the ProviderInterface type
func NewMockProviderInterface ¶
func NewMockProviderInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockProviderInterface
NewMockProviderInterface creates a new instance of MockProviderInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockProviderInterface) CreateCRPForCertificate ¶
func (_m *MockProviderInterface) CreateCRPForCertificate(ctx *contexts.Context, cert *v1.Certificate, opts CreateCRPForCertificateOpts) (*v1alpha1.CertificateRequestPolicy, error)
CreateCRPForCertificate provides a mock function with given fields: ctx, cert, opts
func (*MockProviderInterface) EXPECT ¶
func (_m *MockProviderInterface) EXPECT() *MockProviderInterface_Expecter
type MockProviderInterface_CreateCRPForCertificate_Call ¶
MockProviderInterface_CreateCRPForCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCRPForCertificate'
func (*MockProviderInterface_CreateCRPForCertificate_Call) Run ¶
func (_c *MockProviderInterface_CreateCRPForCertificate_Call) Run(run func(ctx *contexts.Context, cert *v1.Certificate, opts CreateCRPForCertificateOpts)) *MockProviderInterface_CreateCRPForCertificate_Call
func (*MockProviderInterface_CreateCRPForCertificate_Call) RunAndReturn ¶
func (_c *MockProviderInterface_CreateCRPForCertificate_Call) RunAndReturn(run func(*contexts.Context, *v1.Certificate, CreateCRPForCertificateOpts) (*v1alpha1.CertificateRequestPolicy, error)) *MockProviderInterface_CreateCRPForCertificate_Call
type MockProviderInterface_Expecter ¶
type MockProviderInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProviderInterface_Expecter) CreateCRPForCertificate ¶
func (_e *MockProviderInterface_Expecter) CreateCRPForCertificate(ctx interface{}, cert interface{}, opts interface{}) *MockProviderInterface_CreateCRPForCertificate_Call
CreateCRPForCertificate is a helper method to define mock.On call
- ctx *contexts.Context
- cert *v1.Certificate
- opts CreateCRPForCertificateOpts
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(apClient approverpolicy.ClientInterface) *Provider
func (*Provider) CreateCRPForCertificate ¶
func (p *Provider) CreateCRPForCertificate(ctx *contexts.Context, cert *certmanagerv1.Certificate, opts CreateCRPForCertificateOpts) (_crp *policyv1alpha1.CertificateRequestPolicy, err error)
Create a Certificate Request Policy that matches the given certificate as closely as possible.
type ProviderInterface ¶
type ProviderInterface interface {
CreateCRPForCertificate(ctx *contexts.Context, cert *certmanagerv1.Certificate, opts CreateCRPForCertificateOpts) (*policyv1alpha1.CertificateRequestPolicy, error)
}