mocks

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 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 ApplicationService added in v1.8.0

type ApplicationService struct {
	mock.Mock
}

ApplicationService is an autogenerated mock type for the ApplicationService type

func NewApplicationService added in v1.8.0

func NewApplicationService(t mockConstructorTestingTNewApplicationService) *ApplicationService

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

func (*ApplicationService) List added in v1.8.0

func (_m *ApplicationService) List() ([]*models.Application, error)

List provides a mock function with given fields:

type ProjectsService

type ProjectsService struct {
	mock.Mock
}

ProjectsService is an autogenerated mock type for the ProjectsService type

func NewProjectsService added in v1.8.0

func NewProjectsService(t mockConstructorTestingTNewProjectsService) *ProjectsService

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

func (*ProjectsService) CreateProject

func (_m *ProjectsService) CreateProject(project *models.Project) (*models.Project, error)

CreateProject provides a mock function with given fields: project

func (*ProjectsService) FindByID

func (_m *ProjectsService) FindByID(projectID models.ID) (*models.Project, error)

FindByID provides a mock function with given fields: projectID

func (*ProjectsService) FindByName

func (_m *ProjectsService) FindByName(projectName string) (*models.Project, error)

FindByName provides a mock function with given fields: projectName

func (*ProjectsService) ListProjects

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

ListProjects provides a mock function with given fields: name

func (*ProjectsService) UpdateProject

func (_m *ProjectsService) UpdateProject(project *models.Project) (*models.Project, error)

UpdateProject provides a mock function with given fields: project

type SecretService

type SecretService struct {
	mock.Mock
}

SecretService is an autogenerated mock type for the SecretService type

func NewSecretService added in v1.8.0

func NewSecretService(t mockConstructorTestingTNewSecretService) *SecretService

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

func (*SecretService) Create added in v1.8.0

func (_m *SecretService) Create(secret *models.Secret) (*models.Secret, error)

Create provides a mock function with given fields: secret

func (*SecretService) Delete

func (_m *SecretService) Delete(secretID models.ID) error

Delete provides a mock function with given fields: secretID

func (*SecretService) FindByID added in v1.8.0

func (_m *SecretService) FindByID(secretID models.ID) (*models.Secret, error)

FindByID provides a mock function with given fields: secretID

func (*SecretService) List added in v1.8.0

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

List provides a mock function with given fields: projectID

func (*SecretService) Update added in v1.8.0

func (_m *SecretService) Update(secret *models.Secret) (*models.Secret, error)

Update provides a mock function with given fields: secret

type SecretStorageService added in v1.8.0

type SecretStorageService struct {
	mock.Mock
}

SecretStorageService is an autogenerated mock type for the SecretStorageService type

func NewSecretStorageService added in v1.8.0

func NewSecretStorageService(t mockConstructorTestingTNewSecretStorageService) *SecretStorageService

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

func (*SecretStorageService) Create added in v1.8.0

Create provides a mock function with given fields: ss

func (*SecretStorageService) Delete added in v1.8.0

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

Delete provides a mock function with given fields: id

func (*SecretStorageService) FindByID added in v1.8.0

func (_m *SecretStorageService) FindByID(id models.ID) (*models.SecretStorage, error)

FindByID provides a mock function with given fields: id

func (*SecretStorageService) List added in v1.8.0

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

List provides a mock function with given fields: projectID

func (*SecretStorageService) ListAll added in v1.8.0

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

ListAll provides a mock function with given fields:

func (*SecretStorageService) Update added in v1.8.0

Update provides a mock function with given fields: storage

Jump to

Keyboard shortcuts

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