mocks

package
v1.13.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 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 ProjectRepository

type ProjectRepository struct {
	mock.Mock
}

ProjectRepository is an autogenerated mock type for the ProjectRepository type

func NewProjectRepository

func NewProjectRepository(t mockConstructorTestingTNewProjectRepository) *ProjectRepository

NewProjectRepository creates a new instance of ProjectRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProjectRepository) Get

func (_m *ProjectRepository) Get(projectID models.ID) (*models.Project, error)

Get provides a mock function with given fields: projectID

func (*ProjectRepository) GetByName

func (_m *ProjectRepository) GetByName(projectName string) (*models.Project, error)

GetByName provides a mock function with given fields: projectName

func (*ProjectRepository) ListAll

func (_m *ProjectRepository) ListAll() ([]*models.Project, error)

ListAll provides a mock function with given fields:

func (*ProjectRepository) ListProjects

func (_m *ProjectRepository) ListProjects(name string) ([]*models.Project, error)

ListProjects provides a mock function with given fields: name

func (*ProjectRepository) Save

func (_m *ProjectRepository) Save(project *models.Project) (*models.Project, error)

Save provides a mock function with given fields: project

type SecretRepository

type SecretRepository struct {
	mock.Mock
}

SecretRepository is an autogenerated mock type for the SecretRepository type

func NewSecretRepository

func NewSecretRepository(t mockConstructorTestingTNewSecretRepository) *SecretRepository

NewSecretRepository creates a new instance of SecretRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SecretRepository) Delete

func (_m *SecretRepository) Delete(id models.ID) error

Delete provides a mock function with given fields: id

func (*SecretRepository) Get

func (_m *SecretRepository) Get(id models.ID) (*models.Secret, error)

Get provides a mock function with given fields: id

func (*SecretRepository) List

func (_m *SecretRepository) List(projectID models.ID) ([]*models.Secret, error)

List provides a mock function with given fields: projectID

func (*SecretRepository) Save

func (_m *SecretRepository) Save(secret *models.Secret) (*models.Secret, error)

Save provides a mock function with given fields: secret

type SecretStorageRepository

type SecretStorageRepository struct {
	mock.Mock
}

SecretStorageRepository is an autogenerated mock type for the SecretStorageRepository type

func NewSecretStorageRepository

func NewSecretStorageRepository(t mockConstructorTestingTNewSecretStorageRepository) *SecretStorageRepository

NewSecretStorageRepository creates a new instance of SecretStorageRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SecretStorageRepository) Delete

func (_m *SecretStorageRepository) Delete(id models.ID) error

Delete provides a mock function with given fields: id

func (*SecretStorageRepository) Get

Get provides a mock function with given fields: id

func (*SecretStorageRepository) GetGlobal

func (_m *SecretStorageRepository) GetGlobal(name string) (*models.SecretStorage, error)

GetGlobal provides a mock function with given fields: name

func (*SecretStorageRepository) List

func (_m *SecretStorageRepository) List(projectID models.ID) ([]*models.SecretStorage, error)

List provides a mock function with given fields: projectID

func (*SecretStorageRepository) ListAll

func (_m *SecretStorageRepository) ListAll() ([]*models.SecretStorage, error)

ListAll provides a mock function with given fields:

func (*SecretStorageRepository) ListGlobal

func (_m *SecretStorageRepository) ListGlobal() ([]*models.SecretStorage, error)

ListGlobal provides a mock function with given fields:

func (*SecretStorageRepository) Save

Save provides a mock function with given fields: secretStorage

Jump to

Keyboard shortcuts

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