mocks

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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 ProjectStorage

type ProjectStorage struct {
	mock.Mock
}

ProjectStorage is an autogenerated mock type for the ProjectStorage type

func (*ProjectStorage) Get

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

Get provides a mock function with given fields: projectID

func (*ProjectStorage) GetByName

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

GetByName provides a mock function with given fields: projectName

func (*ProjectStorage) ListProjects

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

ListProjects provides a mock function with given fields: name

func (*ProjectStorage) Save

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

Save provides a mock function with given fields: project

type SecretStorage

type SecretStorage struct {
	mock.Mock
}

SecretStorage is an autogenerated mock type for the SecretStorage type

func (*SecretStorage) Delete

func (_m *SecretStorage) Delete(id models.ID, projectID models.ID) error

Delete provides a mock function with given fields: id, projectID

func (*SecretStorage) GetAsPlainText

func (_m *SecretStorage) GetAsPlainText(id models.ID, projectID models.ID) (*models.Secret, error)

GetAsPlainText provides a mock function with given fields: id, projectID

func (*SecretStorage) GetByNameAsPlainText

func (_m *SecretStorage) GetByNameAsPlainText(name string, projectID models.ID) (*models.Secret, error)

GetByNameAsPlainText provides a mock function with given fields: name, projectID

func (*SecretStorage) List

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

List provides a mock function with given fields: projectID

func (*SecretStorage) Save

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

Save provides a mock function with given fields: secret

Jump to

Keyboard shortcuts

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