Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
Id int `sql:"id,pk"`
ClusterName string `sql:"cluster_name"`
ServerUrl string `sql:"server_url"`
PrometheusEndpoint string `sql:"prometheus_endpoint"`
Active bool `sql:"active,notnull"`
CdArgoSetup bool `sql:"cd_argo_setup,notnull"`
Config map[string]string `sql:"config"`
PUserName string `sql:"p_username"`
PPassword string `sql:"p_password"`
PTlsClientCert string `sql:"p_tls_client_cert"`
PTlsClientKey string `sql:"p_tls_client_key"`
AgentInstallationStage int `sql:"agent_installation_stage"`
K8sVersion string `sql:"k8s_version"`
ErrorInConnecting string `sql:"error_in_connecting"`
sql.AuditLog
// contains filtered or unexported fields
}
type ClusterRepository ¶
type ClusterRepositoryImpl ¶
type ClusterRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewClusterRepositoryImpl ¶
func NewClusterRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *ClusterRepositoryImpl
func (ClusterRepositoryImpl) FindAllActive ¶
func (impl ClusterRepositoryImpl) FindAllActive() ([]*Cluster, error)
func (ClusterRepositoryImpl) FindById ¶
func (impl ClusterRepositoryImpl) FindById(id int) (*Cluster, error)
func (ClusterRepositoryImpl) FindByIdWithActiveFalse ¶
func (impl ClusterRepositoryImpl) FindByIdWithActiveFalse(id int) (*Cluster, error)
Click to show internal directories.
Click to hide internal directories.