models

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 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)

Jump to

Keyboard shortcuts

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