createcrpforcertificate

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

type MockProviderInterface struct {
	mock.Mock
}

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

CreateCRPForCertificate provides a mock function with given fields: ctx, cert, opts

func (*MockProviderInterface) EXPECT

type MockProviderInterface_CreateCRPForCertificate_Call

type MockProviderInterface_CreateCRPForCertificate_Call struct {
	*mock.Call
}

MockProviderInterface_CreateCRPForCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCRPForCertificate'

func (*MockProviderInterface_CreateCRPForCertificate_Call) Return

func (*MockProviderInterface_CreateCRPForCertificate_Call) Run

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

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL