repository

package
v0.0.0-...-b5a8d59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 0

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"`
	InsecureSkipTlsVerify  bool              `sql:"insecure_skip_tls_verify"`
	ProxyUrl               string            `sql:"proxy_url"`
	ToConnectWithSSHTunnel bool              `sql:"to_connect_with_ssh_tunnel"`
	SSHTunnelUser          string            `sql:"ssh_tunnel_user"`
	SSHTunnelPassword      string            `sql:"ssh_tunnel_password"`
	SSHTunnelAuthKey       string            `sql:"ssh_tunnel_auth_key"`
	SSHTunnelServerAddress string            `sql:"ssh_tunnel_server_address"`
	sql.AuditLog
	// contains filtered or unexported fields
}

type ClusterRepository

type ClusterRepository interface {
	FindAllActive() ([]*Cluster, error)
	FindById(id int) (*Cluster, error)
	FindByIdWithActiveFalse(id int) (*Cluster, error)
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL