Documentation
¶
Index ¶
- type CredentialStore
- type CredentialStore_Clear_Call
- type CredentialStore_Expecter
- type CredentialStore_Get_Call
- type CredentialStore_Set_Call
- type ExportReplace
- type ExportReplace_Expecter
- type ExportReplace_Export_Call
- func (_c *ExportReplace_Export_Call) Return(_a0 error) *ExportReplace_Export_Call
- func (_c *ExportReplace_Export_Call) Run(run func(ctx context.Context, _a1 cache.Marshaler, hints cache.ExportHints)) *ExportReplace_Export_Call
- func (_c *ExportReplace_Export_Call) RunAndReturn(run func(context.Context, cache.Marshaler, cache.ExportHints) error) *ExportReplace_Export_Call
- type ExportReplace_Replace_Call
- func (_c *ExportReplace_Replace_Call) Return(_a0 error) *ExportReplace_Replace_Call
- func (_c *ExportReplace_Replace_Call) Run(run func(ctx context.Context, _a1 cache.Unmarshaler, hints cache.ReplaceHints)) *ExportReplace_Replace_Call
- func (_c *ExportReplace_Replace_Call) RunAndReturn(run func(context.Context, cache.Unmarshaler, cache.ReplaceHints) error) *ExportReplace_Replace_Call
- type FileSystemOption
- type FileSystemOption_Execute_Call
- func (_c *FileSystemOption_Execute_Call) Return() *FileSystemOption_Execute_Call
- func (_c *FileSystemOption_Execute_Call) Run(run func(_a0 *credentialstore.FilesystemCredentialStore)) *FileSystemOption_Execute_Call
- func (_c *FileSystemOption_Execute_Call) RunAndReturn(run func(*credentialstore.FilesystemCredentialStore)) *FileSystemOption_Execute_Call
- type FileSystemOption_Expecter
- type Marshaler
- type Marshaler_Expecter
- type Marshaler_Marshal_Call
- type Option
- type Option_Execute_Call
- type Option_Expecter
- type Serializer
- type Serializer_Expecter
- type Serializer_Marshal_Call
- type Serializer_Unmarshal_Call
- type Unmarshaler
- type Unmarshaler_Expecter
- type Unmarshaler_Unmarshal_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialStore ¶
CredentialStore is an autogenerated mock type for the CredentialStore type
func NewCredentialStore ¶
func NewCredentialStore(t interface {
mock.TestingT
Cleanup(func())
}) *CredentialStore
NewCredentialStore creates a new instance of CredentialStore. 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 (*CredentialStore) Clear ¶
func (_m *CredentialStore) Clear() error
Clear provides a mock function with given fields:
func (*CredentialStore) EXPECT ¶
func (_m *CredentialStore) EXPECT() *CredentialStore_Expecter
type CredentialStore_Clear_Call ¶
CredentialStore_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
func (*CredentialStore_Clear_Call) Return ¶
func (_c *CredentialStore_Clear_Call) Return(_a0 error) *CredentialStore_Clear_Call
func (*CredentialStore_Clear_Call) Run ¶
func (_c *CredentialStore_Clear_Call) Run(run func()) *CredentialStore_Clear_Call
func (*CredentialStore_Clear_Call) RunAndReturn ¶
func (_c *CredentialStore_Clear_Call) RunAndReturn(run func() error) *CredentialStore_Clear_Call
type CredentialStore_Expecter ¶
type CredentialStore_Expecter struct {
// contains filtered or unexported fields
}
func (*CredentialStore_Expecter) Clear ¶
func (_e *CredentialStore_Expecter) Clear() *CredentialStore_Clear_Call
Clear is a helper method to define mock.On call
func (*CredentialStore_Expecter) Get ¶
func (_e *CredentialStore_Expecter) Get(partitionKey interface{}) *CredentialStore_Get_Call
Get is a helper method to define mock.On call
- partitionKey string
func (*CredentialStore_Expecter) Set ¶
func (_e *CredentialStore_Expecter) Set(data interface{}, partitionKey interface{}) *CredentialStore_Set_Call
Set is a helper method to define mock.On call
- data []byte
- partitionKey string
type CredentialStore_Get_Call ¶
CredentialStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CredentialStore_Get_Call) Return ¶
func (_c *CredentialStore_Get_Call) Return(_a0 []byte, _a1 error) *CredentialStore_Get_Call
func (*CredentialStore_Get_Call) Run ¶
func (_c *CredentialStore_Get_Call) Run(run func(partitionKey string)) *CredentialStore_Get_Call
func (*CredentialStore_Get_Call) RunAndReturn ¶
func (_c *CredentialStore_Get_Call) RunAndReturn(run func(string) ([]byte, error)) *CredentialStore_Get_Call
type CredentialStore_Set_Call ¶
CredentialStore_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*CredentialStore_Set_Call) Return ¶
func (_c *CredentialStore_Set_Call) Return(_a0 error) *CredentialStore_Set_Call
func (*CredentialStore_Set_Call) Run ¶
func (_c *CredentialStore_Set_Call) Run(run func(data []byte, partitionKey string)) *CredentialStore_Set_Call
func (*CredentialStore_Set_Call) RunAndReturn ¶
func (_c *CredentialStore_Set_Call) RunAndReturn(run func([]byte, string) error) *CredentialStore_Set_Call
type ExportReplace ¶
ExportReplace is an autogenerated mock type for the ExportReplace type
func NewExportReplace ¶
func NewExportReplace(t interface {
mock.TestingT
Cleanup(func())
}) *ExportReplace
NewExportReplace creates a new instance of ExportReplace. 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 (*ExportReplace) EXPECT ¶
func (_m *ExportReplace) EXPECT() *ExportReplace_Expecter
func (*ExportReplace) Export ¶
func (_m *ExportReplace) Export(ctx context.Context, _a1 cache.Marshaler, hints cache.ExportHints) error
Export provides a mock function with given fields: ctx, _a1, hints
func (*ExportReplace) Replace ¶
func (_m *ExportReplace) Replace(ctx context.Context, _a1 cache.Unmarshaler, hints cache.ReplaceHints) error
Replace provides a mock function with given fields: ctx, _a1, hints
type ExportReplace_Expecter ¶
type ExportReplace_Expecter struct {
// contains filtered or unexported fields
}
func (*ExportReplace_Expecter) Export ¶
func (_e *ExportReplace_Expecter) Export(ctx interface{}, _a1 interface{}, hints interface{}) *ExportReplace_Export_Call
Export is a helper method to define mock.On call
- ctx context.Context
- _a1 cache.Marshaler
- hints cache.ExportHints
func (*ExportReplace_Expecter) Replace ¶
func (_e *ExportReplace_Expecter) Replace(ctx interface{}, _a1 interface{}, hints interface{}) *ExportReplace_Replace_Call
Replace is a helper method to define mock.On call
- ctx context.Context
- _a1 cache.Unmarshaler
- hints cache.ReplaceHints
type ExportReplace_Export_Call ¶
ExportReplace_Export_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Export'
func (*ExportReplace_Export_Call) Return ¶
func (_c *ExportReplace_Export_Call) Return(_a0 error) *ExportReplace_Export_Call
func (*ExportReplace_Export_Call) Run ¶
func (_c *ExportReplace_Export_Call) Run(run func(ctx context.Context, _a1 cache.Marshaler, hints cache.ExportHints)) *ExportReplace_Export_Call
func (*ExportReplace_Export_Call) RunAndReturn ¶
func (_c *ExportReplace_Export_Call) RunAndReturn(run func(context.Context, cache.Marshaler, cache.ExportHints) error) *ExportReplace_Export_Call
type ExportReplace_Replace_Call ¶
ExportReplace_Replace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Replace'
func (*ExportReplace_Replace_Call) Return ¶
func (_c *ExportReplace_Replace_Call) Return(_a0 error) *ExportReplace_Replace_Call
func (*ExportReplace_Replace_Call) Run ¶
func (_c *ExportReplace_Replace_Call) Run(run func(ctx context.Context, _a1 cache.Unmarshaler, hints cache.ReplaceHints)) *ExportReplace_Replace_Call
func (*ExportReplace_Replace_Call) RunAndReturn ¶
func (_c *ExportReplace_Replace_Call) RunAndReturn(run func(context.Context, cache.Unmarshaler, cache.ReplaceHints) error) *ExportReplace_Replace_Call
type FileSystemOption ¶
FileSystemOption is an autogenerated mock type for the FileSystemOption type
func NewFileSystemOption ¶
func NewFileSystemOption(t interface {
mock.TestingT
Cleanup(func())
}) *FileSystemOption
NewFileSystemOption creates a new instance of FileSystemOption. 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 (*FileSystemOption) EXPECT ¶
func (_m *FileSystemOption) EXPECT() *FileSystemOption_Expecter
func (*FileSystemOption) Execute ¶
func (_m *FileSystemOption) Execute(_a0 *credentialstore.FilesystemCredentialStore)
Execute provides a mock function with given fields: _a0
type FileSystemOption_Execute_Call ¶
FileSystemOption_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*FileSystemOption_Execute_Call) Return ¶
func (_c *FileSystemOption_Execute_Call) Return() *FileSystemOption_Execute_Call
func (*FileSystemOption_Execute_Call) Run ¶
func (_c *FileSystemOption_Execute_Call) Run(run func(_a0 *credentialstore.FilesystemCredentialStore)) *FileSystemOption_Execute_Call
func (*FileSystemOption_Execute_Call) RunAndReturn ¶
func (_c *FileSystemOption_Execute_Call) RunAndReturn(run func(*credentialstore.FilesystemCredentialStore)) *FileSystemOption_Execute_Call
type FileSystemOption_Expecter ¶
type FileSystemOption_Expecter struct {
// contains filtered or unexported fields
}
func (*FileSystemOption_Expecter) Execute ¶
func (_e *FileSystemOption_Expecter) Execute(_a0 interface{}) *FileSystemOption_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *credentialstore.FilesystemCredentialStore
type Marshaler ¶
Marshaler is an autogenerated mock type for the Marshaler type
func NewMarshaler ¶
NewMarshaler creates a new instance of Marshaler. 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 (*Marshaler) EXPECT ¶
func (_m *Marshaler) EXPECT() *Marshaler_Expecter
type Marshaler_Expecter ¶
type Marshaler_Expecter struct {
// contains filtered or unexported fields
}
func (*Marshaler_Expecter) Marshal ¶
func (_e *Marshaler_Expecter) Marshal() *Marshaler_Marshal_Call
Marshal is a helper method to define mock.On call
type Marshaler_Marshal_Call ¶
Marshaler_Marshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Marshal'
func (*Marshaler_Marshal_Call) Return ¶
func (_c *Marshaler_Marshal_Call) Return(_a0 []byte, _a1 error) *Marshaler_Marshal_Call
func (*Marshaler_Marshal_Call) Run ¶
func (_c *Marshaler_Marshal_Call) Run(run func()) *Marshaler_Marshal_Call
func (*Marshaler_Marshal_Call) RunAndReturn ¶
func (_c *Marshaler_Marshal_Call) RunAndReturn(run func() ([]byte, error)) *Marshaler_Marshal_Call
type Option ¶
Option is an autogenerated mock type for the Option type
func NewOption ¶
NewOption creates a new instance of Option. 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 (*Option) EXPECT ¶
func (_m *Option) EXPECT() *Option_Expecter
func (*Option) Execute ¶
func (_m *Option) Execute(_a0 *tokencache.TokenCache)
Execute provides a mock function with given fields: _a0
type Option_Execute_Call ¶
Option_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*Option_Execute_Call) Return ¶
func (_c *Option_Execute_Call) Return() *Option_Execute_Call
func (*Option_Execute_Call) Run ¶
func (_c *Option_Execute_Call) Run(run func(_a0 *tokencache.TokenCache)) *Option_Execute_Call
func (*Option_Execute_Call) RunAndReturn ¶
func (_c *Option_Execute_Call) RunAndReturn(run func(*tokencache.TokenCache)) *Option_Execute_Call
type Option_Expecter ¶
type Option_Expecter struct {
// contains filtered or unexported fields
}
func (*Option_Expecter) Execute ¶
func (_e *Option_Expecter) Execute(_a0 interface{}) *Option_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *tokencache.TokenCache
type Serializer ¶
Serializer is an autogenerated mock type for the Serializer type
func NewSerializer ¶
func NewSerializer(t interface {
mock.TestingT
Cleanup(func())
}) *Serializer
NewSerializer creates a new instance of Serializer. 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 (*Serializer) EXPECT ¶
func (_m *Serializer) EXPECT() *Serializer_Expecter
func (*Serializer) Marshal ¶
func (_m *Serializer) Marshal() ([]byte, error)
Marshal provides a mock function with given fields:
func (*Serializer) Unmarshal ¶
func (_m *Serializer) Unmarshal(_a0 []byte) error
Unmarshal provides a mock function with given fields: _a0
type Serializer_Expecter ¶
type Serializer_Expecter struct {
// contains filtered or unexported fields
}
func (*Serializer_Expecter) Marshal ¶
func (_e *Serializer_Expecter) Marshal() *Serializer_Marshal_Call
Marshal is a helper method to define mock.On call
func (*Serializer_Expecter) Unmarshal ¶
func (_e *Serializer_Expecter) Unmarshal(_a0 interface{}) *Serializer_Unmarshal_Call
Unmarshal is a helper method to define mock.On call
- _a0 []byte
type Serializer_Marshal_Call ¶
Serializer_Marshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Marshal'
func (*Serializer_Marshal_Call) Return ¶
func (_c *Serializer_Marshal_Call) Return(_a0 []byte, _a1 error) *Serializer_Marshal_Call
func (*Serializer_Marshal_Call) Run ¶
func (_c *Serializer_Marshal_Call) Run(run func()) *Serializer_Marshal_Call
func (*Serializer_Marshal_Call) RunAndReturn ¶
func (_c *Serializer_Marshal_Call) RunAndReturn(run func() ([]byte, error)) *Serializer_Marshal_Call
type Serializer_Unmarshal_Call ¶
Serializer_Unmarshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unmarshal'
func (*Serializer_Unmarshal_Call) Return ¶
func (_c *Serializer_Unmarshal_Call) Return(_a0 error) *Serializer_Unmarshal_Call
func (*Serializer_Unmarshal_Call) Run ¶
func (_c *Serializer_Unmarshal_Call) Run(run func(_a0 []byte)) *Serializer_Unmarshal_Call
func (*Serializer_Unmarshal_Call) RunAndReturn ¶
func (_c *Serializer_Unmarshal_Call) RunAndReturn(run func([]byte) error) *Serializer_Unmarshal_Call
type Unmarshaler ¶
Unmarshaler is an autogenerated mock type for the Unmarshaler type
func NewUnmarshaler ¶
func NewUnmarshaler(t interface {
mock.TestingT
Cleanup(func())
}) *Unmarshaler
NewUnmarshaler creates a new instance of Unmarshaler. 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 (*Unmarshaler) EXPECT ¶
func (_m *Unmarshaler) EXPECT() *Unmarshaler_Expecter
func (*Unmarshaler) Unmarshal ¶
func (_m *Unmarshaler) Unmarshal(_a0 []byte) error
Unmarshal provides a mock function with given fields: _a0
type Unmarshaler_Expecter ¶
type Unmarshaler_Expecter struct {
// contains filtered or unexported fields
}
func (*Unmarshaler_Expecter) Unmarshal ¶
func (_e *Unmarshaler_Expecter) Unmarshal(_a0 interface{}) *Unmarshaler_Unmarshal_Call
Unmarshal is a helper method to define mock.On call
- _a0 []byte
type Unmarshaler_Unmarshal_Call ¶
Unmarshaler_Unmarshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unmarshal'
func (*Unmarshaler_Unmarshal_Call) Return ¶
func (_c *Unmarshaler_Unmarshal_Call) Return(_a0 error) *Unmarshaler_Unmarshal_Call
func (*Unmarshaler_Unmarshal_Call) Run ¶
func (_c *Unmarshaler_Unmarshal_Call) Run(run func(_a0 []byte)) *Unmarshaler_Unmarshal_Call
func (*Unmarshaler_Unmarshal_Call) RunAndReturn ¶
func (_c *Unmarshaler_Unmarshal_Call) RunAndReturn(run func([]byte) error) *Unmarshaler_Unmarshal_Call