config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContainable

type MockContainable struct {
	mock.Mock
}

MockContainable is an autogenerated mock type for the Containable type

func NewMockContainable

func NewMockContainable(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockContainable

NewMockContainable creates a new instance of MockContainable. 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 (*MockContainable) AddObserver

func (_mock *MockContainable) AddObserver(o config.Observable)

AddObserver provides a mock function for the type MockContainable

func (*MockContainable) AddObserverFunc

func (_mock *MockContainable) AddObserverFunc(f func(config.Containable, chan error))

AddObserverFunc provides a mock function for the type MockContainable

func (*MockContainable) Dump

func (_mock *MockContainable) Dump()

Dump provides a mock function for the type MockContainable

func (*MockContainable) EXPECT

func (*MockContainable) Get

func (_mock *MockContainable) Get(key string) any

Get provides a mock function for the type MockContainable

func (*MockContainable) GetBool

func (_mock *MockContainable) GetBool(key string) bool

GetBool provides a mock function for the type MockContainable

func (*MockContainable) GetDuration

func (_mock *MockContainable) GetDuration(key string) time.Duration

GetDuration provides a mock function for the type MockContainable

func (*MockContainable) GetFloat

func (_mock *MockContainable) GetFloat(key string) float64

GetFloat provides a mock function for the type MockContainable

func (*MockContainable) GetInt

func (_mock *MockContainable) GetInt(key string) int

GetInt provides a mock function for the type MockContainable

func (*MockContainable) GetString

func (_mock *MockContainable) GetString(key string) string

GetString provides a mock function for the type MockContainable

func (*MockContainable) GetTime

func (_mock *MockContainable) GetTime(key string) time.Time

GetTime provides a mock function for the type MockContainable

func (*MockContainable) GetViper

func (_mock *MockContainable) GetViper() *viper.Viper

GetViper provides a mock function for the type MockContainable

func (*MockContainable) Has

func (_mock *MockContainable) Has(key string) bool

Has provides a mock function for the type MockContainable

func (*MockContainable) IsSet

func (_mock *MockContainable) IsSet(key string) bool

IsSet provides a mock function for the type MockContainable

func (*MockContainable) Set

func (_mock *MockContainable) Set(key string, value any)

Set provides a mock function for the type MockContainable

func (*MockContainable) Sub

func (_mock *MockContainable) Sub(key string) config.Containable

Sub provides a mock function for the type MockContainable

func (*MockContainable) ToJSON

func (_mock *MockContainable) ToJSON() string

ToJSON provides a mock function for the type MockContainable

func (*MockContainable) WriteConfigAs

func (_mock *MockContainable) WriteConfigAs(dest string) error

WriteConfigAs provides a mock function for the type MockContainable

type MockContainable_AddObserverFunc_Call

type MockContainable_AddObserverFunc_Call struct {
	*mock.Call
}

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

func (*MockContainable_AddObserverFunc_Call) Return

func (*MockContainable_AddObserverFunc_Call) Run

func (*MockContainable_AddObserverFunc_Call) RunAndReturn

type MockContainable_AddObserver_Call

type MockContainable_AddObserver_Call struct {
	*mock.Call
}

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

func (*MockContainable_AddObserver_Call) Return

func (*MockContainable_AddObserver_Call) Run

func (*MockContainable_AddObserver_Call) RunAndReturn

type MockContainable_Dump_Call

type MockContainable_Dump_Call struct {
	*mock.Call
}

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

func (*MockContainable_Dump_Call) Return

func (*MockContainable_Dump_Call) Run

func (*MockContainable_Dump_Call) RunAndReturn

func (_c *MockContainable_Dump_Call) RunAndReturn(run func()) *MockContainable_Dump_Call

type MockContainable_Expecter

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

func (*MockContainable_Expecter) AddObserver

func (_e *MockContainable_Expecter) AddObserver(o interface{}) *MockContainable_AddObserver_Call

AddObserver is a helper method to define mock.On call

  • o config.Observable

func (*MockContainable_Expecter) AddObserverFunc

func (_e *MockContainable_Expecter) AddObserverFunc(f interface{}) *MockContainable_AddObserverFunc_Call

AddObserverFunc is a helper method to define mock.On call

  • f func(config.Containable, chan error)

func (*MockContainable_Expecter) Dump

Dump is a helper method to define mock.On call

func (*MockContainable_Expecter) Get

func (_e *MockContainable_Expecter) Get(key interface{}) *MockContainable_Get_Call

Get is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) GetBool

func (_e *MockContainable_Expecter) GetBool(key interface{}) *MockContainable_GetBool_Call

GetBool is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) GetDuration

func (_e *MockContainable_Expecter) GetDuration(key interface{}) *MockContainable_GetDuration_Call

GetDuration is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) GetFloat

func (_e *MockContainable_Expecter) GetFloat(key interface{}) *MockContainable_GetFloat_Call

GetFloat is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) GetInt

func (_e *MockContainable_Expecter) GetInt(key interface{}) *MockContainable_GetInt_Call

GetInt is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) GetString

func (_e *MockContainable_Expecter) GetString(key interface{}) *MockContainable_GetString_Call

GetString is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) GetTime

func (_e *MockContainable_Expecter) GetTime(key interface{}) *MockContainable_GetTime_Call

GetTime is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) GetViper

GetViper is a helper method to define mock.On call

func (*MockContainable_Expecter) Has

func (_e *MockContainable_Expecter) Has(key interface{}) *MockContainable_Has_Call

Has is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) IsSet

func (_e *MockContainable_Expecter) IsSet(key interface{}) *MockContainable_IsSet_Call

IsSet is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) Set

func (_e *MockContainable_Expecter) Set(key interface{}, value interface{}) *MockContainable_Set_Call

Set is a helper method to define mock.On call

  • key string
  • value any

func (*MockContainable_Expecter) Sub

func (_e *MockContainable_Expecter) Sub(key interface{}) *MockContainable_Sub_Call

Sub is a helper method to define mock.On call

  • key string

func (*MockContainable_Expecter) ToJSON

ToJSON is a helper method to define mock.On call

func (*MockContainable_Expecter) WriteConfigAs

func (_e *MockContainable_Expecter) WriteConfigAs(dest interface{}) *MockContainable_WriteConfigAs_Call

WriteConfigAs is a helper method to define mock.On call

  • dest string

type MockContainable_GetBool_Call

type MockContainable_GetBool_Call struct {
	*mock.Call
}

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

func (*MockContainable_GetBool_Call) Return

func (*MockContainable_GetBool_Call) Run

func (*MockContainable_GetBool_Call) RunAndReturn

func (_c *MockContainable_GetBool_Call) RunAndReturn(run func(key string) bool) *MockContainable_GetBool_Call

type MockContainable_GetDuration_Call

type MockContainable_GetDuration_Call struct {
	*mock.Call
}

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

func (*MockContainable_GetDuration_Call) Return

func (*MockContainable_GetDuration_Call) Run

func (*MockContainable_GetDuration_Call) RunAndReturn

type MockContainable_GetFloat_Call

type MockContainable_GetFloat_Call struct {
	*mock.Call
}

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

func (*MockContainable_GetFloat_Call) Return

func (*MockContainable_GetFloat_Call) Run

func (*MockContainable_GetFloat_Call) RunAndReturn

type MockContainable_GetInt_Call

type MockContainable_GetInt_Call struct {
	*mock.Call
}

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

func (*MockContainable_GetInt_Call) Return

func (*MockContainable_GetInt_Call) Run

func (*MockContainable_GetInt_Call) RunAndReturn

func (_c *MockContainable_GetInt_Call) RunAndReturn(run func(key string) int) *MockContainable_GetInt_Call

type MockContainable_GetString_Call

type MockContainable_GetString_Call struct {
	*mock.Call
}

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

func (*MockContainable_GetString_Call) Return

func (*MockContainable_GetString_Call) Run

func (*MockContainable_GetString_Call) RunAndReturn

type MockContainable_GetTime_Call

type MockContainable_GetTime_Call struct {
	*mock.Call
}

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

func (*MockContainable_GetTime_Call) Return

func (*MockContainable_GetTime_Call) Run

func (*MockContainable_GetTime_Call) RunAndReturn

type MockContainable_GetViper_Call

type MockContainable_GetViper_Call struct {
	*mock.Call
}

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

func (*MockContainable_GetViper_Call) Return

func (*MockContainable_GetViper_Call) Run

func (*MockContainable_GetViper_Call) RunAndReturn

type MockContainable_Get_Call

type MockContainable_Get_Call struct {
	*mock.Call
}

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

func (*MockContainable_Get_Call) Return

func (*MockContainable_Get_Call) Run

func (*MockContainable_Get_Call) RunAndReturn

func (_c *MockContainable_Get_Call) RunAndReturn(run func(key string) any) *MockContainable_Get_Call

type MockContainable_Has_Call

type MockContainable_Has_Call struct {
	*mock.Call
}

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

func (*MockContainable_Has_Call) Return

func (*MockContainable_Has_Call) Run

func (*MockContainable_Has_Call) RunAndReturn

func (_c *MockContainable_Has_Call) RunAndReturn(run func(key string) bool) *MockContainable_Has_Call

type MockContainable_IsSet_Call

type MockContainable_IsSet_Call struct {
	*mock.Call
}

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

func (*MockContainable_IsSet_Call) Return

func (*MockContainable_IsSet_Call) Run

func (*MockContainable_IsSet_Call) RunAndReturn

func (_c *MockContainable_IsSet_Call) RunAndReturn(run func(key string) bool) *MockContainable_IsSet_Call

type MockContainable_Set_Call

type MockContainable_Set_Call struct {
	*mock.Call
}

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

func (*MockContainable_Set_Call) Return

func (*MockContainable_Set_Call) Run

func (_c *MockContainable_Set_Call) Run(run func(key string, value any)) *MockContainable_Set_Call

func (*MockContainable_Set_Call) RunAndReturn

func (_c *MockContainable_Set_Call) RunAndReturn(run func(key string, value any)) *MockContainable_Set_Call

type MockContainable_Sub_Call

type MockContainable_Sub_Call struct {
	*mock.Call
}

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

func (*MockContainable_Sub_Call) Return

func (*MockContainable_Sub_Call) Run

func (*MockContainable_Sub_Call) RunAndReturn

type MockContainable_ToJSON_Call

type MockContainable_ToJSON_Call struct {
	*mock.Call
}

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

func (*MockContainable_ToJSON_Call) Return

func (*MockContainable_ToJSON_Call) Run

func (*MockContainable_ToJSON_Call) RunAndReturn

func (_c *MockContainable_ToJSON_Call) RunAndReturn(run func() string) *MockContainable_ToJSON_Call

type MockContainable_WriteConfigAs_Call

type MockContainable_WriteConfigAs_Call struct {
	*mock.Call
}

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

func (*MockContainable_WriteConfigAs_Call) Return

func (*MockContainable_WriteConfigAs_Call) Run

func (*MockContainable_WriteConfigAs_Call) RunAndReturn

type MockEmbeddedFileReader

type MockEmbeddedFileReader struct {
	mock.Mock
}

MockEmbeddedFileReader is an autogenerated mock type for the EmbeddedFileReader type

func NewMockEmbeddedFileReader

func NewMockEmbeddedFileReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEmbeddedFileReader

NewMockEmbeddedFileReader creates a new instance of MockEmbeddedFileReader. 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 (*MockEmbeddedFileReader) EXPECT

func (*MockEmbeddedFileReader) Open

func (_mock *MockEmbeddedFileReader) Open(name string) (fs.File, error)

Open provides a mock function for the type MockEmbeddedFileReader

type MockEmbeddedFileReader_Expecter

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

func (*MockEmbeddedFileReader_Expecter) Open

Open is a helper method to define mock.On call

  • name string

type MockEmbeddedFileReader_Open_Call

type MockEmbeddedFileReader_Open_Call struct {
	*mock.Call
}

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

func (*MockEmbeddedFileReader_Open_Call) Return

func (*MockEmbeddedFileReader_Open_Call) Run

func (*MockEmbeddedFileReader_Open_Call) RunAndReturn

type MockObservable

type MockObservable struct {
	mock.Mock
}

MockObservable is an autogenerated mock type for the Observable type

func NewMockObservable

func NewMockObservable(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockObservable

NewMockObservable creates a new instance of MockObservable. 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 (*MockObservable) EXPECT

func (*MockObservable) Run

func (_mock *MockObservable) Run(containable config.Containable, errCh chan error)

Run provides a mock function for the type MockObservable

type MockObservable_Expecter

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

func (*MockObservable_Expecter) Run

func (_e *MockObservable_Expecter) Run(containable interface{}, errCh interface{}) *MockObservable_Run_Call

Run is a helper method to define mock.On call

  • containable config.Containable
  • errCh chan error

type MockObservable_Run_Call

type MockObservable_Run_Call struct {
	*mock.Call
}

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

func (*MockObservable_Run_Call) Return

func (*MockObservable_Run_Call) Run

func (_c *MockObservable_Run_Call) Run(run func(containable config.Containable, errCh chan error)) *MockObservable_Run_Call

func (*MockObservable_Run_Call) RunAndReturn

func (_c *MockObservable_Run_Call) RunAndReturn(run func(containable config.Containable, errCh chan error)) *MockObservable_Run_Call

Jump to

Keyboard shortcuts

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