Documentation ¶
Index ¶
- type CompareEnvsQueryDAOImpl
- type CompareEnvsQueryDAOInterface
- type ConfigDAOImpl
- type ConfigDAOInterface
- type DeploymentDAOImpl
- func (dao DeploymentDAOImpl) CountDeployments(environmentID, requestDeploymentID string) (int64, error)
- func (dao DeploymentDAOImpl) CreateDeployment(deployment model.Deployment) (int, error)
- func (dao DeploymentDAOImpl) EditDeployment(deployment model.Deployment) error
- func (dao DeploymentDAOImpl) GetDeploymentByID(id int) (model.Deployment, error)
- func (dao DeploymentDAOImpl) ListDeployments(environmentID, requestDeploymentID string, pageNumber, pageSize int) ([]model.Deployments, error)
- type DeploymentDAOInterface
- type DockerDAOImpl
- type DockerDAOInterface
- type EnvironmentDAOImpl
- func (dao EnvironmentDAOImpl) CreateEnvironment(env model2.Environment) (int, error)
- func (dao EnvironmentDAOImpl) DeleteEnvironment(env model2.Environment) error
- func (dao EnvironmentDAOImpl) EditEnvironment(env model2.Environment) error
- func (dao EnvironmentDAOImpl) GetAllEnvironments(principal string) ([]model2.Environment, error)
- func (dao EnvironmentDAOImpl) GetByID(envID int) (*model2.Environment, error)
- type EnvironmentDAOInterface
- type NotesDAOImpl
- type NotesDAOInterface
- type ProductDAOImpl
- func (dao ProductDAOImpl) CreateProduct(e model2.Product) (int, error)
- func (dao ProductDAOImpl) CreateProductVersion(e model2.ProductVersion) (int, error)
- func (dao ProductDAOImpl) CreateProductVersionCopying(payload model2.ProductVersion) (int, error)
- func (dao ProductDAOImpl) CreateProductVersionService(e model2.ProductVersionService) (int, error)
- func (dao ProductDAOImpl) DeleteProduct(id int) error
- func (dao ProductDAOImpl) DeleteProductVersion(id int) error
- func (dao ProductDAOImpl) DeleteProductVersionService(id int) error
- func (dao ProductDAOImpl) EditProduct(e model2.Product) error
- func (dao ProductDAOImpl) EditProductVersion(e model2.ProductVersion) error
- func (dao ProductDAOImpl) EditProductVersionService(e model2.ProductVersionService) error
- func (dao ProductDAOImpl) FindProductByID(id int) (model2.Product, error)
- func (dao ProductDAOImpl) ListProductVersionsByID(id int) (*model2.ProductVersion, error)
- func (dao ProductDAOImpl) ListProductVersionsServiceByID(id int) (*model2.ProductVersionService, error)
- func (dao ProductDAOImpl) ListProducts() ([]model2.Product, error)
- func (dao ProductDAOImpl) ListProductsVersionServices(id int) ([]model2.ProductVersionService, error)
- func (dao ProductDAOImpl) ListProductsVersions(id int) ([]model2.ProductVersion, error)
- type ProductDAOInterface
- type RequestDeploymentDAOImpl
- func (dao RequestDeploymentDAOImpl) CheckIfRequestHasEnded(id int) (bool, error)
- func (dao RequestDeploymentDAOImpl) CountRequestDeployments(startDate, endDate, environmentID, userID string) (int64, error)
- func (dao RequestDeploymentDAOImpl) CreateRequestDeployment(rd model.RequestDeployment) (int, error)
- func (dao RequestDeploymentDAOImpl) EditRequestDeployment(rd model.RequestDeployment) error
- func (dao RequestDeploymentDAOImpl) GetRequestDeploymentByID(id int) (model.RequestDeployment, error)
- func (dao RequestDeploymentDAOImpl) HasErrorInRequest(id int) (bool, error)
- func (dao RequestDeploymentDAOImpl) ListRequestDeployments(startDate, endDate, environmentID, userID string, id, pageNumber, pageSize int) ([]model.RequestDeployments, error)
- type RequestDeploymentDAOInterface
- type SecurityOperationDAOImpl
- type SecurityOperationDAOInterface
- type SolutionChartDAOImpl
- type SolutionChartDAOInterface
- type SolutionDAOImpl
- type SolutionDAOInterface
- type UserDAOImpl
- func (dao UserDAOImpl) AssociateEnvironmentUser(userID int, environmentID int) error
- func (dao UserDAOImpl) CreateOrUpdateUser(user model2.User) error
- func (dao UserDAOImpl) CreateUser(user model2.User) error
- func (dao UserDAOImpl) DeleteUser(id int) error
- func (dao UserDAOImpl) FindByEmail(email string) (model2.User, error)
- func (dao UserDAOImpl) FindByID(id string) (model2.User, error)
- func (dao UserDAOImpl) FindByUsersIDFilteredByIntersectionEnv(userID, userRequesterID int) (model2.User, error)
- func (dao UserDAOImpl) ListAllUsers(email string) ([]model2.LightUser, error)
- type UserDAOInterface
- type UserEnvironmentRoleDAOImpl
- func (dao UserEnvironmentRoleDAOImpl) CreateOrUpdate(so model2.UserEnvironmentRole) error
- func (dao UserEnvironmentRoleDAOImpl) GetRoleByUserAndEnvironment(user model2.User, envID uint) (*model2.SecurityOperation, error)
- func (dao UserEnvironmentRoleDAOImpl) GetUsersAndRoleByEnv(id int) ([]model2.UserEnvRole, error)
- type UserEnvironmentRoleDAOInterface
- type ValueRuleDAOImpl
- type ValueRuleDAOInterface
- type VariableDAOImpl
- func (dao VariableDAOImpl) CreateVariable(variable model2.Variable) (map[string]string, bool, error)
- func (dao VariableDAOImpl) CreateVariableWithDefaultValue(variable model2.Variable) (map[string]string, bool, error)
- func (dao VariableDAOImpl) DeleteVariable(id int) error
- func (dao VariableDAOImpl) DeleteVariableByEnvironmentID(envID int) error
- func (dao VariableDAOImpl) EditVariable(data model2.Variable) error
- func (dao VariableDAOImpl) GetAllVariablesByEnvironment(envID int) ([]model2.Variable, error)
- func (dao VariableDAOImpl) GetAllVariablesByEnvironmentAndScope(envID int, scope string) ([]model2.Variable, error)
- func (dao VariableDAOImpl) GetAllVariablesByEnvironmentsAndScopes(envID []string, scope []string) ([]model2.Variable, error)
- func (dao VariableDAOImpl) GetByID(id uint) (*model2.Variable, error)
- func (dao VariableDAOImpl) GetVarImageTagByEnvAndScope(envID int, scope string) (model2.Variable, error)
- type VariableDAOInterface
- type VariableRuleDAOImpl
- func (dao VariableRuleDAOImpl) CreateVariableRule(e model.VariableRule) (int, error)
- func (dao VariableRuleDAOImpl) DeleteVariableRule(id int) error
- func (dao VariableRuleDAOImpl) EditVariableRule(e model.VariableRule) error
- func (dao VariableRuleDAOImpl) ListVariableRules() ([]model.VariableRule, error)
- type VariableRuleDAOInterface
- type WebHookDAOImpl
- func (dao WebHookDAOImpl) CreateWebHook(e model.WebHook) (int, error)
- func (dao WebHookDAOImpl) DeleteWebHook(id int) error
- func (dao WebHookDAOImpl) EditWebHook(e model.WebHook) error
- func (dao WebHookDAOImpl) ListWebHooks() ([]model.WebHook, error)
- func (dao WebHookDAOImpl) ListWebHooksByEnvAndType(environmentID int, hookType string) ([]model.WebHook, error)
- type WebHookDAOInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareEnvsQueryDAOImpl ¶
CompareEnvsQueryDAOImpl CompareEnvsQueryDAOImpl
func (CompareEnvsQueryDAOImpl) DeleteCompareEnvQuery ¶
func (dao CompareEnvsQueryDAOImpl) DeleteCompareEnvQuery(id int) error
DeleteCompareEnvQuery DeleteCompareEnvQuery
func (CompareEnvsQueryDAOImpl) GetByUser ¶
func (dao CompareEnvsQueryDAOImpl) GetByUser(userID int) ([]model.CompareEnvsQuery, error)
GetByUser GetByUser
func (CompareEnvsQueryDAOImpl) SaveCompareEnvsQuery ¶
func (dao CompareEnvsQueryDAOImpl) SaveCompareEnvsQuery(compareEnvQuery model.CompareEnvsQuery) (int, error)
SaveCompareEnvsQuery Create or Update
type CompareEnvsQueryDAOInterface ¶
type CompareEnvsQueryDAOInterface interface { SaveCompareEnvsQuery(env model.CompareEnvsQuery) (int, error) DeleteCompareEnvQuery(id int) error GetByUser(userID int) ([]model.CompareEnvsQuery, error) }
CompareEnvsQueryDAOInterface CompareEnvsQueryDAOInterface
type ConfigDAOImpl ¶
ConfigDAOImpl ConfigDAOImpl
func (ConfigDAOImpl) CreateOrUpdateConfig ¶
func (dao ConfigDAOImpl) CreateOrUpdateConfig(item model2.ConfigMap) (int, error)
CreateOrUpdateConfig - Create or update a new config
func (ConfigDAOImpl) GetConfigByName ¶
func (dao ConfigDAOImpl) GetConfigByName(name string) (model2.ConfigMap, error)
GetConfigByName - Retrieves a config by name
type ConfigDAOInterface ¶
type ConfigDAOInterface interface { CreateOrUpdateConfig(item model2.ConfigMap) (int, error) GetConfigByName(name string) (model2.ConfigMap, error) }
ConfigDAOInterface ConfigDAOInterface
type DeploymentDAOImpl ¶
DeploymentDAOImpl DeploymentDAOImpl
func (DeploymentDAOImpl) CountDeployments ¶
func (dao DeploymentDAOImpl) CountDeployments(environmentID, requestDeploymentID string) (int64, error)
CountDeployments count
func (DeploymentDAOImpl) CreateDeployment ¶
func (dao DeploymentDAOImpl) CreateDeployment(deployment model.Deployment) (int, error)
CreateDeployment create deployment
func (DeploymentDAOImpl) EditDeployment ¶
func (dao DeploymentDAOImpl) EditDeployment(deployment model.Deployment) error
EditDeployment edit deployment
func (DeploymentDAOImpl) GetDeploymentByID ¶
func (dao DeploymentDAOImpl) GetDeploymentByID(id int) (model.Deployment, error)
GetDeploymentByID GetDeploymentByID
func (DeploymentDAOImpl) ListDeployments ¶
func (dao DeploymentDAOImpl) ListDeployments(environmentID, requestDeploymentID string, pageNumber, pageSize int) ([]model.Deployments, error)
ListDeployments list all deployments filtered by date, environment and user
type DeploymentDAOInterface ¶
type DeploymentDAOInterface interface { CreateDeployment(deployment model.Deployment) (int, error) EditDeployment(deployment model.Deployment) error GetDeploymentByID(id int) (model.Deployment, error) ListDeployments(environmentID, requestDeploymentID string, pageNumber, pageSize int) ([]model.Deployments, error) CountDeployments(environmentID, requestDeploymentID string) (int64, error) }
DeploymentDAOInterface DeploymentDAOInterface
type DockerDAOImpl ¶
DockerDAOImpl DockerDAOImpl
func (DockerDAOImpl) CreateDockerRepo ¶
func (dao DockerDAOImpl) CreateDockerRepo(item model2.DockerRepo) (int, error)
CreateDockerRepo - Create a new docker repo
func (DockerDAOImpl) DeleteDockerRepo ¶
func (dao DockerDAOImpl) DeleteDockerRepo(id int) error
DeleteDockerRepo - Deletes a docker repo
func (DockerDAOImpl) GetDockerRepositoryByHost ¶
func (dao DockerDAOImpl) GetDockerRepositoryByHost(host string) (model2.DockerRepo, error)
GetDockerRepositoryByHost - Get a repo by host
func (DockerDAOImpl) ListDockerRepos ¶
func (dao DockerDAOImpl) ListDockerRepos() ([]model2.DockerRepo, error)
ListDockerRepos - List docker repos
type DockerDAOInterface ¶
type DockerDAOInterface interface { CreateDockerRepo(item model2.DockerRepo) (int, error) GetDockerRepositoryByHost(host string) (model2.DockerRepo, error) DeleteDockerRepo(id int) error ListDockerRepos() ([]model2.DockerRepo, error) }
DockerDAOInterface DockerDAOInterface
type EnvironmentDAOImpl ¶
EnvironmentDAOImpl EnvironmentDAOImpl
func (EnvironmentDAOImpl) CreateEnvironment ¶
func (dao EnvironmentDAOImpl) CreateEnvironment(env model2.Environment) (int, error)
CreateEnvironment - Create a new environment
func (EnvironmentDAOImpl) DeleteEnvironment ¶
func (dao EnvironmentDAOImpl) DeleteEnvironment(env model2.Environment) error
DeleteEnvironment - Deletes an environment
func (EnvironmentDAOImpl) EditEnvironment ¶
func (dao EnvironmentDAOImpl) EditEnvironment(env model2.Environment) error
EditEnvironment - Updates an existing environment
func (EnvironmentDAOImpl) GetAllEnvironments ¶
func (dao EnvironmentDAOImpl) GetAllEnvironments(principal string) ([]model2.Environment, error)
GetAllEnvironments - Retrieve all environments
func (EnvironmentDAOImpl) GetByID ¶
func (dao EnvironmentDAOImpl) GetByID(envID int) (*model2.Environment, error)
GetByID - Get Environment By Id
type EnvironmentDAOInterface ¶
type EnvironmentDAOInterface interface { CreateEnvironment(env model2.Environment) (int, error) EditEnvironment(env model2.Environment) error DeleteEnvironment(env model2.Environment) error GetAllEnvironments(principal string) ([]model2.Environment, error) GetByID(envID int) (*model2.Environment, error) }
EnvironmentDAOInterface EnvironmentDAOInterface
type NotesDAOImpl ¶
NotesDAOImpl NotesDAOImpl
func (NotesDAOImpl) CreateNotes ¶
func (dao NotesDAOImpl) CreateNotes(notes model2.Notes) (int, error)
CreateNotes - Create a new notes
func (NotesDAOImpl) EditNotes ¶
func (dao NotesDAOImpl) EditNotes(notes model2.Notes) error
EditNotes - Updates an existing notes
func (NotesDAOImpl) GetByID ¶
func (dao NotesDAOImpl) GetByID(ID int) (*model2.Notes, error)
GetByID - Get Notes By Id
func (NotesDAOImpl) GetByServiceName ¶
func (dao NotesDAOImpl) GetByServiceName(serviceName string) (*model2.Notes, error)
GetByServiceName - Get Notes By ServicesName
type NotesDAOInterface ¶
type NotesDAOInterface interface { CreateNotes(notes model2.Notes) (int, error) EditNotes(notes model2.Notes) error GetByID(ID int) (*model2.Notes, error) GetByServiceName(serviceName string) (*model2.Notes, error) }
NotesDAOInterface NotesDAOInterface
type ProductDAOImpl ¶
ProductDAOImpl ProductDAOImpl
func (ProductDAOImpl) CreateProduct ¶
func (dao ProductDAOImpl) CreateProduct(e model2.Product) (int, error)
CreateProduct - Create a new product
func (ProductDAOImpl) CreateProductVersion ¶
func (dao ProductDAOImpl) CreateProductVersion(e model2.ProductVersion) (int, error)
CreateProductVersion - Create a new product version
func (ProductDAOImpl) CreateProductVersionCopying ¶
func (dao ProductDAOImpl) CreateProductVersionCopying(payload model2.ProductVersion) (int, error)
CreateProductVersionCopying create a new version product version
func (ProductDAOImpl) CreateProductVersionService ¶
func (dao ProductDAOImpl) CreateProductVersionService(e model2.ProductVersionService) (int, error)
CreateProductVersionService - Create a new product version
func (ProductDAOImpl) DeleteProduct ¶
func (dao ProductDAOImpl) DeleteProduct(id int) error
DeleteProduct - Deletes a product
func (ProductDAOImpl) DeleteProductVersion ¶
func (dao ProductDAOImpl) DeleteProductVersion(id int) error
DeleteProductVersion - Deletes a productVersion
func (ProductDAOImpl) DeleteProductVersionService ¶
func (dao ProductDAOImpl) DeleteProductVersionService(id int) error
DeleteProductVersionService - Deletes a productVersionService
func (ProductDAOImpl) EditProduct ¶
func (dao ProductDAOImpl) EditProduct(e model2.Product) error
EditProduct - Updates an existing product
func (ProductDAOImpl) EditProductVersion ¶
func (dao ProductDAOImpl) EditProductVersion(e model2.ProductVersion) error
EditProductVersion - Updates an existing product version
func (ProductDAOImpl) EditProductVersionService ¶
func (dao ProductDAOImpl) EditProductVersionService(e model2.ProductVersionService) error
EditProductVersionService - Updates an existing product version
func (ProductDAOImpl) FindProductByID ¶
func (dao ProductDAOImpl) FindProductByID(id int) (model2.Product, error)
FindProductByID - FindProductByID
func (ProductDAOImpl) ListProductVersionsByID ¶
func (dao ProductDAOImpl) ListProductVersionsByID(id int) (*model2.ProductVersion, error)
ListProductVersionsByID - ListProductVersionsByID
func (ProductDAOImpl) ListProductVersionsServiceByID ¶
func (dao ProductDAOImpl) ListProductVersionsServiceByID(id int) (*model2.ProductVersionService, error)
ListProductVersionsServiceByID - ListProductVersionsServiceByID
func (ProductDAOImpl) ListProducts ¶
func (dao ProductDAOImpl) ListProducts() ([]model2.Product, error)
ListProducts - List products
func (ProductDAOImpl) ListProductsVersionServices ¶
func (dao ProductDAOImpl) ListProductsVersionServices(id int) ([]model2.ProductVersionService, error)
ListProductsVersionServices - List products versions
func (ProductDAOImpl) ListProductsVersions ¶
func (dao ProductDAOImpl) ListProductsVersions(id int) ([]model2.ProductVersion, error)
ListProductsVersions - List products versions
type ProductDAOInterface ¶
type ProductDAOInterface interface { CreateProduct(e model2.Product) (int, error) CreateProductVersion(e model2.ProductVersion) (int, error) CreateProductVersionService(e model2.ProductVersionService) (int, error) EditProduct(e model2.Product) error EditProductVersion(e model2.ProductVersion) error EditProductVersionService(e model2.ProductVersionService) error DeleteProduct(id int) error DeleteProductVersion(id int) error DeleteProductVersionService(id int) error ListProducts() ([]model2.Product, error) FindProductByID(id int) (model2.Product, error) ListProductsVersions(id int) ([]model2.ProductVersion, error) ListProductVersionsServiceByID(id int) (*model2.ProductVersionService, error) ListProductsVersionServices(id int) ([]model2.ProductVersionService, error) CreateProductVersionCopying(payload model2.ProductVersion) (int, error) ListProductVersionsByID(id int) (*model2.ProductVersion, error) }
ProductDAOInterface ProductDAOInterface
type RequestDeploymentDAOImpl ¶
RequestDeploymentDAOImpl RequestDeploymentDAOImpl
func (RequestDeploymentDAOImpl) CheckIfRequestHasEnded ¶
func (dao RequestDeploymentDAOImpl) CheckIfRequestHasEnded(id int) (bool, error)
CheckIfRequestHasEnded verify if all deployments has ended
func (RequestDeploymentDAOImpl) CountRequestDeployments ¶
func (dao RequestDeploymentDAOImpl) CountRequestDeployments(startDate, endDate, environmentID, userID string) (int64, error)
CountRequestDeployments count
func (RequestDeploymentDAOImpl) CreateRequestDeployment ¶
func (dao RequestDeploymentDAOImpl) CreateRequestDeployment(rd model.RequestDeployment) (int, error)
CreateRequestDeployment CreateRequestDeployment
func (RequestDeploymentDAOImpl) EditRequestDeployment ¶
func (dao RequestDeploymentDAOImpl) EditRequestDeployment(rd model.RequestDeployment) error
EditRequestDeployment edit requestDeployment
func (RequestDeploymentDAOImpl) GetRequestDeploymentByID ¶
func (dao RequestDeploymentDAOImpl) GetRequestDeploymentByID(id int) (model.RequestDeployment, error)
GetRequestDeploymentByID GetRequestDeploymentByID
func (RequestDeploymentDAOImpl) HasErrorInRequest ¶
func (dao RequestDeploymentDAOImpl) HasErrorInRequest(id int) (bool, error)
HasErrorInRequest verify if some deployment had some error
func (RequestDeploymentDAOImpl) ListRequestDeployments ¶
func (dao RequestDeploymentDAOImpl) ListRequestDeployments(startDate, endDate, environmentID, userID string, id, pageNumber, pageSize int) ([]model.RequestDeployments, error)
ListRequestDeployments list
type RequestDeploymentDAOInterface ¶
type RequestDeploymentDAOInterface interface { CreateRequestDeployment(deployment model.RequestDeployment) (int, error) EditRequestDeployment(rd model.RequestDeployment) error GetRequestDeploymentByID(id int) (model.RequestDeployment, error) ListRequestDeployments(startDate, endDate, environmentID, userID string, id, pageNumber, pageSize int) ([]model.RequestDeployments, error) CountRequestDeployments(startDate, endDate, environmentID, userID string) (int64, error) CheckIfRequestHasEnded(id int) (bool, error) HasErrorInRequest(id int) (bool, error) }
RequestDeploymentDAOInterface RequestDeploymentDAOInterface
type SecurityOperationDAOImpl ¶
SecurityOperationDAOImpl SecurityOperationDAOImpl
func (SecurityOperationDAOImpl) CreateOrUpdate ¶
func (dao SecurityOperationDAOImpl) CreateOrUpdate(so model2.SecurityOperation) error
CreateOrUpdate - Create or update a security operation
func (SecurityOperationDAOImpl) Delete ¶
func (dao SecurityOperationDAOImpl) Delete(id int) error
Delete - Delete
func (SecurityOperationDAOImpl) List ¶
func (dao SecurityOperationDAOImpl) List() ([]model2.SecurityOperation, error)
List - List
type SecurityOperationDAOInterface ¶
type SecurityOperationDAOInterface interface { List() ([]model2.SecurityOperation, error) CreateOrUpdate(so model2.SecurityOperation) error Delete(id int) error }
SecurityOperationDAOInterface - SecurityOperationDAOInterface
type SolutionChartDAOImpl ¶
SolutionChartDAOImpl SolutionChartDAOImpl
func (SolutionChartDAOImpl) CreateSolutionChart ¶
func (dao SolutionChartDAOImpl) CreateSolutionChart(element model2.SolutionChart) error
CreateSolutionChart - Create a Solution Chart
func (SolutionChartDAOImpl) DeleteSolutionChart ¶
func (dao SolutionChartDAOImpl) DeleteSolutionChart(id int) error
DeleteSolutionChart - Delete a solution chart
func (SolutionChartDAOImpl) ListSolutionChart ¶
func (dao SolutionChartDAOImpl) ListSolutionChart(id int) ([]model2.SolutionChart, error)
ListSolutionChart - List a Solution Chart
type SolutionChartDAOInterface ¶
type SolutionChartDAOInterface interface { CreateSolutionChart(element model2.SolutionChart) error DeleteSolutionChart(id int) error ListSolutionChart(id int) ([]model2.SolutionChart, error) }
SolutionChartDAOInterface SolutionChartDAOInterface
type SolutionDAOImpl ¶
SolutionDAOImpl SolutionDAOImpl
func (SolutionDAOImpl) CreateSolution ¶
func (dao SolutionDAOImpl) CreateSolution(solution model2.Solution) (int, error)
CreateSolution - Create a new solution
func (SolutionDAOImpl) DeleteSolution ¶
func (dao SolutionDAOImpl) DeleteSolution(id int) error
DeleteSolution - Deletes a solution
func (SolutionDAOImpl) EditSolution ¶
func (dao SolutionDAOImpl) EditSolution(solution model2.Solution) error
EditSolution - Updates an existing solution
func (SolutionDAOImpl) ListSolutions ¶
func (dao SolutionDAOImpl) ListSolutions() ([]model2.Solution, error)
ListSolutions - List solutions
type SolutionDAOInterface ¶
type SolutionDAOInterface interface { CreateSolution(solution model2.Solution) (int, error) EditSolution(solution model2.Solution) error DeleteSolution(id int) error ListSolutions() ([]model2.Solution, error) }
SolutionDAOInterface SolutionDAOInterface
type UserDAOImpl ¶
UserDAOImpl UserDAOImpl
func (UserDAOImpl) AssociateEnvironmentUser ¶
func (dao UserDAOImpl) AssociateEnvironmentUser(userID int, environmentID int) error
AssociateEnvironmentUser - Associate an environment with a user
func (UserDAOImpl) CreateOrUpdateUser ¶
func (dao UserDAOImpl) CreateOrUpdateUser(user model2.User) error
CreateOrUpdateUser - Create or update a user
func (UserDAOImpl) CreateUser ¶
func (dao UserDAOImpl) CreateUser(user model2.User) error
CreateUser - Creates a new user
func (UserDAOImpl) DeleteUser ¶
func (dao UserDAOImpl) DeleteUser(id int) error
DeleteUser - Delete user
func (UserDAOImpl) FindByEmail ¶
func (dao UserDAOImpl) FindByEmail(email string) (model2.User, error)
FindByEmail FindByEmail
func (UserDAOImpl) FindByID ¶
func (dao UserDAOImpl) FindByID(id string) (model2.User, error)
FindByID FindByID
func (UserDAOImpl) FindByUsersIDFilteredByIntersectionEnv ¶
func (dao UserDAOImpl) FindByUsersIDFilteredByIntersectionEnv(userID, userRequesterID int) (model2.User, error)
FindByUsersIDFilteredByIntersectionEnv func
func (UserDAOImpl) ListAllUsers ¶
func (dao UserDAOImpl) ListAllUsers(email string) ([]model2.LightUser, error)
ListAllUsers - List all users
type UserDAOInterface ¶
type UserDAOInterface interface { CreateUser(user model2.User) error DeleteUser(id int) error AssociateEnvironmentUser(userID int, environmentID int) error ListAllUsers(email string) ([]model2.LightUser, error) CreateOrUpdateUser(user model2.User) error FindByEmail(email string) (model2.User, error) FindByID(id string) (model2.User, error) FindByUsersIDFilteredByIntersectionEnv(userID, userRequesterID int) (model2.User, error) }
UserDAOInterface UserDAOInterface
type UserEnvironmentRoleDAOImpl ¶
UserEnvironmentRoleDAOImpl UserEnvironmentRoleDAOImpl
func (UserEnvironmentRoleDAOImpl) CreateOrUpdate ¶
func (dao UserEnvironmentRoleDAOImpl) CreateOrUpdate(so model2.UserEnvironmentRole) error
CreateOrUpdate - Create or update a security operation
func (UserEnvironmentRoleDAOImpl) GetRoleByUserAndEnvironment ¶
func (dao UserEnvironmentRoleDAOImpl) GetRoleByUserAndEnvironment(user model2.User, envID uint) (*model2.SecurityOperation, error)
GetRoleByUserAndEnvironment - GetRoleByUserAndEnvironment
func (UserEnvironmentRoleDAOImpl) GetUsersAndRoleByEnv ¶
func (dao UserEnvironmentRoleDAOImpl) GetUsersAndRoleByEnv(id int) ([]model2.UserEnvRole, error)
GetUsersAndRoleByEnv func
type UserEnvironmentRoleDAOInterface ¶
type UserEnvironmentRoleDAOInterface interface { CreateOrUpdate(so model2.UserEnvironmentRole) error GetRoleByUserAndEnvironment(user model2.User, envID uint) (*model2.SecurityOperation, error) GetUsersAndRoleByEnv(id int) ([]model2.UserEnvRole, error) }
UserEnvironmentRoleDAOInterface - UserEnvironmentRoleDAOInterface
type ValueRuleDAOImpl ¶
ValueRuleDAOImpl ValueRuleDAOImpl
func (ValueRuleDAOImpl) CreateValueRule ¶
func (dao ValueRuleDAOImpl) CreateValueRule(e model.ValueRule) (int, error)
CreateValueRule - Create a new value rule
func (ValueRuleDAOImpl) DeleteValueRule ¶
func (dao ValueRuleDAOImpl) DeleteValueRule(id int) error
DeleteValueRule - Deletes a value rule
func (ValueRuleDAOImpl) EditValueRule ¶
func (dao ValueRuleDAOImpl) EditValueRule(e model.ValueRule) error
EditValueRule - Updates an existing value rule
func (ValueRuleDAOImpl) ListValueRules ¶
func (dao ValueRuleDAOImpl) ListValueRules(variableRuleID int) ([]model.ValueRule, error)
ListValueRules - List value rules
type ValueRuleDAOInterface ¶
type ValueRuleDAOInterface interface { CreateValueRule(e model.ValueRule) (int, error) EditValueRule(e model.ValueRule) error DeleteValueRule(id int) error ListValueRules(variableRuleID int) ([]model.ValueRule, error) }
ValueRuleDAOInterface ValueRuleDAOInterface
type VariableDAOImpl ¶
VariableDAOImpl VariableDAOImpl
func (VariableDAOImpl) CreateVariable ¶
func (dao VariableDAOImpl) CreateVariable(variable model2.Variable) (map[string]string, bool, error)
CreateVariable - Create a new environment
func (VariableDAOImpl) CreateVariableWithDefaultValue ¶
func (dao VariableDAOImpl) CreateVariableWithDefaultValue(variable model2.Variable) (map[string]string, bool, error)
CreateVariableWithDefaultValue - Create variable with the default value when it wasn't specified
func (VariableDAOImpl) DeleteVariable ¶
func (dao VariableDAOImpl) DeleteVariable(id int) error
DeleteVariable - Delete environment
func (VariableDAOImpl) DeleteVariableByEnvironmentID ¶
func (dao VariableDAOImpl) DeleteVariableByEnvironmentID(envID int) error
DeleteVariableByEnvironmentID - Delete environment
func (VariableDAOImpl) EditVariable ¶
func (dao VariableDAOImpl) EditVariable(data model2.Variable) error
EditVariable - Edit an existent variable
func (VariableDAOImpl) GetAllVariablesByEnvironment ¶
func (dao VariableDAOImpl) GetAllVariablesByEnvironment(envID int) ([]model2.Variable, error)
GetAllVariablesByEnvironment - Retrieve all variables
func (VariableDAOImpl) GetAllVariablesByEnvironmentAndScope ¶
func (dao VariableDAOImpl) GetAllVariablesByEnvironmentAndScope(envID int, scope string) ([]model2.Variable, error)
GetAllVariablesByEnvironmentAndScope - Retrieve all variables
func (VariableDAOImpl) GetAllVariablesByEnvironmentsAndScopes ¶
func (dao VariableDAOImpl) GetAllVariablesByEnvironmentsAndScopes(envID []string, scope []string) ([]model2.Variable, error)
GetAllVariablesByEnvironmentsAndScopes func
func (VariableDAOImpl) GetByID ¶
func (dao VariableDAOImpl) GetByID(id uint) (*model2.Variable, error)
GetByID GetByID
func (VariableDAOImpl) GetVarImageTagByEnvAndScope ¶
func (dao VariableDAOImpl) GetVarImageTagByEnvAndScope(envID int, scope string) (model2.Variable, error)
GetVarImageTagByEnvAndScope - Retrieve image tag variable of a specific environment and scope
type VariableDAOInterface ¶
type VariableDAOInterface interface { EditVariable(data model2.Variable) error CreateVariable(variable model2.Variable) (map[string]string, bool, error) CreateVariableWithDefaultValue(variable model2.Variable) (map[string]string, bool, error) GetAllVariablesByEnvironment(envID int) ([]model2.Variable, error) GetAllVariablesByEnvironmentAndScope(envID int, scope string) ([]model2.Variable, error) GetAllVariablesByEnvironmentsAndScopes(envID []string, scope []string) ([]model2.Variable, error) DeleteVariable(id int) error DeleteVariableByEnvironmentID(envID int) error GetByID(id uint) (*model2.Variable, error) GetVarImageTagByEnvAndScope(envID int, scope string) (model2.Variable, error) }
VariableDAOInterface VariableDAOInterface
type VariableRuleDAOImpl ¶
VariableRuleDAOImpl VariableRuleDAOImpl
func (VariableRuleDAOImpl) CreateVariableRule ¶
func (dao VariableRuleDAOImpl) CreateVariableRule(e model.VariableRule) (int, error)
CreateVariableRule - Create a new value rule
func (VariableRuleDAOImpl) DeleteVariableRule ¶
func (dao VariableRuleDAOImpl) DeleteVariableRule(id int) error
DeleteVariableRule - Deletes a value rule
func (VariableRuleDAOImpl) EditVariableRule ¶
func (dao VariableRuleDAOImpl) EditVariableRule(e model.VariableRule) error
EditVariableRule - Updates an existing value rule
func (VariableRuleDAOImpl) ListVariableRules ¶
func (dao VariableRuleDAOImpl) ListVariableRules() ([]model.VariableRule, error)
ListVariableRules - List value rules
type VariableRuleDAOInterface ¶
type VariableRuleDAOInterface interface { CreateVariableRule(e model.VariableRule) (int, error) EditVariableRule(e model.VariableRule) error DeleteVariableRule(id int) error ListVariableRules() ([]model.VariableRule, error) }
VariableRuleDAOInterface VariableRuleDAOInterface
type WebHookDAOImpl ¶
WebHookDAOImpl WebHookDAOImpl
func (WebHookDAOImpl) CreateWebHook ¶
func (dao WebHookDAOImpl) CreateWebHook(e model.WebHook) (int, error)
CreateWebHook - Create a new webhook
func (WebHookDAOImpl) DeleteWebHook ¶
func (dao WebHookDAOImpl) DeleteWebHook(id int) error
DeleteWebHook - Deletes a webhook
func (WebHookDAOImpl) EditWebHook ¶
func (dao WebHookDAOImpl) EditWebHook(e model.WebHook) error
EditWebHook - Updates an existing webhook
func (WebHookDAOImpl) ListWebHooks ¶
func (dao WebHookDAOImpl) ListWebHooks() ([]model.WebHook, error)
ListWebHooks - List webhooks
func (WebHookDAOImpl) ListWebHooksByEnvAndType ¶
func (dao WebHookDAOImpl) ListWebHooksByEnvAndType( environmentID int, hookType string) ([]model.WebHook, error)
ListWebHooksByEnvAndType - List webhooks by environment and webHook type
type WebHookDAOInterface ¶
type WebHookDAOInterface interface { CreateWebHook(e model.WebHook) (int, error) EditWebHook(e model.WebHook) error DeleteWebHook(id int) error ListWebHooks() ([]model.WebHook, error) ListWebHooksByEnvAndType(environmentID int, hookType string) ([]model.WebHook, error) }
WebHookDAOInterface WebHookDAOInterface