Documentation ¶
Index ¶
- type ProjectRepository
- func (_m *ProjectRepository) Get(projectID models.ID) (*models.Project, error)
- func (_m *ProjectRepository) GetByName(projectName string) (*models.Project, error)
- func (_m *ProjectRepository) ListAll() ([]*models.Project, error)
- func (_m *ProjectRepository) ListProjects(name string) ([]*models.Project, error)
- func (_m *ProjectRepository) Save(project *models.Project) (*models.Project, error)
- type SecretRepository
- type SecretStorageRepository
- func (_m *SecretStorageRepository) Delete(id models.ID) error
- func (_m *SecretStorageRepository) Get(id models.ID) (*models.SecretStorage, error)
- func (_m *SecretStorageRepository) GetGlobal(name string) (*models.SecretStorage, error)
- func (_m *SecretStorageRepository) List(projectID models.ID) ([]*models.SecretStorage, error)
- func (_m *SecretStorageRepository) ListAll() ([]*models.SecretStorage, error)
- func (_m *SecretStorageRepository) ListGlobal() ([]*models.SecretStorage, error)
- func (_m *SecretStorageRepository) Save(secretStorage *models.SecretStorage) (*models.SecretStorage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectRepository ¶
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) 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
type SecretRepository ¶
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
type SecretStorageRepository ¶
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 ¶
func (_m *SecretStorageRepository) Get(id models.ID) (*models.SecretStorage, error)
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 ¶
func (_m *SecretStorageRepository) Save(secretStorage *models.SecretStorage) (*models.SecretStorage, error)
Save provides a mock function with given fields: secretStorage