Versions in this module Expand all Collapse all v0 v0.2.21 Aug 13, 2021 v0.2.20 Aug 10, 2021 v0.2.19 Jul 28, 2021 v0.2.18 Jul 20, 2021 v0.2.17 Jul 16, 2021 v0.2.16 Jul 9, 2021 v0.2.15 Jul 2, 2021 v0.2.14 Jun 28, 2021 v0.2.13 Jun 22, 2021 v0.2.12 Jun 1, 2021 v0.2.11 May 24, 2021 v0.2.10 May 23, 2021 v0.2.9 May 5, 2021 v0.2.8 Apr 23, 2021 v0.2.7 Apr 12, 2021 v0.2.6 Apr 7, 2021 Changes in this version + const ClusterName + const TokenFilePath + type ClusterAccountsBean struct + Account string + ClusterId int + Config json.RawMessage + Default bool + Id int + type ClusterAccountsService interface + FindAll func() ([]ClusterAccountsBean, error) + FindById func(id int) (*ClusterAccountsBean, error) + FindOne func(clusterName string) (*ClusterAccountsBean, error) + FindOneByEnvironment func(environment string) (*ClusterAccountsBean, error) + Save func(account *ClusterAccountsBean, userId int32) error + Update func(account *ClusterAccountsBean, userId int32) error + type ClusterAccountsServiceImpl struct + func NewClusterAccountsServiceImpl(repository cluster.ClusterAccountsRepository, ...) *ClusterAccountsServiceImpl + func (impl ClusterAccountsServiceImpl) FindAll() ([]ClusterAccountsBean, error) + func (impl ClusterAccountsServiceImpl) FindById(id int) (*ClusterAccountsBean, error) + func (impl ClusterAccountsServiceImpl) FindOne(clusterName string) (*ClusterAccountsBean, error) + func (impl ClusterAccountsServiceImpl) FindOneByEnvironment(environment string) (*ClusterAccountsBean, error) + func (impl ClusterAccountsServiceImpl) Save(request *ClusterAccountsBean, userId int32) error + func (impl ClusterAccountsServiceImpl) Update(request *ClusterAccountsBean, userId int32) error + type ClusterBean struct + Active bool + AgentInstallationStage int + ClusterName string + Config map[string]string + DefaultClusterComponent []*DefaultClusterComponent + Id int + K8sVersion string + PrometheusAuth *PrometheusAuth + PrometheusUrl string + ServerUrl string + type ClusterHelmConfigBean struct + Active bool + ClusterName string + Environment string + TillerCert string + TillerKey string + TillerUrl string + type ClusterHelmConfigService interface + FindOneByEnvironment func(environment string) (*ClusterHelmConfigBean, error) + Save func(clusterHelmConfigBean *ClusterHelmConfigBean, userId int32) error + type ClusterHelmConfigServiceImpl struct + func NewClusterHelmConfigServiceImpl(repository cluster.ClusterHelmConfigRepository, clusterService ClusterService, ...) *ClusterHelmConfigServiceImpl + func (impl ClusterHelmConfigServiceImpl) FindOneByEnvironment(environment string) (*ClusterHelmConfigBean, error) + func (impl ClusterHelmConfigServiceImpl) Save(bean *ClusterHelmConfigBean, userId int32) error + type ClusterService interface + CreateGrafanaDataSource func(clusterBean *ClusterBean, env *cluster.Environment) (int, error) + Delete func(bean *ClusterBean, userId int32) error + FindAll func() ([]*ClusterBean, error) + FindAllActive func() ([]ClusterBean, error) + FindAllForAutoComplete func() ([]ClusterBean, error) + FindById func(id int) (*ClusterBean, error) + FindByIds func(id []int) ([]ClusterBean, error) + FindOne func(clusterName string) (*ClusterBean, error) + FindOneActive func(clusterName string) (*ClusterBean, error) + GetClusterConfig func(cluster *ClusterBean) (*util.ClusterConfig, error) + Save func(bean *ClusterBean, userId int32) (*ClusterBean, error) + Update func(bean *ClusterBean, userId int32) (*ClusterBean, error) + type ClusterServiceImpl struct + K8sUtil *util.K8sUtil + func NewClusterServiceImpl(repository cluster.ClusterRepository, ...) *ClusterServiceImpl + func (impl ClusterServiceImpl) CreateGrafanaDataSource(clusterBean *ClusterBean, env *cluster.Environment) (int, error) + func (impl ClusterServiceImpl) Delete(bean *ClusterBean, userId int32) error + func (impl ClusterServiceImpl) FindAll() ([]*ClusterBean, error) + func (impl ClusterServiceImpl) FindAllActive() ([]ClusterBean, error) + func (impl ClusterServiceImpl) FindAllForAutoComplete() ([]ClusterBean, error) + func (impl ClusterServiceImpl) FindById(id int) (*ClusterBean, error) + func (impl ClusterServiceImpl) FindByIds(ids []int) ([]ClusterBean, error) + func (impl ClusterServiceImpl) FindOne(clusterName string) (*ClusterBean, error) + func (impl ClusterServiceImpl) FindOneActive(clusterName string) (*ClusterBean, error) + func (impl ClusterServiceImpl) GetClusterConfig(cluster *ClusterBean) (*util.ClusterConfig, error) + func (impl ClusterServiceImpl) Save(bean *ClusterBean, userId int32) (*ClusterBean, error) + func (impl ClusterServiceImpl) Update(bean *ClusterBean, userId int32) (*ClusterBean, error) + type DefaultClusterComponent struct + AppId int + ComponentName string + EnvId int + EnvName string + InstalledAppId int + Status string + type EnvironmentBean struct + Active bool + CdArgoSetup bool + ClusterId int + ClusterName string + Default bool + Environment string + Id int + Namespace string + PrometheusEndpoint string + type EnvironmentService interface + Create func(mappings *EnvironmentBean, userId int32) (*EnvironmentBean, error) + FindById func(id int) (*EnvironmentBean, error) + FindByIds func(ids []*int) ([]*EnvironmentBean, error) + FindByNamespaceAndClusterName func(namespaces string, clusterName string) (*cluster.Environment, error) + FindClusterByEnvId func(id int) (*ClusterBean, error) + FindOne func(environment string) (*EnvironmentBean, error) + GetAll func() ([]EnvironmentBean, error) + GetAllActive func() ([]EnvironmentBean, error) + GetByClusterId func(id int) ([]*EnvironmentBean, error) + GetEnvironmentListForAutocomplete func() ([]EnvironmentBean, error) + Update func(mappings *EnvironmentBean, userId int32) (*EnvironmentBean, error) + type EnvironmentServiceImpl struct + K8sUtil *util.K8sUtil + func NewEnvironmentServiceImpl(environmentRepository cluster.EnvironmentRepository, ...) *EnvironmentServiceImpl + func (impl EnvironmentServiceImpl) Create(mappings *EnvironmentBean, userId int32) (*EnvironmentBean, error) + func (impl EnvironmentServiceImpl) FindById(id int) (*EnvironmentBean, error) + func (impl EnvironmentServiceImpl) FindByIds(ids []*int) ([]*EnvironmentBean, error) + func (impl EnvironmentServiceImpl) FindByNamespaceAndClusterName(namespaces string, clusterName string) (*cluster.Environment, error) + func (impl EnvironmentServiceImpl) FindClusterByEnvId(id int) (*ClusterBean, error) + func (impl EnvironmentServiceImpl) FindOne(environment string) (*EnvironmentBean, error) + func (impl EnvironmentServiceImpl) GetAll() ([]EnvironmentBean, error) + func (impl EnvironmentServiceImpl) GetAllActive() ([]EnvironmentBean, error) + func (impl EnvironmentServiceImpl) GetByClusterId(id int) ([]*EnvironmentBean, error) + func (impl EnvironmentServiceImpl) GetEnvironmentListForAutocomplete() ([]EnvironmentBean, error) + func (impl EnvironmentServiceImpl) Update(mappings *EnvironmentBean, userId int32) (*EnvironmentBean, error) + type PrometheusAuth struct + Password string + TlsClientCert string + TlsClientKey string + UserName string