model

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSecretStore

type MockSecretStore struct {
	mock.Mock
}

MockSecretStore is an autogenerated mock type for the SecretStore type

func NewMockSecretStore

func NewMockSecretStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSecretStore

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

func (*MockSecretStore) GlobalSecretFind

func (_m *MockSecretStore) GlobalSecretFind(_a0 string) (*model.Secret, error)

GlobalSecretFind provides a mock function with given fields: _a0

func (*MockSecretStore) GlobalSecretList

func (_m *MockSecretStore) GlobalSecretList(_a0 *model.ListOptions) ([]*model.Secret, error)

GlobalSecretList provides a mock function with given fields: _a0

func (*MockSecretStore) OrgSecretFind

func (_m *MockSecretStore) OrgSecretFind(_a0 int64, _a1 string) (*model.Secret, error)

OrgSecretFind provides a mock function with given fields: _a0, _a1

func (*MockSecretStore) OrgSecretList

func (_m *MockSecretStore) OrgSecretList(_a0 int64, _a1 *model.ListOptions) ([]*model.Secret, error)

OrgSecretList provides a mock function with given fields: _a0, _a1

func (*MockSecretStore) SecretCreate

func (_m *MockSecretStore) SecretCreate(_a0 *model.Secret) error

SecretCreate provides a mock function with given fields: _a0

func (*MockSecretStore) SecretDelete

func (_m *MockSecretStore) SecretDelete(_a0 *model.Secret) error

SecretDelete provides a mock function with given fields: _a0

func (*MockSecretStore) SecretFind

func (_m *MockSecretStore) SecretFind(_a0 *model.Repo, _a1 string) (*model.Secret, error)

SecretFind provides a mock function with given fields: _a0, _a1

func (*MockSecretStore) SecretList

func (_m *MockSecretStore) SecretList(_a0 *model.Repo, _a1 bool, _a2 *model.ListOptions) ([]*model.Secret, error)

SecretList provides a mock function with given fields: _a0, _a1, _a2

func (*MockSecretStore) SecretListAll

func (_m *MockSecretStore) SecretListAll() ([]*model.Secret, error)

SecretListAll provides a mock function with no fields

func (*MockSecretStore) SecretUpdate

func (_m *MockSecretStore) SecretUpdate(_a0 *model.Secret) error

SecretUpdate provides a mock function with given fields: _a0

type MockSecretStore_Expecter

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

func (*MockSecretStore_Expecter) GlobalSecretFind

func (_e *MockSecretStore_Expecter) GlobalSecretFind(_a0 interface{}) *MockSecretStore_GlobalSecretFind_Call

GlobalSecretFind is a helper method to define mock.On call

  • _a0 string

func (*MockSecretStore_Expecter) GlobalSecretList

func (_e *MockSecretStore_Expecter) GlobalSecretList(_a0 interface{}) *MockSecretStore_GlobalSecretList_Call

GlobalSecretList is a helper method to define mock.On call

  • _a0 *model.ListOptions

func (*MockSecretStore_Expecter) OrgSecretFind

func (_e *MockSecretStore_Expecter) OrgSecretFind(_a0 interface{}, _a1 interface{}) *MockSecretStore_OrgSecretFind_Call

OrgSecretFind is a helper method to define mock.On call

  • _a0 int64
  • _a1 string

func (*MockSecretStore_Expecter) OrgSecretList

func (_e *MockSecretStore_Expecter) OrgSecretList(_a0 interface{}, _a1 interface{}) *MockSecretStore_OrgSecretList_Call

OrgSecretList is a helper method to define mock.On call

  • _a0 int64
  • _a1 *model.ListOptions

func (*MockSecretStore_Expecter) SecretCreate

func (_e *MockSecretStore_Expecter) SecretCreate(_a0 interface{}) *MockSecretStore_SecretCreate_Call

SecretCreate is a helper method to define mock.On call

  • _a0 *model.Secret

func (*MockSecretStore_Expecter) SecretDelete

func (_e *MockSecretStore_Expecter) SecretDelete(_a0 interface{}) *MockSecretStore_SecretDelete_Call

SecretDelete is a helper method to define mock.On call

  • _a0 *model.Secret

func (*MockSecretStore_Expecter) SecretFind

func (_e *MockSecretStore_Expecter) SecretFind(_a0 interface{}, _a1 interface{}) *MockSecretStore_SecretFind_Call

SecretFind is a helper method to define mock.On call

  • _a0 *model.Repo
  • _a1 string

func (*MockSecretStore_Expecter) SecretList

func (_e *MockSecretStore_Expecter) SecretList(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockSecretStore_SecretList_Call

SecretList is a helper method to define mock.On call

  • _a0 *model.Repo
  • _a1 bool
  • _a2 *model.ListOptions

func (*MockSecretStore_Expecter) SecretListAll

SecretListAll is a helper method to define mock.On call

func (*MockSecretStore_Expecter) SecretUpdate

func (_e *MockSecretStore_Expecter) SecretUpdate(_a0 interface{}) *MockSecretStore_SecretUpdate_Call

SecretUpdate is a helper method to define mock.On call

  • _a0 *model.Secret

type MockSecretStore_GlobalSecretFind_Call

type MockSecretStore_GlobalSecretFind_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_GlobalSecretFind_Call) Return

func (*MockSecretStore_GlobalSecretFind_Call) Run

func (*MockSecretStore_GlobalSecretFind_Call) RunAndReturn

type MockSecretStore_GlobalSecretList_Call

type MockSecretStore_GlobalSecretList_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_GlobalSecretList_Call) Return

func (*MockSecretStore_GlobalSecretList_Call) Run

func (*MockSecretStore_GlobalSecretList_Call) RunAndReturn

type MockSecretStore_OrgSecretFind_Call

type MockSecretStore_OrgSecretFind_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_OrgSecretFind_Call) Return

func (*MockSecretStore_OrgSecretFind_Call) Run

func (*MockSecretStore_OrgSecretFind_Call) RunAndReturn

type MockSecretStore_OrgSecretList_Call

type MockSecretStore_OrgSecretList_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_OrgSecretList_Call) Return

func (*MockSecretStore_OrgSecretList_Call) Run

func (*MockSecretStore_OrgSecretList_Call) RunAndReturn

type MockSecretStore_SecretCreate_Call

type MockSecretStore_SecretCreate_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_SecretCreate_Call) Return

func (*MockSecretStore_SecretCreate_Call) Run

func (*MockSecretStore_SecretCreate_Call) RunAndReturn

type MockSecretStore_SecretDelete_Call

type MockSecretStore_SecretDelete_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_SecretDelete_Call) Return

func (*MockSecretStore_SecretDelete_Call) Run

func (*MockSecretStore_SecretDelete_Call) RunAndReturn

type MockSecretStore_SecretFind_Call

type MockSecretStore_SecretFind_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_SecretFind_Call) Return

func (*MockSecretStore_SecretFind_Call) Run

func (*MockSecretStore_SecretFind_Call) RunAndReturn

type MockSecretStore_SecretListAll_Call

type MockSecretStore_SecretListAll_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_SecretListAll_Call) Return

func (*MockSecretStore_SecretListAll_Call) Run

func (*MockSecretStore_SecretListAll_Call) RunAndReturn

type MockSecretStore_SecretList_Call

type MockSecretStore_SecretList_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_SecretList_Call) Return

func (*MockSecretStore_SecretList_Call) Run

func (*MockSecretStore_SecretList_Call) RunAndReturn

type MockSecretStore_SecretUpdate_Call

type MockSecretStore_SecretUpdate_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_SecretUpdate_Call) Return

func (*MockSecretStore_SecretUpdate_Call) Run

func (*MockSecretStore_SecretUpdate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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