credentials

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

type MockBackend struct {
	mock.Mock
}

MockBackend is an autogenerated mock type for the Backend type

func NewMockBackend

func NewMockBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBackend

NewMockBackend creates a new instance of MockBackend. 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 (*MockBackend) Available

func (_mock *MockBackend) Available() bool

Available provides a mock function for the type MockBackend

func (*MockBackend) Delete

func (_mock *MockBackend) Delete(ctx context.Context, service string, account string) error

Delete provides a mock function for the type MockBackend

func (*MockBackend) EXPECT

func (_m *MockBackend) EXPECT() *MockBackend_Expecter

func (*MockBackend) Retrieve

func (_mock *MockBackend) Retrieve(ctx context.Context, service string, account string) (string, error)

Retrieve provides a mock function for the type MockBackend

func (*MockBackend) Store

func (_mock *MockBackend) Store(ctx context.Context, service string, account string, secret string) error

Store provides a mock function for the type MockBackend

type MockBackend_Available_Call

type MockBackend_Available_Call struct {
	*mock.Call
}

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

func (*MockBackend_Available_Call) Return

func (*MockBackend_Available_Call) Run

func (*MockBackend_Available_Call) RunAndReturn

func (_c *MockBackend_Available_Call) RunAndReturn(run func() bool) *MockBackend_Available_Call

type MockBackend_Delete_Call

type MockBackend_Delete_Call struct {
	*mock.Call
}

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

func (*MockBackend_Delete_Call) Return

func (*MockBackend_Delete_Call) Run

func (_c *MockBackend_Delete_Call) Run(run func(ctx context.Context, service string, account string)) *MockBackend_Delete_Call

func (*MockBackend_Delete_Call) RunAndReturn

func (_c *MockBackend_Delete_Call) RunAndReturn(run func(ctx context.Context, service string, account string) error) *MockBackend_Delete_Call

type MockBackend_Expecter

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

func (*MockBackend_Expecter) Available

Available is a helper method to define mock.On call

func (*MockBackend_Expecter) Delete

func (_e *MockBackend_Expecter) Delete(ctx interface{}, service interface{}, account interface{}) *MockBackend_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • service string
  • account string

func (*MockBackend_Expecter) Retrieve

func (_e *MockBackend_Expecter) Retrieve(ctx interface{}, service interface{}, account interface{}) *MockBackend_Retrieve_Call

Retrieve is a helper method to define mock.On call

  • ctx context.Context
  • service string
  • account string

func (*MockBackend_Expecter) Store

func (_e *MockBackend_Expecter) Store(ctx interface{}, service interface{}, account interface{}, secret interface{}) *MockBackend_Store_Call

Store is a helper method to define mock.On call

  • ctx context.Context
  • service string
  • account string
  • secret string

type MockBackend_Retrieve_Call

type MockBackend_Retrieve_Call struct {
	*mock.Call
}

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

func (*MockBackend_Retrieve_Call) Return

func (*MockBackend_Retrieve_Call) Run

func (_c *MockBackend_Retrieve_Call) Run(run func(ctx context.Context, service string, account string)) *MockBackend_Retrieve_Call

func (*MockBackend_Retrieve_Call) RunAndReturn

func (_c *MockBackend_Retrieve_Call) RunAndReturn(run func(ctx context.Context, service string, account string) (string, error)) *MockBackend_Retrieve_Call

type MockBackend_Store_Call

type MockBackend_Store_Call struct {
	*mock.Call
}

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

func (*MockBackend_Store_Call) Return

func (*MockBackend_Store_Call) Run

func (_c *MockBackend_Store_Call) Run(run func(ctx context.Context, service string, account string, secret string)) *MockBackend_Store_Call

func (*MockBackend_Store_Call) RunAndReturn

func (_c *MockBackend_Store_Call) RunAndReturn(run func(ctx context.Context, service string, account string, secret string) error) *MockBackend_Store_Call

type MockKeyWriter

type MockKeyWriter struct {
	mock.Mock
}

MockKeyWriter is an autogenerated mock type for the KeyWriter type

func NewMockKeyWriter

func NewMockKeyWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockKeyWriter

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

func (_m *MockKeyWriter) EXPECT() *MockKeyWriter_Expecter

func (*MockKeyWriter) Set

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

Set provides a mock function for the type MockKeyWriter

type MockKeyWriter_Expecter

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

func (*MockKeyWriter_Expecter) Set

func (_e *MockKeyWriter_Expecter) Set(key interface{}, value interface{}) *MockKeyWriter_Set_Call

Set is a helper method to define mock.On call

  • key string
  • value any

type MockKeyWriter_Set_Call

type MockKeyWriter_Set_Call struct {
	*mock.Call
}

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

func (*MockKeyWriter_Set_Call) Return

func (*MockKeyWriter_Set_Call) Run

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

func (*MockKeyWriter_Set_Call) RunAndReturn

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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