Documentation ¶
Index ¶
- type ApplicationService
- type ProjectsService
- func (_m *ProjectsService) CreateProject(project *models.Project) (*models.Project, error)
- func (_m *ProjectsService) FindByID(projectID models.ID) (*models.Project, error)
- func (_m *ProjectsService) FindByName(projectName string) (*models.Project, error)
- func (_m *ProjectsService) ListProjects(name string) ([]*models.Project, error)
- func (_m *ProjectsService) UpdateProject(project *models.Project) (*models.Project, error)
- type SecretService
- func (_m *SecretService) Create(secret *models.Secret) (*models.Secret, error)
- func (_m *SecretService) Delete(secretID models.ID) error
- func (_m *SecretService) FindByID(secretID models.ID) (*models.Secret, error)
- func (_m *SecretService) List(projectID models.ID) ([]*models.Secret, error)
- func (_m *SecretService) Update(secret *models.Secret) (*models.Secret, error)
- type SecretStorageService
- func (_m *SecretStorageService) Create(ss *models.SecretStorage) (*models.SecretStorage, error)
- func (_m *SecretStorageService) Delete(id models.ID) error
- func (_m *SecretStorageService) FindByID(id models.ID) (*models.SecretStorage, error)
- func (_m *SecretStorageService) List(projectID models.ID) ([]*models.SecretStorage, error)
- func (_m *SecretStorageService) ListAll() ([]*models.SecretStorage, error)
- func (_m *SecretStorageService) Update(storage *models.SecretStorage) (*models.SecretStorage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationService ¶ added in v1.8.0
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 ¶
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 ¶
CreateProject provides a mock function with given fields: project
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 ¶
UpdateProject provides a mock function with given fields: project
type SecretService ¶
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
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
FindByID provides a mock function with given fields: secretID
type SecretStorageService ¶ added in v1.8.0
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
func (_m *SecretStorageService) Create(ss *models.SecretStorage) (*models.SecretStorage, error)
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
func (_m *SecretStorageService) Update(storage *models.SecretStorage) (*models.SecretStorage, error)
Update provides a mock function with given fields: storage