 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Chart
- type ChartRef
- type ChartRefMetaData
- type ChartRefRepository
- type ChartRefRepositoryImpl
- func (impl ChartRefRepositoryImpl) CheckIfDataExists(location string) (bool, error)
- func (impl ChartRefRepositoryImpl) FetchAllChartInfoByUploadFlag(userUploaded bool) ([]*ChartRef, error)
- func (impl ChartRefRepositoryImpl) FetchChart(name string) ([]*ChartRef, error)
- func (impl ChartRefRepositoryImpl) FetchInfoOfChartConfiguredInApp(appId int) (*ChartRef, error)
- func (impl ChartRefRepositoryImpl) FindById(id int) (*ChartRef, error)
- func (impl ChartRefRepositoryImpl) FindByVersionAndName(name, version string) (*ChartRef, error)
- func (impl ChartRefRepositoryImpl) GetAll() ([]*ChartRef, error)
- func (impl ChartRefRepositoryImpl) GetAllChartMetadata() ([]*ChartRefMetaData, error)
- func (impl ChartRefRepositoryImpl) GetDefault() (*ChartRef, error)
- func (impl ChartRefRepositoryImpl) Save(chartRepo *ChartRef) error
 
- type ChartRepo
- type ChartRepoFields
- type ChartRepoRepository
- type ChartRepoRepositoryImpl
- func (impl ChartRepoRepositoryImpl) FindAll() ([]*ChartRepo, error)
- func (impl ChartRepoRepositoryImpl) FindAllWithDeploymentCount() ([]*ChartRepoWithDeploymentCount, error)
- func (impl ChartRepoRepositoryImpl) FindById(id int) (*ChartRepo, error)
- func (impl ChartRepoRepositoryImpl) FindByName(name string) (*ChartRepo, error)
- func (impl ChartRepoRepositoryImpl) FindDeploymentCountByChartRepoId(chartId int) (int, error)
- func (impl ChartRepoRepositoryImpl) GetConnection() *pg.DB
- func (impl ChartRepoRepositoryImpl) GetDefault() (*ChartRepo, error)
- func (impl ChartRepoRepositoryImpl) MarkChartRepoDeleted(chartRepo *ChartRepo, tx *pg.Tx) error
- func (impl ChartRepoRepositoryImpl) Save(chartRepo *ChartRepo, tx *pg.Tx) error
- func (impl ChartRepoRepositoryImpl) Update(chartRepo *ChartRepo, tx *pg.Tx) error
 
- type ChartRepoWithDeploymentCount
- type ChartRepository
- type ChartRepositoryImpl
- func (repositoryImpl ChartRepositoryImpl) FindActiveChart(appId int) (chart *Chart, err error)
- func (repositoryImpl ChartRepositoryImpl) FindActiveChartsByAppId(appId int) (charts []*Chart, err error)
- func (repositoryImpl ChartRepositoryImpl) FindById(id int) (chart *Chart, err error)
- func (repositoryImpl ChartRepositoryImpl) FindChartByAppIdAndRefId(appId int, chartRefId int) (chart *Chart, err error)
- func (repositoryImpl ChartRepositoryImpl) FindChartByGitRepoUrl(gitRepoUrl string) (*Chart, error)
- func (repositoryImpl ChartRepositoryImpl) FindChartRefIdForLatestChartForAppByAppId(appId int) (int, error)
- func (repositoryImpl ChartRepositoryImpl) FindCurrentChartVersion(chartRepo, chartName, chartVersionPattern string) (string, error)
- func (repositoryImpl ChartRepositoryImpl) FindLatestByAppId(appId int) (chart *Chart, err error)
- func (repositoryImpl ChartRepositoryImpl) FindLatestChartForAppByAppId(appId int) (chart *Chart, err error)
- func (repositoryImpl ChartRepositoryImpl) FindLatestChartForAppByAppIdAndEnvId(appId int, envId int) (chart *Chart, err error)
- func (repositoryImpl ChartRepositoryImpl) FindNoLatestChartForAppByAppId(appId int) ([]*Chart, error)
- func (repositoryImpl ChartRepositoryImpl) FindNumberOfAppsWithDeploymentTemplate(appIds []int) (int, error)
- func (repositoryImpl ChartRepositoryImpl) FindOne(chartRepo, chartName, chartVersion string) (*Chart, error)
- func (repositoryImpl ChartRepositoryImpl) FindPreviousChartByAppId(appId int) (chart *Chart, err error)
- func (repositoryImpl ChartRepositoryImpl) Save(chart *Chart) error
- func (repositoryImpl ChartRepositoryImpl) Update(chart *Chart) error
 
- type DeploymentStrategy
- type GlobalStrategyMetadata
- type GlobalStrategyMetadataChartRefMapping
- type GlobalStrategyMetadataChartRefMappingRepository
- type GlobalStrategyMetadataChartRefMappingRepositoryImpl
- type GlobalStrategyMetadataRepository
- type GlobalStrategyMetadataRepositoryImpl
- type RefChartDir
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chart ¶
type Chart struct {
	Id                      int                         `sql:"id,pk"`
	AppId                   int                         `sql:"app_id"`
	ChartRepoId             int                         `sql:"chart_repo_id"`
	ChartName               string                      `sql:"chart_name"` //use composite key as unique id
	ChartVersion            string                      `sql:"chart_version"`
	ChartRepo               string                      `sql:"chart_repo"`
	ChartRepoUrl            string                      `sql:"chart_repo_url"`
	Values                  string                      `sql:"values_yaml"`       //json format // used at for release. this should be always updated
	GlobalOverride          string                      `sql:"global_override"`   //json format    // global overrides visible to user only
	ReleaseOverride         string                      `sql:"release_override"`  //json format   //image descriptor template used for injecting tigger metadata injection
	PipelineOverride        string                      `sql:"pipeline_override"` //json format  // pipeline values -> strategy values
	Status                  models.ChartStatus          `sql:"status"`            //(new , deployment-in-progress, deployed-To-production, error )
	Active                  bool                        `sql:"active"`
	GitRepoUrl              string                      `sql:"git_repo_url"`   //git repository where chart is stored
	ChartLocation           string                      `sql:"chart_location"` //location within git repo where current chart is pointing
	ReferenceTemplate       string                      `sql:"reference_template"`
	ImageDescriptorTemplate string                      `sql:"image_descriptor_template"`
	ChartRefId              int                         `sql:"chart_ref_id"`
	Latest                  bool                        `sql:"latest,notnull"`
	Previous                bool                        `sql:"previous,notnull"`
	ReferenceChart          []byte                      `sql:"reference_chart"`
	IsBasicViewLocked       bool                        `sql:"is_basic_view_locked,notnull"`
	CurrentViewEditor       models.ChartsViewEditorType `sql:"current_view_editor"`
	ResolvedGlobalOverride  string                      `sql:"-"`
	sql.AuditLog
	// contains filtered or unexported fields
}
    type ChartRef ¶
type ChartRef struct {
	Id                     int    `sql:"id,pk"`
	Location               string `sql:"location"`
	Version                string `sql:"version"`
	Active                 bool   `sql:"active,notnull"`
	Default                bool   `sql:"is_default,notnull"`
	Name                   string `sql:"name"`
	ChartData              []byte `sql:"chart_data"`
	ChartDescription       string `sql:"chart_description"`
	UserUploaded           bool   `sql:"user_uploaded,notnull"`
	IsAppMetricsSupported  bool   `sql:"is_app_metrics_supported,notnull"`
	DeploymentStrategyPath string `sql:"deployment_strategy_path"`
	JsonPathForStrategy    string `sql:"json_path_for_strategy"`
	sql.AuditLog
	// contains filtered or unexported fields
}
    type ChartRefMetaData ¶ added in v0.6.6
type ChartRefRepository ¶
type ChartRefRepository interface {
	Save(chartRepo *ChartRef) error
	GetDefault() (*ChartRef, error)
	FindById(id int) (*ChartRef, error)
	GetAll() ([]*ChartRef, error)
	GetAllChartMetadata() ([]*ChartRefMetaData, error)
	FindByVersionAndName(name, version string) (*ChartRef, error)
	CheckIfDataExists(location string) (bool, error)
	FetchChart(name string) ([]*ChartRef, error)
	FetchInfoOfChartConfiguredInApp(appId int) (*ChartRef, error)
	FetchAllChartInfoByUploadFlag(userUploaded bool) ([]*ChartRef, error)
}
    type ChartRefRepositoryImpl ¶
type ChartRefRepositoryImpl struct {
	// contains filtered or unexported fields
}
    func NewChartRefRepositoryImpl ¶
func NewChartRefRepositoryImpl(dbConnection *pg.DB) *ChartRefRepositoryImpl
func (ChartRefRepositoryImpl) CheckIfDataExists ¶ added in v0.3.22
func (impl ChartRefRepositoryImpl) CheckIfDataExists(location string) (bool, error)
func (ChartRefRepositoryImpl) FetchAllChartInfoByUploadFlag ¶ added in v0.6.23
func (impl ChartRefRepositoryImpl) FetchAllChartInfoByUploadFlag(userUploaded bool) ([]*ChartRef, error)
func (ChartRefRepositoryImpl) FetchChart ¶ added in v0.4.10
func (impl ChartRefRepositoryImpl) FetchChart(name string) ([]*ChartRef, error)
func (ChartRefRepositoryImpl) FetchInfoOfChartConfiguredInApp ¶ added in v0.6.12
func (impl ChartRefRepositoryImpl) FetchInfoOfChartConfiguredInApp(appId int) (*ChartRef, error)
func (ChartRefRepositoryImpl) FindById ¶
func (impl ChartRefRepositoryImpl) FindById(id int) (*ChartRef, error)
func (ChartRefRepositoryImpl) FindByVersionAndName ¶ added in v0.6.2
func (impl ChartRefRepositoryImpl) FindByVersionAndName(name, version string) (*ChartRef, error)
func (ChartRefRepositoryImpl) GetAll ¶
func (impl ChartRefRepositoryImpl) GetAll() ([]*ChartRef, error)
func (ChartRefRepositoryImpl) GetAllChartMetadata ¶ added in v0.6.6
func (impl ChartRefRepositoryImpl) GetAllChartMetadata() ([]*ChartRefMetaData, error)
func (ChartRefRepositoryImpl) GetDefault ¶
func (impl ChartRefRepositoryImpl) GetDefault() (*ChartRef, error)
func (ChartRefRepositoryImpl) Save ¶
func (impl ChartRefRepositoryImpl) Save(chartRepo *ChartRef) error
type ChartRepo ¶
type ChartRepo struct {
	ChartRepoFields
	sql.AuditLog
	// contains filtered or unexported fields
}
    type ChartRepoFields ¶ added in v0.6.13
type ChartRepoFields struct {
	Id                      int                 `sql:"id,pk"`
	Name                    string              `sql:"name"`
	Url                     string              `sql:"url"`
	Active                  bool                `sql:"active,notnull"`
	Default                 bool                `sql:"is_default,notnull"`
	UserName                string              `sql:"user_name"`
	Password                string              `sql:"password"`
	SshKey                  string              `sql:"ssh_key"`
	AccessToken             string              `sql:"access_token"`
	AuthMode                repository.AuthMode `sql:"auth_mode,notnull"`
	External                bool                `sql:"external,notnull"`
	Deleted                 bool                `sql:"deleted,notnull"`
	AllowInsecureConnection bool                `sql:"allow_insecure_connection"`
}
    type ChartRepoRepository ¶
type ChartRepoRepository interface {
	Save(chartRepo *ChartRepo, tx *pg.Tx) error
	Update(chartRepo *ChartRepo, tx *pg.Tx) error
	GetDefault() (*ChartRepo, error)
	FindById(id int) (*ChartRepo, error)
	FindAll() ([]*ChartRepo, error)
	FindAllWithDeploymentCount() ([]*ChartRepoWithDeploymentCount, error)
	FindDeploymentCountByChartRepoId(chartId int) (int, error)
	GetConnection() *pg.DB
	MarkChartRepoDeleted(chartRepo *ChartRepo, tx *pg.Tx) error
	FindByName(name string) (*ChartRepo, error)
}
    type ChartRepoRepositoryImpl ¶
type ChartRepoRepositoryImpl struct {
	// contains filtered or unexported fields
}
    func NewChartRepoRepositoryImpl ¶
func NewChartRepoRepositoryImpl(dbConnection *pg.DB) *ChartRepoRepositoryImpl
func (ChartRepoRepositoryImpl) FindAll ¶
func (impl ChartRepoRepositoryImpl) FindAll() ([]*ChartRepo, error)
func (ChartRepoRepositoryImpl) FindAllWithDeploymentCount ¶ added in v0.6.13
func (impl ChartRepoRepositoryImpl) FindAllWithDeploymentCount() ([]*ChartRepoWithDeploymentCount, error)
func (ChartRepoRepositoryImpl) FindById ¶
func (impl ChartRepoRepositoryImpl) FindById(id int) (*ChartRepo, error)
func (ChartRepoRepositoryImpl) FindByName ¶ added in v0.4.24
func (impl ChartRepoRepositoryImpl) FindByName(name string) (*ChartRepo, error)
func (ChartRepoRepositoryImpl) FindDeploymentCountByChartRepoId ¶ added in v0.6.22
func (impl ChartRepoRepositoryImpl) FindDeploymentCountByChartRepoId(chartId int) (int, error)
func (ChartRepoRepositoryImpl) GetConnection ¶
func (impl ChartRepoRepositoryImpl) GetConnection() *pg.DB
func (ChartRepoRepositoryImpl) GetDefault ¶
func (impl ChartRepoRepositoryImpl) GetDefault() (*ChartRepo, error)
func (ChartRepoRepositoryImpl) MarkChartRepoDeleted ¶
func (impl ChartRepoRepositoryImpl) MarkChartRepoDeleted(chartRepo *ChartRepo, tx *pg.Tx) error
type ChartRepoWithDeploymentCount ¶ added in v0.6.13
type ChartRepoWithDeploymentCount struct {
	ChartRepoFields
	sql.AuditLog
	ActiveDeploymentCount int `sql:"deployment_count,notnull"`
}
    type ChartRepository ¶
type ChartRepository interface {
	//ChartReleasedToProduction(chartRepo, appName, chartVersion string) (bool, error)
	FindOne(chartRepo, appName, chartVersion string) (*Chart, error)
	Save(*Chart) error
	FindCurrentChartVersion(chartRepo, chartName, chartVersionPattern string) (string, error)
	FindActiveChart(appId int) (chart *Chart, err error)
	FindLatestByAppId(appId int) (chart *Chart, err error)
	FindById(id int) (chart *Chart, err error)
	Update(chart *Chart) error
	FindActiveChartsByAppId(appId int) (charts []*Chart, err error)
	FindLatestChartForAppByAppId(appId int) (chart *Chart, err error)
	FindChartRefIdForLatestChartForAppByAppId(appId int) (int, error)
	FindChartByAppIdAndRefId(appId int, chartRefId int) (chart *Chart, err error)
	FindNoLatestChartForAppByAppId(appId int) ([]*Chart, error)
	FindPreviousChartByAppId(appId int) (chart *Chart, err error)
	FindNumberOfAppsWithDeploymentTemplate(appIds []int) (int, error)
	FindChartByGitRepoUrl(gitRepoUrl string) (*Chart, error)
}
    type ChartRepositoryImpl ¶
type ChartRepositoryImpl struct {
	// contains filtered or unexported fields
}
    func NewChartRepository ¶
func NewChartRepository(dbConnection *pg.DB) *ChartRepositoryImpl
func (ChartRepositoryImpl) FindActiveChart ¶
func (repositoryImpl ChartRepositoryImpl) FindActiveChart(appId int) (chart *Chart, err error)
Deprecated
func (ChartRepositoryImpl) FindActiveChartsByAppId ¶
func (repositoryImpl ChartRepositoryImpl) FindActiveChartsByAppId(appId int) (charts []*Chart, err error)
func (ChartRepositoryImpl) FindById ¶
func (repositoryImpl ChartRepositoryImpl) FindById(id int) (chart *Chart, err error)
func (ChartRepositoryImpl) FindChartByAppIdAndRefId ¶
func (repositoryImpl ChartRepositoryImpl) FindChartByAppIdAndRefId(appId int, chartRefId int) (chart *Chart, err error)
func (ChartRepositoryImpl) FindChartByGitRepoUrl ¶ added in v0.4.18
func (repositoryImpl ChartRepositoryImpl) FindChartByGitRepoUrl(gitRepoUrl string) (*Chart, error)
func (ChartRepositoryImpl) FindChartRefIdForLatestChartForAppByAppId ¶ added in v0.6.17
func (repositoryImpl ChartRepositoryImpl) FindChartRefIdForLatestChartForAppByAppId(appId int) (int, error)
func (ChartRepositoryImpl) FindCurrentChartVersion ¶
func (repositoryImpl ChartRepositoryImpl) FindCurrentChartVersion(chartRepo, chartName, chartVersionPattern string) (string, error)
func (ChartRepositoryImpl) FindLatestByAppId ¶
func (repositoryImpl ChartRepositoryImpl) FindLatestByAppId(appId int) (chart *Chart, err error)
Deprecated
func (ChartRepositoryImpl) FindLatestChartForAppByAppId ¶
func (repositoryImpl ChartRepositoryImpl) FindLatestChartForAppByAppId(appId int) (chart *Chart, err error)
func (ChartRepositoryImpl) FindLatestChartForAppByAppIdAndEnvId ¶
func (repositoryImpl ChartRepositoryImpl) FindLatestChartForAppByAppIdAndEnvId(appId int, envId int) (chart *Chart, err error)
func (ChartRepositoryImpl) FindNoLatestChartForAppByAppId ¶
func (repositoryImpl ChartRepositoryImpl) FindNoLatestChartForAppByAppId(appId int) ([]*Chart, error)
func (ChartRepositoryImpl) FindNumberOfAppsWithDeploymentTemplate ¶ added in v0.4.14
func (repositoryImpl ChartRepositoryImpl) FindNumberOfAppsWithDeploymentTemplate(appIds []int) (int, error)
func (ChartRepositoryImpl) FindOne ¶
func (repositoryImpl ChartRepositoryImpl) FindOne(chartRepo, chartName, chartVersion string) (*Chart, error)
func (ChartRepositoryImpl) FindPreviousChartByAppId ¶
func (repositoryImpl ChartRepositoryImpl) FindPreviousChartByAppId(appId int) (chart *Chart, err error)
func (ChartRepositoryImpl) Save ¶
func (repositoryImpl ChartRepositoryImpl) Save(chart *Chart) error
func (ChartRepositoryImpl) Update ¶
func (repositoryImpl ChartRepositoryImpl) Update(chart *Chart) error
type DeploymentStrategy ¶ added in v0.6.10
type DeploymentStrategy string
pipeline strategy metadata repository starts here
const ( DEPLOYMENT_STRATEGY_BLUE_GREEN DeploymentStrategy = "BLUE-GREEN" DEPLOYMENT_STRATEGY_ROLLING DeploymentStrategy = "ROLLING" DEPLOYMENT_STRATEGY_CANARY DeploymentStrategy = "CANARY" DEPLOYMENT_STRATEGY_RECREATE DeploymentStrategy = "RECREATE" )
type GlobalStrategyMetadata ¶ added in v0.6.10
type GlobalStrategyMetadataChartRefMapping ¶ added in v0.6.10
type GlobalStrategyMetadataChartRefMapping struct {
	Id                       int  `sql:"id,pk"`
	GlobalStrategyMetadataId int  `sql:"global_strategy_metadata_id"`
	ChartRefId               int  `sql:"chart_ref_id"`
	Active                   bool `sql:"active,notnull"`
	Default                  bool `sql:"default,notnull"`
	GlobalStrategyMetadata   *GlobalStrategyMetadata
	sql.AuditLog
	// contains filtered or unexported fields
}
    pipeline strategy metadata and chart_ref mapping repository starts here
type GlobalStrategyMetadataChartRefMappingRepository ¶ added in v0.6.10
type GlobalStrategyMetadataChartRefMappingRepository interface {
	GetByChartRefId(chartRefId int) ([]*GlobalStrategyMetadataChartRefMapping, error)
}
    type GlobalStrategyMetadataChartRefMappingRepositoryImpl ¶ added in v0.6.10
type GlobalStrategyMetadataChartRefMappingRepositoryImpl struct {
	// contains filtered or unexported fields
}
    func NewGlobalStrategyMetadataChartRefMappingRepositoryImpl ¶ added in v0.6.10
func NewGlobalStrategyMetadataChartRefMappingRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *GlobalStrategyMetadataChartRefMappingRepositoryImpl
func (*GlobalStrategyMetadataChartRefMappingRepositoryImpl) GetByChartRefId ¶ added in v0.6.17
func (impl *GlobalStrategyMetadataChartRefMappingRepositoryImpl) GetByChartRefId(chartRefId int) ([]*GlobalStrategyMetadataChartRefMapping, error)
type GlobalStrategyMetadataRepository ¶ added in v0.6.10
type GlobalStrategyMetadataRepository interface {
	GetByChartRefId(chartRefId int) ([]*GlobalStrategyMetadata, error)
}
    type GlobalStrategyMetadataRepositoryImpl ¶ added in v0.6.10
type GlobalStrategyMetadataRepositoryImpl struct {
	// contains filtered or unexported fields
}
    func NewGlobalStrategyMetadataRepositoryImpl ¶ added in v0.6.10
func NewGlobalStrategyMetadataRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *GlobalStrategyMetadataRepositoryImpl
func (*GlobalStrategyMetadataRepositoryImpl) GetByChartRefId ¶ added in v0.6.10
func (impl *GlobalStrategyMetadataRepositoryImpl) GetByChartRefId(chartRefId int) ([]*GlobalStrategyMetadata, error)
type RefChartDir ¶ added in v0.4.5
type RefChartDir string
 Click to show internal directories. 
   Click to hide internal directories.