Documentation ¶
Index ¶
- type Builder
- func (_m *Builder) Build() (dynatrace.Client, error)
- func (_m *Builder) BuildWithTokenVerification(dkStatus *dynakube.DynaKubeStatus) (dynatrace.Client, error)
- func (_m *Builder) EXPECT() *Builder_Expecter
- func (_m *Builder) SetContext(ctx context.Context) dynatraceclient.Builder
- func (_m *Builder) SetDynakube(dk dynakube.DynaKube) dynatraceclient.Builder
- func (_m *Builder) SetTokens(tokens token.Tokens) dynatraceclient.Builder
- type Builder_BuildWithTokenVerification_Call
- func (_c *Builder_BuildWithTokenVerification_Call) Return(_a0 dynatrace.Client, _a1 error) *Builder_BuildWithTokenVerification_Call
- func (_c *Builder_BuildWithTokenVerification_Call) Run(run func(dkStatus *dynakube.DynaKubeStatus)) *Builder_BuildWithTokenVerification_Call
- func (_c *Builder_BuildWithTokenVerification_Call) RunAndReturn(run func(*dynakube.DynaKubeStatus) (dynatrace.Client, error)) *Builder_BuildWithTokenVerification_Call
- type Builder_Build_Call
- type Builder_Expecter
- func (_e *Builder_Expecter) Build() *Builder_Build_Call
- func (_e *Builder_Expecter) BuildWithTokenVerification(dkStatus interface{}) *Builder_BuildWithTokenVerification_Call
- func (_e *Builder_Expecter) SetContext(ctx interface{}) *Builder_SetContext_Call
- func (_e *Builder_Expecter) SetDynakube(dk interface{}) *Builder_SetDynakube_Call
- func (_e *Builder_Expecter) SetTokens(tokens interface{}) *Builder_SetTokens_Call
- type Builder_SetContext_Call
- func (_c *Builder_SetContext_Call) Return(_a0 dynatraceclient.Builder) *Builder_SetContext_Call
- func (_c *Builder_SetContext_Call) Run(run func(ctx context.Context)) *Builder_SetContext_Call
- func (_c *Builder_SetContext_Call) RunAndReturn(run func(context.Context) dynatraceclient.Builder) *Builder_SetContext_Call
- type Builder_SetDynakube_Call
- func (_c *Builder_SetDynakube_Call) Return(_a0 dynatraceclient.Builder) *Builder_SetDynakube_Call
- func (_c *Builder_SetDynakube_Call) Run(run func(dk dynakube.DynaKube)) *Builder_SetDynakube_Call
- func (_c *Builder_SetDynakube_Call) RunAndReturn(run func(dynakube.DynaKube) dynatraceclient.Builder) *Builder_SetDynakube_Call
- type Builder_SetTokens_Call
- func (_c *Builder_SetTokens_Call) Return(_a0 dynatraceclient.Builder) *Builder_SetTokens_Call
- func (_c *Builder_SetTokens_Call) Run(run func(tokens token.Tokens)) *Builder_SetTokens_Call
- func (_c *Builder_SetTokens_Call) RunAndReturn(run func(token.Tokens) dynatraceclient.Builder) *Builder_SetTokens_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
Builder is an autogenerated mock type for the Builder type
func NewBuilder ¶
NewBuilder creates a new instance of Builder. 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 (*Builder) BuildWithTokenVerification ¶
func (_m *Builder) BuildWithTokenVerification(dkStatus *dynakube.DynaKubeStatus) (dynatrace.Client, error)
BuildWithTokenVerification provides a mock function with given fields: dkStatus
func (*Builder) EXPECT ¶
func (_m *Builder) EXPECT() *Builder_Expecter
func (*Builder) SetContext ¶
func (_m *Builder) SetContext(ctx context.Context) dynatraceclient.Builder
SetContext provides a mock function with given fields: ctx
func (*Builder) SetDynakube ¶
func (_m *Builder) SetDynakube(dk dynakube.DynaKube) dynatraceclient.Builder
SetDynakube provides a mock function with given fields: dk
type Builder_BuildWithTokenVerification_Call ¶
Builder_BuildWithTokenVerification_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildWithTokenVerification'
func (*Builder_BuildWithTokenVerification_Call) Return ¶
func (_c *Builder_BuildWithTokenVerification_Call) Return(_a0 dynatrace.Client, _a1 error) *Builder_BuildWithTokenVerification_Call
func (*Builder_BuildWithTokenVerification_Call) Run ¶
func (_c *Builder_BuildWithTokenVerification_Call) Run(run func(dkStatus *dynakube.DynaKubeStatus)) *Builder_BuildWithTokenVerification_Call
func (*Builder_BuildWithTokenVerification_Call) RunAndReturn ¶
func (_c *Builder_BuildWithTokenVerification_Call) RunAndReturn(run func(*dynakube.DynaKubeStatus) (dynatrace.Client, error)) *Builder_BuildWithTokenVerification_Call
type Builder_Build_Call ¶
Builder_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*Builder_Build_Call) Return ¶
func (_c *Builder_Build_Call) Return(_a0 dynatrace.Client, _a1 error) *Builder_Build_Call
func (*Builder_Build_Call) Run ¶
func (_c *Builder_Build_Call) Run(run func()) *Builder_Build_Call
func (*Builder_Build_Call) RunAndReturn ¶
func (_c *Builder_Build_Call) RunAndReturn(run func() (dynatrace.Client, error)) *Builder_Build_Call
type Builder_Expecter ¶
type Builder_Expecter struct {
// contains filtered or unexported fields
}
func (*Builder_Expecter) Build ¶
func (_e *Builder_Expecter) Build() *Builder_Build_Call
Build is a helper method to define mock.On call
func (*Builder_Expecter) BuildWithTokenVerification ¶
func (_e *Builder_Expecter) BuildWithTokenVerification(dkStatus interface{}) *Builder_BuildWithTokenVerification_Call
BuildWithTokenVerification is a helper method to define mock.On call
- dkStatus *dynakube.DynaKubeStatus
func (*Builder_Expecter) SetContext ¶
func (_e *Builder_Expecter) SetContext(ctx interface{}) *Builder_SetContext_Call
SetContext is a helper method to define mock.On call
- ctx context.Context
func (*Builder_Expecter) SetDynakube ¶
func (_e *Builder_Expecter) SetDynakube(dk interface{}) *Builder_SetDynakube_Call
SetDynakube is a helper method to define mock.On call
- dk dynakube.DynaKube
func (*Builder_Expecter) SetTokens ¶
func (_e *Builder_Expecter) SetTokens(tokens interface{}) *Builder_SetTokens_Call
SetTokens is a helper method to define mock.On call
- tokens token.Tokens
type Builder_SetContext_Call ¶
Builder_SetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetContext'
func (*Builder_SetContext_Call) Return ¶
func (_c *Builder_SetContext_Call) Return(_a0 dynatraceclient.Builder) *Builder_SetContext_Call
func (*Builder_SetContext_Call) Run ¶
func (_c *Builder_SetContext_Call) Run(run func(ctx context.Context)) *Builder_SetContext_Call
func (*Builder_SetContext_Call) RunAndReturn ¶
func (_c *Builder_SetContext_Call) RunAndReturn(run func(context.Context) dynatraceclient.Builder) *Builder_SetContext_Call
type Builder_SetDynakube_Call ¶
Builder_SetDynakube_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetDynakube'
func (*Builder_SetDynakube_Call) Return ¶
func (_c *Builder_SetDynakube_Call) Return(_a0 dynatraceclient.Builder) *Builder_SetDynakube_Call
func (*Builder_SetDynakube_Call) Run ¶
func (_c *Builder_SetDynakube_Call) Run(run func(dk dynakube.DynaKube)) *Builder_SetDynakube_Call
func (*Builder_SetDynakube_Call) RunAndReturn ¶
func (_c *Builder_SetDynakube_Call) RunAndReturn(run func(dynakube.DynaKube) dynatraceclient.Builder) *Builder_SetDynakube_Call
type Builder_SetTokens_Call ¶
Builder_SetTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTokens'
func (*Builder_SetTokens_Call) Return ¶
func (_c *Builder_SetTokens_Call) Return(_a0 dynatraceclient.Builder) *Builder_SetTokens_Call
func (*Builder_SetTokens_Call) Run ¶
func (_c *Builder_SetTokens_Call) Run(run func(tokens token.Tokens)) *Builder_SetTokens_Call
func (*Builder_SetTokens_Call) RunAndReturn ¶
func (_c *Builder_SetTokens_Call) RunAndReturn(run func(token.Tokens) dynatraceclient.Builder) *Builder_SetTokens_Call