clusterusercert

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: AGPL-3.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterUserCert

type ClusterUserCert struct {
	// contains filtered or unexported fields
}

func (*ClusterUserCert) Delete

func (cuc *ClusterUserCert) Delete(ctx *contexts.Context) (err error)

func (*ClusterUserCert) GetCertificate

func (cuc *ClusterUserCert) GetCertificate() *certmanagerv1.Certificate

func (*ClusterUserCert) GetCertificateRequestPolicy

func (cuc *ClusterUserCert) GetCertificateRequestPolicy() *policyv1alpha1.CertificateRequestPolicy

type ClusterUserCertInterface

type ClusterUserCertInterface interface {
	GetCertificate() *certmanagerv1.Certificate

	GetCertificateRequestPolicy() *policyv1alpha1.CertificateRequestPolicy
	Delete(ctx *contexts.Context) error
	// contains filtered or unexported methods
}

type MockClusterUserCertInterface

type MockClusterUserCertInterface struct {
	mock.Mock
}

MockClusterUserCertInterface is an autogenerated mock type for the ClusterUserCertInterface type

func NewMockClusterUserCertInterface

func NewMockClusterUserCertInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClusterUserCertInterface

NewMockClusterUserCertInterface creates a new instance of MockClusterUserCertInterface. 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 (*MockClusterUserCertInterface) Delete

Delete provides a mock function with given fields: ctx

func (*MockClusterUserCertInterface) EXPECT

func (*MockClusterUserCertInterface) GetCertificate

func (_m *MockClusterUserCertInterface) GetCertificate() *v1.Certificate

GetCertificate provides a mock function with no fields

func (*MockClusterUserCertInterface) GetCertificateRequestPolicy

func (_m *MockClusterUserCertInterface) GetCertificateRequestPolicy() *v1alpha1.CertificateRequestPolicy

GetCertificateRequestPolicy provides a mock function with no fields

type MockClusterUserCertInterface_Delete_Call

type MockClusterUserCertInterface_Delete_Call struct {
	*mock.Call
}

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

func (*MockClusterUserCertInterface_Delete_Call) Return

func (*MockClusterUserCertInterface_Delete_Call) Run

func (*MockClusterUserCertInterface_Delete_Call) RunAndReturn

type MockClusterUserCertInterface_Expecter

type MockClusterUserCertInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockClusterUserCertInterface_Expecter) Delete

Delete is a helper method to define mock.On call

  • ctx *contexts.Context

func (*MockClusterUserCertInterface_Expecter) GetCertificate

GetCertificate is a helper method to define mock.On call

func (*MockClusterUserCertInterface_Expecter) GetCertificateRequestPolicy

GetCertificateRequestPolicy is a helper method to define mock.On call

type MockClusterUserCertInterface_GetCertificateRequestPolicy_Call

type MockClusterUserCertInterface_GetCertificateRequestPolicy_Call struct {
	*mock.Call
}

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

func (*MockClusterUserCertInterface_GetCertificateRequestPolicy_Call) Run

func (*MockClusterUserCertInterface_GetCertificateRequestPolicy_Call) RunAndReturn

type MockClusterUserCertInterface_GetCertificate_Call

type MockClusterUserCertInterface_GetCertificate_Call struct {
	*mock.Call
}

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

func (*MockClusterUserCertInterface_GetCertificate_Call) Return

func (*MockClusterUserCertInterface_GetCertificate_Call) Run

func (*MockClusterUserCertInterface_GetCertificate_Call) RunAndReturn

type MockClusterUserCertInterface_setCRP_Call

type MockClusterUserCertInterface_setCRP_Call struct {
	*mock.Call
}

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

func (*MockClusterUserCertInterface_setCRP_Call) Return

func (*MockClusterUserCertInterface_setCRP_Call) Run

func (*MockClusterUserCertInterface_setCRP_Call) RunAndReturn

type MockClusterUserCertInterface_setCertificate_Call

type MockClusterUserCertInterface_setCertificate_Call struct {
	*mock.Call
}

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

func (*MockClusterUserCertInterface_setCertificate_Call) Return

func (*MockClusterUserCertInterface_setCertificate_Call) Run

func (*MockClusterUserCertInterface_setCertificate_Call) RunAndReturn

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

func (*MockProviderInterface) NewClusterUserCert

func (_m *MockProviderInterface) NewClusterUserCert(ctx *contexts.Context, namespace string, username string, issuerRef v1.IssuerReference, clusterName string, opts NewClusterUserCertOpts) (ClusterUserCertInterface, error)

NewClusterUserCert provides a mock function with given fields: ctx, namespace, username, issuerRef, clusterName, opts

type MockProviderInterface_Expecter

type MockProviderInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockProviderInterface_Expecter) NewClusterUserCert

func (_e *MockProviderInterface_Expecter) NewClusterUserCert(ctx interface{}, namespace interface{}, username interface{}, issuerRef interface{}, clusterName interface{}, opts interface{}) *MockProviderInterface_NewClusterUserCert_Call

NewClusterUserCert is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • username string
  • issuerRef v1.IssuerReference
  • clusterName string
  • opts NewClusterUserCertOpts

type MockProviderInterface_NewClusterUserCert_Call

type MockProviderInterface_NewClusterUserCert_Call struct {
	*mock.Call
}

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

func (*MockProviderInterface_NewClusterUserCert_Call) Return

func (*MockProviderInterface_NewClusterUserCert_Call) Run

type NewClusterUserCertOpts

type NewClusterUserCertOpts struct {
	CRPOpts            NewClusterUserCertOptsCRP `yaml:"certificateRequestPolicy,omitempty"`
	WaitForCertTimeout helpers.MaxWaitTime       `yaml:"waitForCertTimeout,omitempty"`
	CleanupTimeout     helpers.MaxWaitTime       `yaml:"cleanupTimeout,omitempty"`
}

type NewClusterUserCertOptsCRP

type NewClusterUserCertOptsCRP struct {
	WaitForCRPTimeout helpers.MaxWaitTime `yaml:"waitForCRPTimeout,omitempty"`
}

NewClusterUserCertOptsCRP tunes the CertificateRequestPolicy created for a user cert. Whether a policy is created at all is detected at runtime (see approverpolicy.ClientInterface.IsAvailable) rather than configured, since approver-policy enforcement is a cluster-wide all-or-nothing property.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (*Provider) NewClusterUserCert

func (p *Provider) NewClusterUserCert(ctx *contexts.Context, namespace, username string, issuerRef cmmeta.IssuerReference, clusterName string, opts NewClusterUserCertOpts) (cuc ClusterUserCertInterface, err error)

type ProviderInterface

type ProviderInterface interface {
	NewClusterUserCert(ctx *contexts.Context, namespace, username string, issuerRef cmmeta.IssuerReference, clusterName string, opts NewClusterUserCertOpts) (ClusterUserCertInterface, error)
}

Jump to

Keyboard shortcuts

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