mocks

package
v0.0.0-...-45cbd8e Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 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 CompareEnvsQueryDAOInterface

type CompareEnvsQueryDAOInterface struct {
	mock.Mock
}

CompareEnvsQueryDAOInterface is an autogenerated mock type for the CompareEnvsQueryDAOInterface type

func (*CompareEnvsQueryDAOInterface) DeleteCompareEnvQuery

func (_m *CompareEnvsQueryDAOInterface) DeleteCompareEnvQuery(id int) error

DeleteCompareEnvQuery provides a mock function with given fields: id

func (*CompareEnvsQueryDAOInterface) GetByUser

func (_m *CompareEnvsQueryDAOInterface) GetByUser(userID int) ([]model.CompareEnvsQuery, error)

GetByUser provides a mock function with given fields: userID

func (*CompareEnvsQueryDAOInterface) SaveCompareEnvsQuery

func (_m *CompareEnvsQueryDAOInterface) SaveCompareEnvsQuery(env model.CompareEnvsQuery) (int, error)

SaveCompareEnvsQuery provides a mock function with given fields: env

type ConfigDAOInterface

type ConfigDAOInterface struct {
	mock.Mock
}

ConfigDAOInterface is an autogenerated mock type for the ConfigDAOInterface type

func (*ConfigDAOInterface) CreateOrUpdateConfig

func (_m *ConfigDAOInterface) CreateOrUpdateConfig(item model2.ConfigMap) (int, error)

CreateOrUpdateConfig provides a mock function with given fields: item

func (*ConfigDAOInterface) GetConfigByName

func (_m *ConfigDAOInterface) GetConfigByName(name string) (model2.ConfigMap, error)

GetConfigByName provides a mock function with given fields: name

type DeploymentDAOInterface

type DeploymentDAOInterface struct {
	mock.Mock
}

DeploymentDAOInterface is an autogenerated mock type for the DeploymentDAOInterface type

func (*DeploymentDAOInterface) CountDeployments

func (_m *DeploymentDAOInterface) CountDeployments(environmentID string, requestDeploymentID string) (int64, error)

CountDeployments provides a mock function with given fields: environmentID, requestDeploymentID

func (*DeploymentDAOInterface) CreateDeployment

func (_m *DeploymentDAOInterface) CreateDeployment(deployment model.Deployment) (int, error)

CreateDeployment provides a mock function with given fields: deployment

func (*DeploymentDAOInterface) EditDeployment

func (_m *DeploymentDAOInterface) EditDeployment(deployment model.Deployment) error

EditDeployment provides a mock function with given fields: deployment

func (*DeploymentDAOInterface) GetDeploymentByID

func (_m *DeploymentDAOInterface) GetDeploymentByID(id int) (model.Deployment, error)

GetDeploymentByID provides a mock function with given fields: id

func (*DeploymentDAOInterface) ListDeployments

func (_m *DeploymentDAOInterface) ListDeployments(environmentID string, requestDeploymentID string, pageNumber int, pageSize int) ([]model.Deployments, error)

ListDeployments provides a mock function with given fields: environmentID, requestDeploymentID, pageNumber, pageSize

type DockerDAOInterface

type DockerDAOInterface struct {
	mock.Mock
}

DockerDAOInterface is an autogenerated mock type for the DockerDAOInterface type

func (*DockerDAOInterface) CreateDockerRepo

func (_m *DockerDAOInterface) CreateDockerRepo(item model2.DockerRepo) (int, error)

CreateDockerRepo provides a mock function with given fields: item

func (*DockerDAOInterface) DeleteDockerRepo

func (_m *DockerDAOInterface) DeleteDockerRepo(id int) error

DeleteDockerRepo provides a mock function with given fields: id

func (*DockerDAOInterface) GetDockerRepositoryByHost

func (_m *DockerDAOInterface) GetDockerRepositoryByHost(host string) (model2.DockerRepo, error)

GetDockerRepositoryByHost provides a mock function with given fields: host

func (*DockerDAOInterface) ListDockerRepos

func (_m *DockerDAOInterface) ListDockerRepos() ([]model2.DockerRepo, error)

ListDockerRepos provides a mock function with given fields:

type EnvironmentDAOInterface

type EnvironmentDAOInterface struct {
	mock.Mock
}

EnvironmentDAOInterface is an autogenerated mock type for the EnvironmentDAOInterface type

func (*EnvironmentDAOInterface) CreateEnvironment

func (_m *EnvironmentDAOInterface) CreateEnvironment(env model2.Environment) (int, error)

CreateEnvironment provides a mock function with given fields: env

func (*EnvironmentDAOInterface) DeleteEnvironment

func (_m *EnvironmentDAOInterface) DeleteEnvironment(env model2.Environment) error

DeleteEnvironment provides a mock function with given fields: env

func (*EnvironmentDAOInterface) EditEnvironment

func (_m *EnvironmentDAOInterface) EditEnvironment(env model2.Environment) error

EditEnvironment provides a mock function with given fields: env

func (*EnvironmentDAOInterface) GetAllEnvironments

func (_m *EnvironmentDAOInterface) GetAllEnvironments(principal string) ([]model2.Environment, error)

GetAllEnvironments provides a mock function with given fields: principal

func (*EnvironmentDAOInterface) GetByID

func (_m *EnvironmentDAOInterface) GetByID(envID int) (*model2.Environment, error)

GetByID provides a mock function with given fields: envID

type ProductDAOInterface

type ProductDAOInterface struct {
	mock.Mock
}

ProductDAOInterface is an autogenerated mock type for the ProductDAOInterface type

func (*ProductDAOInterface) CreateProduct

func (_m *ProductDAOInterface) CreateProduct(e model.Product) (int, error)

CreateProduct provides a mock function with given fields: e

func (*ProductDAOInterface) CreateProductVersion

func (_m *ProductDAOInterface) CreateProductVersion(e model.ProductVersion) (int, error)

CreateProductVersion provides a mock function with given fields: e

func (*ProductDAOInterface) CreateProductVersionCopying

func (_m *ProductDAOInterface) CreateProductVersionCopying(payload model.ProductVersion) (int, error)

CreateProductVersionCopying provides a mock function with given fields: payload

func (*ProductDAOInterface) CreateProductVersionService

func (_m *ProductDAOInterface) CreateProductVersionService(e model.ProductVersionService) (int, error)

CreateProductVersionService provides a mock function with given fields: e

func (*ProductDAOInterface) DeleteProduct

func (_m *ProductDAOInterface) DeleteProduct(id int) error

DeleteProduct provides a mock function with given fields: id

func (*ProductDAOInterface) DeleteProductVersion

func (_m *ProductDAOInterface) DeleteProductVersion(id int) error

DeleteProductVersion provides a mock function with given fields: id

func (*ProductDAOInterface) DeleteProductVersionService

func (_m *ProductDAOInterface) DeleteProductVersionService(id int) error

DeleteProductVersionService provides a mock function with given fields: id

func (*ProductDAOInterface) EditProduct

func (_m *ProductDAOInterface) EditProduct(e model.Product) error

EditProduct provides a mock function with given fields: e

func (*ProductDAOInterface) EditProductVersion

func (_m *ProductDAOInterface) EditProductVersion(e model.ProductVersion) error

EditProductVersion provides a mock function with given fields: e

func (*ProductDAOInterface) EditProductVersionService

func (_m *ProductDAOInterface) EditProductVersionService(e model.ProductVersionService) error

EditProductVersionService provides a mock function with given fields: e

func (*ProductDAOInterface) FindProductByID

func (_m *ProductDAOInterface) FindProductByID(id int) (model.Product, error)

FindProductByID provides a mock function with given fields: id

func (*ProductDAOInterface) ListProductVersionsByID

func (_m *ProductDAOInterface) ListProductVersionsByID(id int) (*model.ProductVersion, error)

ListProductVersionsByID provides a mock function with given fields: id

func (*ProductDAOInterface) ListProductVersionsServiceByID

func (_m *ProductDAOInterface) ListProductVersionsServiceByID(id int) (*model.ProductVersionService, error)

ListProductVersionsServiceByID provides a mock function with given fields: id

func (*ProductDAOInterface) ListProducts

func (_m *ProductDAOInterface) ListProducts() ([]model.Product, error)

ListProducts provides a mock function with given fields:

func (*ProductDAOInterface) ListProductsVersionServices

func (_m *ProductDAOInterface) ListProductsVersionServices(id int) ([]model.ProductVersionService, error)

ListProductsVersionServices provides a mock function with given fields: id

func (*ProductDAOInterface) ListProductsVersions

func (_m *ProductDAOInterface) ListProductsVersions(id int) ([]model.ProductVersion, error)

ListProductsVersions provides a mock function with given fields: id

type RequestDeploymentDAOInterface

type RequestDeploymentDAOInterface struct {
	mock.Mock
}

RequestDeploymentDAOInterface is an autogenerated mock type for the RequestDeploymentDAOInterface type

func (*RequestDeploymentDAOInterface) CheckIfRequestHasEnded

func (_m *RequestDeploymentDAOInterface) CheckIfRequestHasEnded(id int) (bool, error)

CheckIfRequestHasEnded provides a mock function with given fields: id

func (*RequestDeploymentDAOInterface) CountRequestDeployments

func (_m *RequestDeploymentDAOInterface) CountRequestDeployments(startDate string, endDate string, environmentID string, userID string) (int64, error)

CountRequestDeployments provides a mock function with given fields: startDate, endDate, environmentID, userID

func (*RequestDeploymentDAOInterface) CreateRequestDeployment

func (_m *RequestDeploymentDAOInterface) CreateRequestDeployment(deployment model.RequestDeployment) (int, error)

CreateRequestDeployment provides a mock function with given fields: deployment

func (*RequestDeploymentDAOInterface) EditRequestDeployment

func (_m *RequestDeploymentDAOInterface) EditRequestDeployment(rd model.RequestDeployment) error

EditRequestDeployment provides a mock function with given fields: rd

func (*RequestDeploymentDAOInterface) GetRequestDeploymentByID

func (_m *RequestDeploymentDAOInterface) GetRequestDeploymentByID(id int) (model.RequestDeployment, error)

GetRequestDeploymentByID provides a mock function with given fields: id

func (*RequestDeploymentDAOInterface) HasErrorInRequest

func (_m *RequestDeploymentDAOInterface) HasErrorInRequest(id int) (bool, error)

HasErrorInRequest provides a mock function with given fields: id

func (*RequestDeploymentDAOInterface) ListRequestDeployments

func (_m *RequestDeploymentDAOInterface) ListRequestDeployments(startDate string, endDate string, environmentID string, userID string, id int, pageNumber int, pageSize int) ([]model.RequestDeployments, error)

ListRequestDeployments provides a mock function with given fields: startDate, endDate, environmentID, userID, id, pageNumber, pageSize

type SecurityOperationDAOInterface

type SecurityOperationDAOInterface struct {
	mock.Mock
}

SecurityOperationDAOInterface is an autogenerated mock type for the SecurityOperationDAOInterface type

func (*SecurityOperationDAOInterface) CreateOrUpdate

CreateOrUpdate provides a mock function with given fields: so

func (*SecurityOperationDAOInterface) Delete

func (_m *SecurityOperationDAOInterface) Delete(id int) error

Delete provides a mock function with given fields: id

func (*SecurityOperationDAOInterface) List

List provides a mock function with given fields:

type SolutionChartDAOInterface

type SolutionChartDAOInterface struct {
	mock.Mock
}

SolutionChartDAOInterface is an autogenerated mock type for the SolutionChartDAOInterface type

func (*SolutionChartDAOInterface) CreateSolutionChart

func (_m *SolutionChartDAOInterface) CreateSolutionChart(element model2.SolutionChart) error

CreateSolutionChart provides a mock function with given fields: element

func (*SolutionChartDAOInterface) DeleteSolutionChart

func (_m *SolutionChartDAOInterface) DeleteSolutionChart(id int) error

DeleteSolutionChart provides a mock function with given fields: id

func (*SolutionChartDAOInterface) ListSolutionChart

func (_m *SolutionChartDAOInterface) ListSolutionChart(id int) ([]model2.SolutionChart, error)

ListSolutionChart provides a mock function with given fields: id

type SolutionDAOInterface

type SolutionDAOInterface struct {
	mock.Mock
}

SolutionDAOInterface is an autogenerated mock type for the SolutionDAOInterface type

func (*SolutionDAOInterface) CreateSolution

func (_m *SolutionDAOInterface) CreateSolution(solution model2.Solution) (int, error)

CreateSolution provides a mock function with given fields: solution

func (*SolutionDAOInterface) DeleteSolution

func (_m *SolutionDAOInterface) DeleteSolution(id int) error

DeleteSolution provides a mock function with given fields: id

func (*SolutionDAOInterface) EditSolution

func (_m *SolutionDAOInterface) EditSolution(solution model2.Solution) error

EditSolution provides a mock function with given fields: solution

func (*SolutionDAOInterface) ListSolutions

func (_m *SolutionDAOInterface) ListSolutions() ([]model2.Solution, error)

ListSolutions provides a mock function with given fields:

type UserDAOInterface

type UserDAOInterface struct {
	mock.Mock
}

UserDAOInterface is an autogenerated mock type for the UserDAOInterface type

func (*UserDAOInterface) AssociateEnvironmentUser

func (_m *UserDAOInterface) AssociateEnvironmentUser(userID int, environmentID int) error

AssociateEnvironmentUser provides a mock function with given fields: userID, environmentID

func (*UserDAOInterface) CreateOrUpdateUser

func (_m *UserDAOInterface) CreateOrUpdateUser(user model.User) error

CreateOrUpdateUser provides a mock function with given fields: user

func (*UserDAOInterface) CreateUser

func (_m *UserDAOInterface) CreateUser(user model.User) error

CreateUser provides a mock function with given fields: user

func (*UserDAOInterface) DeleteUser

func (_m *UserDAOInterface) DeleteUser(id int) error

DeleteUser provides a mock function with given fields: id

func (*UserDAOInterface) FindByEmail

func (_m *UserDAOInterface) FindByEmail(email string) (model.User, error)

FindByEmail provides a mock function with given fields: email

func (*UserDAOInterface) FindByID

func (_m *UserDAOInterface) FindByID(id string) (model.User, error)

FindByID provides a mock function with given fields: id

func (*UserDAOInterface) FindByUsersIDFilteredByIntersectionEnv

func (_m *UserDAOInterface) FindByUsersIDFilteredByIntersectionEnv(userID int, userRequesterID int) (model.User, error)

FindByUsersIDFilteredByIntersectionEnv provides a mock function with given fields: userID, userRequesterID

func (*UserDAOInterface) ListAllUsers

func (_m *UserDAOInterface) ListAllUsers(email string) ([]model.LightUser, error)

ListAllUsers provides a mock function with given fields: email

type UserEnvironmentRoleDAOInterface

type UserEnvironmentRoleDAOInterface struct {
	mock.Mock
}

UserEnvironmentRoleDAOInterface is an autogenerated mock type for the UserEnvironmentRoleDAOInterface type

func (*UserEnvironmentRoleDAOInterface) CreateOrUpdate

CreateOrUpdate provides a mock function with given fields: so

func (*UserEnvironmentRoleDAOInterface) GetRoleByUserAndEnvironment

func (_m *UserEnvironmentRoleDAOInterface) GetRoleByUserAndEnvironment(user model.User, envID uint) (*model.SecurityOperation, error)

GetRoleByUserAndEnvironment provides a mock function with given fields: user, envID

func (*UserEnvironmentRoleDAOInterface) GetUsersAndRoleByEnv

func (_m *UserEnvironmentRoleDAOInterface) GetUsersAndRoleByEnv(id int) ([]model.UserEnvRole, error)

GetUsersAndRoleByEnv provides a mock function with given fields: id

type ValueRuleDAOInterface

type ValueRuleDAOInterface struct {
	mock.Mock
}

ValueRuleDAOInterface is an autogenerated mock type for the ValueRuleDAOInterface type

func (*ValueRuleDAOInterface) CreateValueRule

func (_m *ValueRuleDAOInterface) CreateValueRule(e model.ValueRule) (int, error)

CreateValueRule provides a mock function with given fields: e

func (*ValueRuleDAOInterface) DeleteValueRule

func (_m *ValueRuleDAOInterface) DeleteValueRule(id int) error

DeleteValueRule provides a mock function with given fields: id

func (*ValueRuleDAOInterface) EditValueRule

func (_m *ValueRuleDAOInterface) EditValueRule(e model.ValueRule) error

EditValueRule provides a mock function with given fields: e

func (*ValueRuleDAOInterface) ListValueRules

func (_m *ValueRuleDAOInterface) ListValueRules(variableRuleID int) ([]model.ValueRule, error)

ListValueRules provides a mock function with given fields: variableRuleID

type VariableDAOInterface

type VariableDAOInterface struct {
	mock.Mock
}

VariableDAOInterface is an autogenerated mock type for the VariableDAOInterface type

func (*VariableDAOInterface) CreateVariable

func (_m *VariableDAOInterface) CreateVariable(variable model.Variable) (map[string]string, bool, error)

CreateVariable provides a mock function with given fields: variable

func (*VariableDAOInterface) CreateVariableWithDefaultValue

func (_m *VariableDAOInterface) CreateVariableWithDefaultValue(variable model.Variable) (map[string]string, bool, error)

CreateVariableWithDefaultValue provides a mock function with given fields: variable

func (*VariableDAOInterface) DeleteVariable

func (_m *VariableDAOInterface) DeleteVariable(id int) error

DeleteVariable provides a mock function with given fields: id

func (*VariableDAOInterface) DeleteVariableByEnvironmentID

func (_m *VariableDAOInterface) DeleteVariableByEnvironmentID(envID int) error

DeleteVariableByEnvironmentID provides a mock function with given fields: envID

func (*VariableDAOInterface) EditVariable

func (_m *VariableDAOInterface) EditVariable(data model.Variable) error

EditVariable provides a mock function with given fields: data

func (*VariableDAOInterface) GetAllVariablesByEnvironment

func (_m *VariableDAOInterface) GetAllVariablesByEnvironment(envID int) ([]model.Variable, error)

GetAllVariablesByEnvironment provides a mock function with given fields: envID

func (*VariableDAOInterface) GetAllVariablesByEnvironmentAndScope

func (_m *VariableDAOInterface) GetAllVariablesByEnvironmentAndScope(envID int, scope string) ([]model.Variable, error)

GetAllVariablesByEnvironmentAndScope provides a mock function with given fields: envID, scope

func (*VariableDAOInterface) GetAllVariablesByEnvironmentsAndScopes

func (_m *VariableDAOInterface) GetAllVariablesByEnvironmentsAndScopes(envID []string, scope []string) ([]model.Variable, error)

GetAllVariablesByEnvironmentsAndScopes provides a mock function with given fields: envID, scope

func (*VariableDAOInterface) GetByID

func (_m *VariableDAOInterface) GetByID(id uint) (*model.Variable, error)

GetByID provides a mock function with given fields: id

func (*VariableDAOInterface) GetVarImageTagByEnvAndScope

func (_m *VariableDAOInterface) GetVarImageTagByEnvAndScope(envID int, scope string) (model.Variable, error)

GetVarImageTagByEnvAndScope provides a mock function with given fields: envID, scope

type VariableRuleDAOInterface

type VariableRuleDAOInterface struct {
	mock.Mock
}

VariableRuleDAOInterface is an autogenerated mock type for the VariableRuleDAOInterface type

func (*VariableRuleDAOInterface) CreateVariableRule

func (_m *VariableRuleDAOInterface) CreateVariableRule(e model.VariableRule) (int, error)

CreateVariableRule provides a mock function with given fields: e

func (*VariableRuleDAOInterface) DeleteVariableRule

func (_m *VariableRuleDAOInterface) DeleteVariableRule(id int) error

DeleteVariableRule provides a mock function with given fields: id

func (*VariableRuleDAOInterface) EditVariableRule

func (_m *VariableRuleDAOInterface) EditVariableRule(e model.VariableRule) error

EditVariableRule provides a mock function with given fields: e

func (*VariableRuleDAOInterface) ListVariableRules

func (_m *VariableRuleDAOInterface) ListVariableRules() ([]model.VariableRule, error)

ListVariableRules provides a mock function with given fields:

type WebHookDAOInterface

type WebHookDAOInterface struct {
	mock.Mock
}

WebHookDAOInterface is an autogenerated mock type for the WebHookDAOInterface type

func (*WebHookDAOInterface) CreateWebHook

func (_m *WebHookDAOInterface) CreateWebHook(e model.WebHook) (int, error)

CreateWebHook provides a mock function with given fields: e

func (*WebHookDAOInterface) DeleteWebHook

func (_m *WebHookDAOInterface) DeleteWebHook(id int) error

DeleteWebHook provides a mock function with given fields: id

func (*WebHookDAOInterface) EditWebHook

func (_m *WebHookDAOInterface) EditWebHook(e model.WebHook) error

EditWebHook provides a mock function with given fields: e

func (*WebHookDAOInterface) ListWebHooks

func (_m *WebHookDAOInterface) ListWebHooks() ([]model.WebHook, error)

ListWebHooks provides a mock function with given fields:

func (*WebHookDAOInterface) ListWebHooksByEnvAndType

func (_m *WebHookDAOInterface) ListWebHooksByEnvAndType(environmentID int, hookType string) ([]model.WebHook, error)

ListWebHooksByEnvAndType provides a mock function with given fields: environmentID, hookType

Jump to

Keyboard shortcuts

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