solutionexplorer

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 (*Reconciler) ReconcileCustomResource

func (r *Reconciler) ReconcileCustomResource(ctx context.Context, installation *integreatlyv1alpha1.RHMI, client k8sclient.Client) (integreatlyv1alpha1.StatusPhase, error)

Jump to

Keyboard shortcuts

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