Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDbConnection ¶
Types ¶
type ChartStatus ¶
type ChartStatus int
const ( CHARTSTATUS_NEW ChartStatus = 1 CHARTSTATUS_DEPLOYMENT_IN_PROGRESS ChartStatus = 2 CHARTSTATUS_SUCCESS ChartStatus = 3 CHARTSTATUS_ERROR ChartStatus = 4 CHARTSTATUS_ROLLBACK ChartStatus = 5 CHARTSTATUS_UNKNOWN ChartStatus = 6 )
func (ChartStatus) String ¶
func (s ChartStatus) String() string
type Config ¶
type Config struct { Addr string `env:"PG_ADDR" envDefault:"127.0.0.1"` Port string `env:"PG_PORT" envDefault:"5432"` User string `env:"PG_USER" envDefault:""` Password string `env:"PG_PASSWORD" envDefault:""` Database string `env:"PG_DATABASE" envDefault:"orchestrator"` ApplicationName string `env:"APP" envDefault:"orchestrator"` LogQuery bool `env:"PG_LOG_QUERY" envDefault:"true"` }
type DeploymentType ¶
type DeploymentType int
const ( DEPLOYMENTTYPE_UNKNOWN DeploymentType = iota DEPLOYMENTTYPE_DEPLOY DEPLOYMENTTYPE_ROLLBACK DEPLOYMENTTYPE_STOP DEPLOYMENTTYPE_START )
func (DeploymentType) String ¶
func (d DeploymentType) String() string
type HelmValues ¶
type HelmValues struct { AppName string `sql:"app_name,pk"` TargetEnvironment string `sql:"environment,pk"` //target environment Values string `sql:"values_yaml"` Active bool `sql:"active,notnull"` CreatedOn time.Time `sql:"created_on"` CreatedBy int32 `sql:"created_by"` UpdatedOn time.Time `sql:"updated_on"` UpdatedBy int32 `sql:"updated_by"` // contains filtered or unexported fields }
type HelmValuesService ¶
type HelmValuesService interface { AddHelmValues(manifest *HelmValues) error GetHelmValues(appName, targetEnvironment string) (*HelmValues, error) }
type HelmValuesServiceImpl ¶
type HelmValuesServiceImpl struct { Logger *zap.SugaredLogger // contains filtered or unexported fields }
func NewHelmValuesServiceImpl ¶
func NewHelmValuesServiceImpl(Logger *zap.SugaredLogger, dbConnection *pg.DB) *HelmValuesServiceImpl
func (HelmValuesServiceImpl) AddHelmValues ¶
func (impl HelmValuesServiceImpl) AddHelmValues(manifest *HelmValues) error
func (HelmValuesServiceImpl) GetHelmValues ¶
func (impl HelmValuesServiceImpl) GetHelmValues(appName, targetEnvironment string) (*HelmValues, error)
Click to show internal directories.
Click to hide internal directories.