setup

package
v0.0.0-...-44a5619 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package setup provides the use case of setting up environment.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Interface

type Interface interface {
	DoStage1()
	DoStage2(ctx context.Context, in Stage2Input) error
}

type MockInterface

type MockInterface struct {
	mock.Mock
}

MockInterface is an autogenerated mock type for the Interface type

func NewMockInterface

func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface

NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockInterface) DoStage1

func (_m *MockInterface) DoStage1()

DoStage1 provides a mock function with given fields:

func (*MockInterface) DoStage2

func (_m *MockInterface) DoStage2(ctx context.Context, in Stage2Input) error

DoStage2 provides a mock function with given fields: ctx, in

func (*MockInterface) EXPECT

func (_m *MockInterface) EXPECT() *MockInterface_Expecter

type MockInterface_DoStage1_Call

type MockInterface_DoStage1_Call struct {
	*mock.Call
}

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

func (*MockInterface_DoStage1_Call) Return

func (*MockInterface_DoStage1_Call) Run

type MockInterface_DoStage2_Call

type MockInterface_DoStage2_Call struct {
	*mock.Call
}

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

func (*MockInterface_DoStage2_Call) Return

func (*MockInterface_DoStage2_Call) Run

type MockInterface_Expecter

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

func (*MockInterface_Expecter) DoStage1

DoStage1 is a helper method to define mock.On call

func (*MockInterface_Expecter) DoStage2

func (_e *MockInterface_Expecter) DoStage2(ctx interface{}, in interface{}) *MockInterface_DoStage2_Call

DoStage2 is a helper method to define mock.On call

  • ctx context.Context
  • in Stage2Input

type Setup

type Setup struct {
	Authentication authentication.Interface
	Logger         logger.Interface
}

func (*Setup) DoStage1

func (u *Setup) DoStage1()

func (*Setup) DoStage2

func (u *Setup) DoStage2(ctx context.Context, in Stage2Input) error

type Stage2Input

type Stage2Input struct {
	IssuerURL         string
	ClientID          string
	ClientSecret      string
	ExtraScopes       []string // optional
	UsePKCE           bool     // optional
	ListenAddressArgs []string // non-nil if set by the command arg
	GrantOptionSet    authentication.GrantOptionSet
	TLSClientConfig   tlsclientconfig.Config
}

Stage2Input represents an input DTO of the stage2.

Jump to

Keyboard shortcuts

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