Versions in this module Expand all Collapse all v1 v1.2.9 Apr 12, 2021 v1.2.8 Apr 12, 2021 v0 v0.2.8 Mar 30, 2021 Changes in this version + type Cluster struct + Active bool + AgentInstallationStage int + CdArgoSetup bool + ClusterName string + Config map[string]string + Id int + PPassword string + PTlsClientCert string + PTlsClientKey string + PUserName string + PrometheusEndpoint string + ServerUrl string + type ClusterAccounts struct + Account string + Active bool + Cluster Cluster + ClusterId int + Config string + Default bool + Id int + type ClusterAccountsRepository interface + FindAll func() ([]ClusterAccounts, error) + FindById func(id int) (*ClusterAccounts, error) + FindOne func(clusterName string) (*ClusterAccounts, error) + FindOneByEnvironment func(clusterName string) (*ClusterAccounts, error) + Save func(account *ClusterAccounts) error + Update func(account *ClusterAccounts) error + type ClusterAccountsRepositoryImpl struct + func NewClusterAccountsRepositoryImpl(dbConnection *pg.DB) *ClusterAccountsRepositoryImpl + func (repositoryImpl ClusterAccountsRepositoryImpl) FindAll() ([]ClusterAccounts, error) + func (repositoryImpl ClusterAccountsRepositoryImpl) FindById(id int) (*ClusterAccounts, error) + func (repositoryImpl ClusterAccountsRepositoryImpl) FindOne(clusterName string) (*ClusterAccounts, error) + func (repositoryImpl ClusterAccountsRepositoryImpl) FindOneByEnvironment(environment string) (*ClusterAccounts, error) + func (repositoryImpl ClusterAccountsRepositoryImpl) Save(account *ClusterAccounts) error + func (repositoryImpl ClusterAccountsRepositoryImpl) Update(account *ClusterAccounts) error + type ClusterHelmConfig struct + Active bool + Cluster Cluster + ClusterId int + Id int + TillerCert string + TillerKey string + TillerUrl string + type ClusterHelmConfigRepository interface + FindOneByEnvironment func(environment string) (*ClusterHelmConfig, error) + Save func(clusterHelmConfig *ClusterHelmConfig) error + type ClusterHelmConfigRepositoryImpl struct + func NewClusterHelmConfigRepositoryImpl(dbConnection *pg.DB) *ClusterHelmConfigRepositoryImpl + func (impl ClusterHelmConfigRepositoryImpl) FindOneByEnvironment(environment string) (*ClusterHelmConfig, error) + func (impl ClusterHelmConfigRepositoryImpl) Save(clusterHelmConfig *ClusterHelmConfig) error + type ClusterRepository interface + Delete func(model *Cluster) error + FindAll func() ([]Cluster, error) + FindAllActive func() ([]Cluster, error) + FindById func(id int) (*Cluster, error) + FindByIds func(id []int) ([]Cluster, error) + FindOne func(clusterName string) (*Cluster, error) + FindOneActive func(clusterName string) (*Cluster, error) + Save func(model *Cluster) error + Update func(model *Cluster) error + type ClusterRepositoryImpl struct + func NewClusterRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *ClusterRepositoryImpl + func (impl ClusterRepositoryImpl) Delete(model *Cluster) error + func (impl ClusterRepositoryImpl) FindAll() ([]Cluster, error) + func (impl ClusterRepositoryImpl) FindAllActive() ([]Cluster, error) + func (impl ClusterRepositoryImpl) FindById(id int) (*Cluster, error) + func (impl ClusterRepositoryImpl) FindByIds(id []int) ([]Cluster, error) + func (impl ClusterRepositoryImpl) FindOne(clusterName string) (*Cluster, error) + func (impl ClusterRepositoryImpl) FindOneActive(clusterName string) (*Cluster, error) + func (impl ClusterRepositoryImpl) Save(model *Cluster) error + func (impl ClusterRepositoryImpl) Update(model *Cluster) error + type Environment struct + Active bool + Cluster *Cluster + ClusterId int + Default bool + GrafanaDatasourceId int + Id int + Name string + Namespace string + type EnvironmentRepository interface + Create func(mappings *Environment) error + FindAll func() ([]Environment, error) + FindAllActive func() ([]Environment, error) + FindByClusterId func(clusterId int) ([]*Environment, error) + FindById func(id int) (*Environment, error) + FindByIds func(ids []*int) ([]*Environment, error) + FindByName func(name string) (*Environment, error) + FindByNamespaceAndClusterName func(namespaces string, clusterName string) (*Environment, error) + FindOne func(environment string) (*Environment, error) + Update func(mappings *Environment) error + type EnvironmentRepositoryImpl struct + func NewEnvironmentRepositoryImpl(dbConnection *pg.DB) *EnvironmentRepositoryImpl + func (repo EnvironmentRepositoryImpl) FindByIds(ids []*int) ([]*Environment, error) + func (repositoryImpl EnvironmentRepositoryImpl) Create(mappings *Environment) error + func (repositoryImpl EnvironmentRepositoryImpl) FindAll() ([]Environment, error) + func (repositoryImpl EnvironmentRepositoryImpl) FindAllActive() ([]Environment, error) + func (repositoryImpl EnvironmentRepositoryImpl) FindByClusterId(clusterId int) ([]*Environment, error) + func (repositoryImpl EnvironmentRepositoryImpl) FindById(id int) (*Environment, error) + func (repositoryImpl EnvironmentRepositoryImpl) FindByName(name string) (*Environment, error) + func (repositoryImpl EnvironmentRepositoryImpl) FindByNamespaceAndClusterName(namespaces string, clusterName string) (*Environment, error) + func (repositoryImpl EnvironmentRepositoryImpl) FindOne(environment string) (*Environment, error) + func (repositoryImpl EnvironmentRepositoryImpl) Update(mappings *Environment) error