Documentation ¶
Index ¶
- type ClusterRepository
- func (_m *ClusterRepository) Delete(model *repository.Cluster) error
- func (_m *ClusterRepository) FindActiveClusters() ([]repository.Cluster, error)
- func (_m *ClusterRepository) FindAll() ([]repository.Cluster, error)
- func (_m *ClusterRepository) FindAllActive() ([]repository.Cluster, error)
- func (_m *ClusterRepository) FindById(id int) (*repository.Cluster, error)
- func (_m *ClusterRepository) FindByIds(id []int) ([]repository.Cluster, error)
- func (_m *ClusterRepository) FindByNames(clusterNames []string) ([]*repository.Cluster, error)
- func (_m *ClusterRepository) FindOne(clusterName string) (*repository.Cluster, error)
- func (_m *ClusterRepository) FindOneActive(clusterName string) (*repository.Cluster, error)
- func (_m *ClusterRepository) MarkClusterDeleted(model *repository.Cluster) error
- func (_m *ClusterRepository) Save(model *repository.Cluster) error
- func (_m *ClusterRepository) SaveAll(models []*repository.Cluster) error
- func (_m *ClusterRepository) Update(model *repository.Cluster) error
- func (_m *ClusterRepository) UpdateClusterConnectionStatus(clusterId int, errorInConnecting string) error
- 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) FindByNames(envNames []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
- type EphemeralContainersRepository
- func (_m *EphemeralContainersRepository) CommitTx(tx *pg.Tx) error
- func (_m *EphemeralContainersRepository) FindContainerByName(clusterID int, namespace string, podName string, name string) (*repository.EphemeralContainerBean, error)
- func (_m *EphemeralContainersRepository) RollbackTx(tx *pg.Tx) error
- func (_m *EphemeralContainersRepository) SaveEphemeralContainerActionAudit(tx *pg.Tx, model *repository.EphemeralContainerAction) error
- func (_m *EphemeralContainersRepository) SaveEphemeralContainerData(tx *pg.Tx, model *repository.EphemeralContainerBean) error
- func (_m *EphemeralContainersRepository) StartTx() (*pg.Tx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterRepository ¶ added in v0.6.23
ClusterRepository is an autogenerated mock type for the ClusterRepository type
func NewClusterRepository ¶ added in v0.6.23
func NewClusterRepository(t mockConstructorTestingTNewClusterRepository) *ClusterRepository
NewClusterRepository creates a new instance of ClusterRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClusterRepository) Delete ¶ added in v0.6.23
func (_m *ClusterRepository) Delete(model *repository.Cluster) error
Delete provides a mock function with given fields: model
func (*ClusterRepository) FindActiveClusters ¶ added in v0.6.23
func (_m *ClusterRepository) FindActiveClusters() ([]repository.Cluster, error)
FindActiveClusters provides a mock function with given fields:
func (*ClusterRepository) FindAll ¶ added in v0.6.23
func (_m *ClusterRepository) FindAll() ([]repository.Cluster, error)
FindAll provides a mock function with given fields:
func (*ClusterRepository) FindAllActive ¶ added in v0.6.23
func (_m *ClusterRepository) FindAllActive() ([]repository.Cluster, error)
FindAllActive provides a mock function with given fields:
func (*ClusterRepository) FindById ¶ added in v0.6.23
func (_m *ClusterRepository) FindById(id int) (*repository.Cluster, error)
FindById provides a mock function with given fields: id
func (*ClusterRepository) FindByIds ¶ added in v0.6.23
func (_m *ClusterRepository) FindByIds(id []int) ([]repository.Cluster, error)
FindByIds provides a mock function with given fields: id
func (*ClusterRepository) FindByNames ¶ added in v0.6.23
func (_m *ClusterRepository) FindByNames(clusterNames []string) ([]*repository.Cluster, error)
FindByNames provides a mock function with given fields: clusterNames
func (*ClusterRepository) FindOne ¶ added in v0.6.23
func (_m *ClusterRepository) FindOne(clusterName string) (*repository.Cluster, error)
FindOne provides a mock function with given fields: clusterName
func (*ClusterRepository) FindOneActive ¶ added in v0.6.23
func (_m *ClusterRepository) FindOneActive(clusterName string) (*repository.Cluster, error)
FindOneActive provides a mock function with given fields: clusterName
func (*ClusterRepository) MarkClusterDeleted ¶ added in v0.6.23
func (_m *ClusterRepository) MarkClusterDeleted(model *repository.Cluster) error
MarkClusterDeleted provides a mock function with given fields: model
func (*ClusterRepository) Save ¶ added in v0.6.23
func (_m *ClusterRepository) Save(model *repository.Cluster) error
Save provides a mock function with given fields: model
func (*ClusterRepository) SaveAll ¶ added in v0.6.23
func (_m *ClusterRepository) SaveAll(models []*repository.Cluster) error
SaveAll provides a mock function with given fields: models
func (*ClusterRepository) Update ¶ added in v0.6.23
func (_m *ClusterRepository) Update(model *repository.Cluster) error
Update provides a mock function with given fields: model
func (*ClusterRepository) UpdateClusterConnectionStatus ¶ added in v0.6.23
func (_m *ClusterRepository) UpdateClusterConnectionStatus(clusterId int, errorInConnecting string) error
UpdateClusterConnectionStatus provides a mock function with given fields: clusterId, errorInConnecting
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) FindByNames ¶ added in v0.6.23
func (_m *EnvironmentRepository) FindByNames(envNames []string) ([]*repository.Environment, error)
FindByNames provides a mock function with given fields: envNames
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
type EphemeralContainersRepository ¶ added in v0.6.21
EphemeralContainersRepository is an autogenerated mock type for the EphemeralContainersRepository type
func NewEphemeralContainersRepository ¶ added in v0.6.21
func NewEphemeralContainersRepository(t mockConstructorTestingTNewEphemeralContainersRepository) *EphemeralContainersRepository
NewEphemeralContainersRepository creates a new instance of EphemeralContainersRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EphemeralContainersRepository) CommitTx ¶ added in v0.6.21
func (_m *EphemeralContainersRepository) CommitTx(tx *pg.Tx) error
CommitTx provides a mock function with given fields: tx
func (*EphemeralContainersRepository) FindContainerByName ¶ added in v0.6.21
func (_m *EphemeralContainersRepository) FindContainerByName(clusterID int, namespace string, podName string, name string) (*repository.EphemeralContainerBean, error)
FindContainerByName provides a mock function with given fields: clusterID, namespace, podName, name
func (*EphemeralContainersRepository) RollbackTx ¶ added in v0.6.21
func (_m *EphemeralContainersRepository) RollbackTx(tx *pg.Tx) error
RollbackTx provides a mock function with given fields: tx
func (*EphemeralContainersRepository) SaveEphemeralContainerActionAudit ¶ added in v0.6.21
func (_m *EphemeralContainersRepository) SaveEphemeralContainerActionAudit(tx *pg.Tx, model *repository.EphemeralContainerAction) error
SaveEphemeralContainerActionAudit provides a mock function with given fields: tx, model
func (*EphemeralContainersRepository) SaveEphemeralContainerData ¶ added in v0.6.21
func (_m *EphemeralContainersRepository) SaveEphemeralContainerData(tx *pg.Tx, model *repository.EphemeralContainerBean) error
SaveEphemeralContainerData provides a mock function with given fields: tx, model