Documentation ¶
Index ¶
- type EnvironmentRepository
- func (_m *EnvironmentRepository) Create(mappings *repository.Environment) error
- func (_m *EnvironmentRepository) FindAll() ([]repository.Environment, error)
- func (_m *EnvironmentRepository) FindAllActive() ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindAllActiveEnvOnlyDetails() ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindAllActiveWithFilter() ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByClusterId(clusterId int) ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByClusterIdAndNamespace(namespaceClusterPair []*repository.ClusterNamespacePair) ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByClusterIds(clusterIds []int) ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByClusterIdsWithFilter(clusterIds []int) ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByEnvName(envName string) ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByEnvNameAndClusterIds(envName string, clusterIds []int) ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindById(id int) (*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByIdentifier(identifier string) (*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByIds(ids []*int) ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByName(name string) (*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByNameOrIdentifier(name string, identifier string) (*repository.Environment, error)
- func (_m *EnvironmentRepository) FindByNamespaceAndClusterName(namespaces string, clusterName string) (*repository.Environment, error)
- func (_m *EnvironmentRepository) FindEnvClusterInfosByIds(_a0 []int) ([]*repository.EnvCluserInfo, error)
- func (_m *EnvironmentRepository) FindEnvLinkedWithCiPipelines(externalCi bool, ciPipelineIds []int) ([]*repository.Environment, error)
- func (_m *EnvironmentRepository) FindIdsByNames(envNames []string) ([]int, error)
- func (_m *EnvironmentRepository) FindOne(environment string) (*repository.Environment, error)
- func (_m *EnvironmentRepository) FindOneByNamespaceAndClusterId(namespace string, clusterId int) (*repository.Environment, error)
- func (_m *EnvironmentRepository) GetConnection() *pg.DB
- func (_m *EnvironmentRepository) MarkEnvironmentDeleted(mappings *repository.Environment, tx *pg.Tx) error
- func (_m *EnvironmentRepository) Update(mappings *repository.Environment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentRepository ¶
EnvironmentRepository is an autogenerated mock type for the EnvironmentRepository type
func NewEnvironmentRepository ¶
func NewEnvironmentRepository(t mockConstructorTestingTNewEnvironmentRepository) *EnvironmentRepository
NewEnvironmentRepository creates a new instance of EnvironmentRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EnvironmentRepository) Create ¶
func (_m *EnvironmentRepository) Create(mappings *repository.Environment) error
Create provides a mock function with given fields: mappings
func (*EnvironmentRepository) FindAll ¶
func (_m *EnvironmentRepository) FindAll() ([]repository.Environment, error)
FindAll provides a mock function with given fields:
func (*EnvironmentRepository) FindAllActive ¶
func (_m *EnvironmentRepository) FindAllActive() ([]*repository.Environment, error)
FindAllActive provides a mock function with given fields:
func (*EnvironmentRepository) FindAllActiveEnvOnlyDetails ¶
func (_m *EnvironmentRepository) FindAllActiveEnvOnlyDetails() ([]*repository.Environment, error)
FindAllActiveEnvOnlyDetails provides a mock function with given fields:
func (*EnvironmentRepository) FindAllActiveWithFilter ¶
func (_m *EnvironmentRepository) FindAllActiveWithFilter() ([]*repository.Environment, error)
FindAllActiveWithFilter provides a mock function with given fields:
func (*EnvironmentRepository) FindByClusterId ¶
func (_m *EnvironmentRepository) FindByClusterId(clusterId int) ([]*repository.Environment, error)
FindByClusterId provides a mock function with given fields: clusterId
func (*EnvironmentRepository) FindByClusterIdAndNamespace ¶
func (_m *EnvironmentRepository) FindByClusterIdAndNamespace(namespaceClusterPair []*repository.ClusterNamespacePair) ([]*repository.Environment, error)
FindByClusterIdAndNamespace provides a mock function with given fields: namespaceClusterPair
func (*EnvironmentRepository) FindByClusterIds ¶
func (_m *EnvironmentRepository) FindByClusterIds(clusterIds []int) ([]*repository.Environment, error)
FindByClusterIds provides a mock function with given fields: clusterIds
func (*EnvironmentRepository) FindByClusterIdsWithFilter ¶
func (_m *EnvironmentRepository) FindByClusterIdsWithFilter(clusterIds []int) ([]*repository.Environment, error)
FindByClusterIdsWithFilter provides a mock function with given fields: clusterIds
func (*EnvironmentRepository) FindByEnvName ¶
func (_m *EnvironmentRepository) FindByEnvName(envName string) ([]*repository.Environment, error)
FindByEnvName provides a mock function with given fields: envName
func (*EnvironmentRepository) FindByEnvNameAndClusterIds ¶
func (_m *EnvironmentRepository) FindByEnvNameAndClusterIds(envName string, clusterIds []int) ([]*repository.Environment, error)
FindByEnvNameAndClusterIds provides a mock function with given fields: envName, clusterIds
func (*EnvironmentRepository) FindById ¶
func (_m *EnvironmentRepository) FindById(id int) (*repository.Environment, error)
FindById provides a mock function with given fields: id
func (*EnvironmentRepository) FindByIdentifier ¶
func (_m *EnvironmentRepository) FindByIdentifier(identifier string) (*repository.Environment, error)
FindByIdentifier provides a mock function with given fields: identifier
func (*EnvironmentRepository) FindByIds ¶
func (_m *EnvironmentRepository) FindByIds(ids []*int) ([]*repository.Environment, error)
FindByIds provides a mock function with given fields: ids
func (*EnvironmentRepository) FindByName ¶
func (_m *EnvironmentRepository) FindByName(name string) (*repository.Environment, error)
FindByName provides a mock function with given fields: name
func (*EnvironmentRepository) FindByNameOrIdentifier ¶
func (_m *EnvironmentRepository) FindByNameOrIdentifier(name string, identifier string) (*repository.Environment, error)
FindByNameOrIdentifier provides a mock function with given fields: name, identifier
func (*EnvironmentRepository) FindByNamespaceAndClusterName ¶
func (_m *EnvironmentRepository) FindByNamespaceAndClusterName(namespaces string, clusterName string) (*repository.Environment, error)
FindByNamespaceAndClusterName provides a mock function with given fields: namespaces, clusterName
func (*EnvironmentRepository) FindEnvClusterInfosByIds ¶
func (_m *EnvironmentRepository) FindEnvClusterInfosByIds(_a0 []int) ([]*repository.EnvCluserInfo, error)
FindEnvClusterInfosByIds provides a mock function with given fields: _a0
func (*EnvironmentRepository) FindEnvLinkedWithCiPipelines ¶ added in v0.6.19
func (_m *EnvironmentRepository) FindEnvLinkedWithCiPipelines(externalCi bool, ciPipelineIds []int) ([]*repository.Environment, error)
FindEnvLinkedWithCiPipelines provides a mock function with given fields: externalCi, ciPipelineIds
func (*EnvironmentRepository) FindIdsByNames ¶
func (_m *EnvironmentRepository) FindIdsByNames(envNames []string) ([]int, error)
FindIdsByNames provides a mock function with given fields: envNames
func (*EnvironmentRepository) FindOne ¶
func (_m *EnvironmentRepository) FindOne(environment string) (*repository.Environment, error)
FindOne provides a mock function with given fields: environment
func (*EnvironmentRepository) FindOneByNamespaceAndClusterId ¶
func (_m *EnvironmentRepository) FindOneByNamespaceAndClusterId(namespace string, clusterId int) (*repository.Environment, error)
FindOneByNamespaceAndClusterId provides a mock function with given fields: namespace, clusterId
func (*EnvironmentRepository) GetConnection ¶
func (_m *EnvironmentRepository) GetConnection() *pg.DB
GetConnection provides a mock function with given fields:
func (*EnvironmentRepository) MarkEnvironmentDeleted ¶
func (_m *EnvironmentRepository) MarkEnvironmentDeleted(mappings *repository.Environment, tx *pg.Tx) error
MarkEnvironmentDeleted provides a mock function with given fields: mappings, tx
func (*EnvironmentRepository) Update ¶
func (_m *EnvironmentRepository) Update(mappings *repository.Environment) error
Update provides a mock function with given fields: mappings