Documentation ¶
Index ¶
- type ClusterService
- func (_m *ClusterService) ConnectClustersInBatch(clusters []*cluster.ClusterBean, clusterExistInDb bool)
- func (_m *ClusterService) ConvertClusterBeanObjectToCluster(bean *cluster.ClusterBean) *v1alpha1.Cluster
- func (_m *ClusterService) ConvertClusterBeanToCluster(clusterBean *cluster.ClusterBean, userId int32) *repository.Cluster
- func (_m *ClusterService) CreateGrafanaDataSource(clusterBean *cluster.ClusterBean, env *repository.Environment) (int, error)
- func (_m *ClusterService) Delete(bean *cluster.ClusterBean, userId int32) error
- func (_m *ClusterService) DeleteFromDb(bean *cluster.ClusterBean, userId int32) error
- func (_m *ClusterService) FetchRolesFromGroup(userId int32) ([]*userrepository.RoleModel, error)
- func (_m *ClusterService) FindAll() ([]*cluster.ClusterBean, error)
- func (_m *ClusterService) FindAllActive() ([]cluster.ClusterBean, error)
- func (_m *ClusterService) FindAllForAutoComplete() ([]cluster.ClusterBean, error)
- func (_m *ClusterService) FindAllForClusterByUserId(userId int32, isActionUserSuperAdmin bool) ([]cluster.ClusterBean, error)
- func (_m *ClusterService) FindAllNamespacesByUserIdAndClusterId(userId int32, clusterId int, isActionUserSuperAdmin bool) ([]string, error)
- func (_m *ClusterService) FindAllWithoutConfig() ([]*cluster.ClusterBean, error)
- func (_m *ClusterService) FindById(id int) (*cluster.ClusterBean, error)
- func (_m *ClusterService) FindByIdWithoutConfig(id int) (*cluster.ClusterBean, error)
- func (_m *ClusterService) FindByIds(id []int) ([]cluster.ClusterBean, error)
- func (_m *ClusterService) FindOne(clusterName string) (*cluster.ClusterBean, error)
- func (_m *ClusterService) FindOneActive(clusterName string) (*cluster.ClusterBean, error)
- func (_m *ClusterService) GetAllClusterNamespaces() map[string][]string
- func (_m *ClusterService) GetClusterConfig(_a0 *cluster.ClusterBean) (*util.ClusterConfig, error)
- func (_m *ClusterService) GetK8sClient() (*v1.CoreV1Client, error)
- func (_m *ClusterService) HandleErrorInClusterConnections(clusters []*cluster.ClusterBean, respMap map[int]error, clusterExistInDb bool)
- func (_m *ClusterService) Save(parent context.Context, bean *cluster.ClusterBean, userId int32) (*cluster.ClusterBean, error)
- func (_m *ClusterService) Update(ctx context.Context, bean *cluster.ClusterBean, userId int32) (*cluster.ClusterBean, error)
- func (_m *ClusterService) ValidateKubeconfig(kubeConfig string) (map[string]*cluster.ValidateClusterBean, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterService ¶
ClusterService is an autogenerated mock type for the ClusterService type
func NewClusterService ¶
func NewClusterService(t mockConstructorTestingTNewClusterService) *ClusterService
NewClusterService creates a new instance of ClusterService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClusterService) ConnectClustersInBatch ¶
func (_m *ClusterService) ConnectClustersInBatch(clusters []*cluster.ClusterBean, clusterExistInDb bool)
ConnectClustersInBatch provides a mock function with given fields: clusters, clusterExistInDb
func (*ClusterService) ConvertClusterBeanObjectToCluster ¶
func (_m *ClusterService) ConvertClusterBeanObjectToCluster(bean *cluster.ClusterBean) *v1alpha1.Cluster
ConvertClusterBeanObjectToCluster provides a mock function with given fields: bean
func (*ClusterService) ConvertClusterBeanToCluster ¶
func (_m *ClusterService) ConvertClusterBeanToCluster(clusterBean *cluster.ClusterBean, userId int32) *repository.Cluster
ConvertClusterBeanToCluster provides a mock function with given fields: clusterBean, userId
func (*ClusterService) CreateGrafanaDataSource ¶
func (_m *ClusterService) CreateGrafanaDataSource(clusterBean *cluster.ClusterBean, env *repository.Environment) (int, error)
CreateGrafanaDataSource provides a mock function with given fields: clusterBean, env
func (*ClusterService) Delete ¶
func (_m *ClusterService) Delete(bean *cluster.ClusterBean, userId int32) error
Delete provides a mock function with given fields: bean, userId
func (*ClusterService) DeleteFromDb ¶
func (_m *ClusterService) DeleteFromDb(bean *cluster.ClusterBean, userId int32) error
DeleteFromDb provides a mock function with given fields: bean, userId
func (*ClusterService) FetchRolesFromGroup ¶
func (_m *ClusterService) FetchRolesFromGroup(userId int32) ([]*userrepository.RoleModel, error)
FetchRolesFromGroup provides a mock function with given fields: userId
func (*ClusterService) FindAll ¶
func (_m *ClusterService) FindAll() ([]*cluster.ClusterBean, error)
FindAll provides a mock function with given fields:
func (*ClusterService) FindAllActive ¶
func (_m *ClusterService) FindAllActive() ([]cluster.ClusterBean, error)
FindAllActive provides a mock function with given fields:
func (*ClusterService) FindAllForAutoComplete ¶
func (_m *ClusterService) FindAllForAutoComplete() ([]cluster.ClusterBean, error)
FindAllForAutoComplete provides a mock function with given fields:
func (*ClusterService) FindAllForClusterByUserId ¶
func (_m *ClusterService) FindAllForClusterByUserId(userId int32, isActionUserSuperAdmin bool) ([]cluster.ClusterBean, error)
FindAllForClusterByUserId provides a mock function with given fields: userId, isActionUserSuperAdmin
func (*ClusterService) FindAllNamespacesByUserIdAndClusterId ¶
func (_m *ClusterService) FindAllNamespacesByUserIdAndClusterId(userId int32, clusterId int, isActionUserSuperAdmin bool) ([]string, error)
FindAllNamespacesByUserIdAndClusterId provides a mock function with given fields: userId, clusterId, isActionUserSuperAdmin
func (*ClusterService) FindAllWithoutConfig ¶
func (_m *ClusterService) FindAllWithoutConfig() ([]*cluster.ClusterBean, error)
FindAllWithoutConfig provides a mock function with given fields:
func (*ClusterService) FindById ¶
func (_m *ClusterService) FindById(id int) (*cluster.ClusterBean, error)
FindById provides a mock function with given fields: id
func (*ClusterService) FindByIdWithoutConfig ¶
func (_m *ClusterService) FindByIdWithoutConfig(id int) (*cluster.ClusterBean, error)
FindByIdWithoutConfig provides a mock function with given fields: id
func (*ClusterService) FindByIds ¶
func (_m *ClusterService) FindByIds(id []int) ([]cluster.ClusterBean, error)
FindByIds provides a mock function with given fields: id
func (*ClusterService) FindOne ¶
func (_m *ClusterService) FindOne(clusterName string) (*cluster.ClusterBean, error)
FindOne provides a mock function with given fields: clusterName
func (*ClusterService) FindOneActive ¶
func (_m *ClusterService) FindOneActive(clusterName string) (*cluster.ClusterBean, error)
FindOneActive provides a mock function with given fields: clusterName
func (*ClusterService) GetAllClusterNamespaces ¶
func (_m *ClusterService) GetAllClusterNamespaces() map[string][]string
GetAllClusterNamespaces provides a mock function with given fields:
func (*ClusterService) GetClusterConfig ¶
func (_m *ClusterService) GetClusterConfig(_a0 *cluster.ClusterBean) (*util.ClusterConfig, error)
GetClusterConfig provides a mock function with given fields: _a0
func (*ClusterService) GetK8sClient ¶
func (_m *ClusterService) GetK8sClient() (*v1.CoreV1Client, error)
GetK8sClient provides a mock function with given fields:
func (*ClusterService) HandleErrorInClusterConnections ¶
func (_m *ClusterService) HandleErrorInClusterConnections(clusters []*cluster.ClusterBean, respMap map[int]error, clusterExistInDb bool)
HandleErrorInClusterConnections provides a mock function with given fields: clusters, respMap, clusterExistInDb
func (*ClusterService) Save ¶
func (_m *ClusterService) Save(parent context.Context, bean *cluster.ClusterBean, userId int32) (*cluster.ClusterBean, error)
Save provides a mock function with given fields: parent, bean, userId
func (*ClusterService) Update ¶
func (_m *ClusterService) Update(ctx context.Context, bean *cluster.ClusterBean, userId int32) (*cluster.ClusterBean, error)
Update provides a mock function with given fields: ctx, bean, userId
func (*ClusterService) ValidateKubeconfig ¶
func (_m *ClusterService) ValidateKubeconfig(kubeConfig string) (map[string]*cluster.ValidateClusterBean, error)
ValidateKubeconfig provides a mock function with given fields: kubeConfig