Documentation
¶
Index ¶
- type OauthResolver
- type OauthResolverMock
- type Reconciler
- func (r *Reconciler) GetPreflightObject(ns string) runtime.Object
- func (r *Reconciler) Reconcile(ctx context.Context, installation *integreatlyv1alpha1.RHMI, ...) (integreatlyv1alpha1.StatusPhase, error)
- func (r *Reconciler) ReconcileCustomResource(ctx context.Context, installation *integreatlyv1alpha1.RHMI, ...) (integreatlyv1alpha1.StatusPhase, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OauthResolver ¶
type OauthResolver interface {
GetOauthEndPoint() (*resources.OauthServerConfig, error)
}
type OauthResolverMock ¶
type OauthResolverMock struct {
// GetOauthEndPointFunc mocks the GetOauthEndPoint method.
GetOauthEndPointFunc func() (*resources.OauthServerConfig, error)
// contains filtered or unexported fields
}
OauthResolverMock is a mock implementation of OauthResolver.
func TestSomethingThatUsesOauthResolver(t *testing.T) {
// make and configure a mocked OauthResolver
mockedOauthResolver := &OauthResolverMock{
GetOauthEndPointFunc: func() (*resources.OauthServerConfig, error) {
panic("mock out the GetOauthEndPoint method")
},
}
// use mockedOauthResolver in code that requires OauthResolver
// and then make assertions.
}
func (*OauthResolverMock) GetOauthEndPoint ¶
func (mock *OauthResolverMock) GetOauthEndPoint() (*resources.OauthServerConfig, error)
GetOauthEndPoint calls GetOauthEndPointFunc.
func (*OauthResolverMock) GetOauthEndPointCalls ¶
func (mock *OauthResolverMock) GetOauthEndPointCalls() []struct { }
GetOauthEndPointCalls gets all the calls that were made to GetOauthEndPoint. Check the length with:
len(mockedOauthResolver.GetOauthEndPointCalls())
type Reconciler ¶
type Reconciler struct {
*resources.Reconciler
Config *config.SolutionExplorer
ConfigManager config.ConfigReadWriter
OauthResolver OauthResolver
// contains filtered or unexported fields
}
func NewReconciler ¶
func NewReconciler(configManager config.ConfigReadWriter, installation *integreatlyv1alpha1.RHMI, oauthv1Client oauthClient.OauthV1Interface, mpm marketplace.MarketplaceInterface, resolver OauthResolver, recorder record.EventRecorder) (*Reconciler, error)
func (*Reconciler) GetPreflightObject ¶
func (r *Reconciler) GetPreflightObject(ns string) runtime.Object
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, installation *integreatlyv1alpha1.RHMI, product *integreatlyv1alpha1.RHMIProductStatus, serverClient k8sclient.Client) (integreatlyv1alpha1.StatusPhase, error)
func (*Reconciler) ReconcileCustomResource ¶
func (r *Reconciler) ReconcileCustomResource(ctx context.Context, installation *integreatlyv1alpha1.RHMI, client k8sclient.Client) (integreatlyv1alpha1.StatusPhase, error)
Click to show internal directories.
Click to hide internal directories.