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 ¶ added in v1.25.2
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶ added in v1.25.2
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 ¶ added in v1.25.2
func (_m *MockInterface) DoStage1()
DoStage1 provides a mock function with given fields:
func (*MockInterface) DoStage2 ¶ added in v1.25.2
func (_m *MockInterface) DoStage2(ctx context.Context, in Stage2Input) error
DoStage2 provides a mock function with given fields: ctx, in
func (*MockInterface) EXPECT ¶ added in v1.25.2
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
type MockInterface_DoStage1_Call ¶ added in v1.25.2
MockInterface_DoStage1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoStage1'
func (*MockInterface_DoStage1_Call) Return ¶ added in v1.25.2
func (_c *MockInterface_DoStage1_Call) Return() *MockInterface_DoStage1_Call
func (*MockInterface_DoStage1_Call) Run ¶ added in v1.25.2
func (_c *MockInterface_DoStage1_Call) Run(run func()) *MockInterface_DoStage1_Call
type MockInterface_DoStage2_Call ¶ added in v1.25.2
MockInterface_DoStage2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoStage2'
func (*MockInterface_DoStage2_Call) Return ¶ added in v1.25.2
func (_c *MockInterface_DoStage2_Call) Return(_a0 error) *MockInterface_DoStage2_Call
func (*MockInterface_DoStage2_Call) Run ¶ added in v1.25.2
func (_c *MockInterface_DoStage2_Call) Run(run func(ctx context.Context, in Stage2Input)) *MockInterface_DoStage2_Call
type MockInterface_Expecter ¶ added in v1.25.2
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) DoStage1 ¶ added in v1.25.2
func (_e *MockInterface_Expecter) DoStage1() *MockInterface_DoStage1_Call
DoStage1 is a helper method to define mock.On call
func (*MockInterface_Expecter) DoStage2 ¶ added in v1.25.2
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 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.