Documentation ¶
Index ¶
- func ConvertClusterBeanToGrpcConfig(cluster repository.Cluster) *gRPC.ClusterConfig
- func DecodeExternalArgoAppId(appId string) (*bean.ArgoAppIdentifier, error)
- type ArgoApplicationService
- type ArgoApplicationServiceImpl
- func (impl *ArgoApplicationServiceImpl) GetAppDetail(resourceName, resourceNamespace string, clusterId int) (*bean.ArgoApplicationDetailDto, error)
- func (impl *ArgoApplicationServiceImpl) GetClusterConfigFromAllClusters(clusterId int) (*k8s.ClusterConfig, clusterRepository.Cluster, map[string]int, error)
- func (impl *ArgoApplicationServiceImpl) GetRestConfigForExternalArgo(ctx context.Context, clusterId int, externalArgoApplicationName string) (*rest.Config, error)
- func (impl *ArgoApplicationServiceImpl) GetServerConfigIfClusterIsNotAddedOnDevtron(resourceResp *k8s.ManifestResponse, restConfig *rest.Config, ...) (*rest.Config, error)
- func (impl *ArgoApplicationServiceImpl) HibernateArgoApplication(ctx context.Context, app *bean.ArgoAppIdentifier, ...) ([]*openapi.HibernateStatus, error)
- func (impl *ArgoApplicationServiceImpl) ListApplications(clusterIds []int) ([]*bean.ArgoApplicationListDto, error)
- func (impl *ArgoApplicationServiceImpl) UnHibernateArgoApplication(ctx context.Context, app *bean.ArgoAppIdentifier, ...) ([]*openapi.HibernateStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertClusterBeanToGrpcConfig ¶ added in v0.7.2
func ConvertClusterBeanToGrpcConfig(cluster repository.Cluster) *gRPC.ClusterConfig
func DecodeExternalArgoAppId ¶ added in v0.7.2
func DecodeExternalArgoAppId(appId string) (*bean.ArgoAppIdentifier, error)
Types ¶
type ArgoApplicationService ¶
type ArgoApplicationService interface { ListApplications(clusterIds []int) ([]*bean.ArgoApplicationListDto, error) GetAppDetail(resourceName, resourceNamespace string, clusterId int) (*bean.ArgoApplicationDetailDto, error) GetServerConfigIfClusterIsNotAddedOnDevtron(resourceResp *k8s.ManifestResponse, restConfig *rest.Config, clusterWithApplicationObject clusterRepository.Cluster, clusterServerUrlIdMap map[string]int) (*rest.Config, error) GetClusterConfigFromAllClusters(clusterId int) (*k8s.ClusterConfig, clusterRepository.Cluster, map[string]int, error) GetRestConfigForExternalArgo(ctx context.Context, clusterId int, externalArgoApplicationName string) (*rest.Config, error) HibernateArgoApplication(ctx context.Context, app *bean.ArgoAppIdentifier, hibernateRequest *openapi.HibernateRequest) ([]*openapi.HibernateStatus, error) UnHibernateArgoApplication(ctx context.Context, app *bean.ArgoAppIdentifier, hibernateRequest *openapi.HibernateRequest) ([]*openapi.HibernateStatus, error) }
type ArgoApplicationServiceImpl ¶
type ArgoApplicationServiceImpl struct {
// contains filtered or unexported fields
}
func NewArgoApplicationServiceImpl ¶
func NewArgoApplicationServiceImpl(logger *zap.SugaredLogger, clusterRepository clusterRepository.ClusterRepository, k8sUtil *k8s.K8sServiceImpl, argoUserService argo.ArgoUserService, helmAppClient gRPC.HelmAppClient, helmAppService service.HelmAppService) *ArgoApplicationServiceImpl
func (*ArgoApplicationServiceImpl) GetAppDetail ¶
func (impl *ArgoApplicationServiceImpl) GetAppDetail(resourceName, resourceNamespace string, clusterId int) (*bean.ArgoApplicationDetailDto, error)
func (*ArgoApplicationServiceImpl) GetClusterConfigFromAllClusters ¶
func (impl *ArgoApplicationServiceImpl) GetClusterConfigFromAllClusters(clusterId int) (*k8s.ClusterConfig, clusterRepository.Cluster, map[string]int, error)
func (*ArgoApplicationServiceImpl) GetRestConfigForExternalArgo ¶
func (*ArgoApplicationServiceImpl) GetServerConfigIfClusterIsNotAddedOnDevtron ¶
func (impl *ArgoApplicationServiceImpl) GetServerConfigIfClusterIsNotAddedOnDevtron(resourceResp *k8s.ManifestResponse, restConfig *rest.Config, clusterWithApplicationObject clusterRepository.Cluster, clusterServerUrlIdMap map[string]int) (*rest.Config, error)
func (*ArgoApplicationServiceImpl) HibernateArgoApplication ¶ added in v0.7.2
func (impl *ArgoApplicationServiceImpl) HibernateArgoApplication(ctx context.Context, app *bean.ArgoAppIdentifier, hibernateRequest *openapi.HibernateRequest) ([]*openapi.HibernateStatus, error)
func (*ArgoApplicationServiceImpl) ListApplications ¶
func (impl *ArgoApplicationServiceImpl) ListApplications(clusterIds []int) ([]*bean.ArgoApplicationListDto, error)
func (*ArgoApplicationServiceImpl) UnHibernateArgoApplication ¶ added in v0.7.2
func (impl *ArgoApplicationServiceImpl) UnHibernateArgoApplication(ctx context.Context, app *bean.ArgoAppIdentifier, hibernateRequest *openapi.HibernateRequest) ([]*openapi.HibernateStatus, error)
Click to show internal directories.
Click to hide internal directories.