clusterusercert

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

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, issuerName string, clusterName string, opts NewClusterUserCertOpts) (ClusterUserCertInterface, error)

NewClusterUserCert provides a mock function with given fields: ctx, namespace, username, issuerName, 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{}, issuerName 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
  • issuerName string
  • 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 {
	IssuerKind         string                     `yaml:"issuerKind,omitempty"`
	Subject            *certmanagerv1.X509Subject `yaml:"subject,omitempty"`
	CRPOpts            NewClusterUserCertOptsCRP  `yaml:"certificateRequestPolicy,omitempty"`
	WaitForCertTimeout helpers.MaxWaitTime        `yaml:"waitForCertTimeout,omitempty"`
	CleanupTimeout     helpers.MaxWaitTime        `yaml:"cleanupTimeout,omitempty"`
}

type NewClusterUserCertOptsCRP

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

type Provider

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

func (*Provider) NewClusterUserCert

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

type ProviderInterface

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

Jump to

Keyboard shortcuts

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