Help us shape the future of Go! Take the 2026 Go Developer Survey

appstore

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppStore

type AppStore struct {
	TableName   struct{} `sql:"app_store" pg:",discard_unknown_columns"`
	Id          int      `sql:"id,pk"`
	Name        string   `sql:"name"`
	ChartRepoId int      `sql:"chart_repo_id"`
	//Active           bool      `sql:"active"`
	ChartGitLocation string    `sql:"chart_git_location"`
	CreatedOn        time.Time `sql:"created_on"`
	UpdatedOn        time.Time `sql:"updated_on"`
	ChartRepo        *chartConfig.ChartRepo
}

type AppStoreApplicationVersion

type AppStoreApplicationVersion struct {
	TableName   struct{}  `sql:"app_store_application_version" pg:",discard_unknown_columns"`
	Id          int       `sql:"id,pk"`
	Version     string    `sql:"version"`
	AppVersion  string    `sql:"app_version"`
	Created     time.Time `sql:"created"`
	Deprecated  bool      `sql:"deprecated"`
	Description string    `sql:"description"`
	Digest      string    `sql:"digest"`
	Icon        string    `sql:"icon"`
	Name        string    `sql:"name"`
	Source      string    `sql:"source"`
	Home        string    `sql:"home"`
	ValuesYaml  string    `sql:"values_yaml"`
	ChartYaml   string    `sql:"chart_yaml"`
	Latest      bool      `sql:"latest"`
	AppStoreId  int       `sql:"app_store_id"`
	models.AuditLog
	RawValues string `sql:"raw_values"`
	Readme    string `sql:"readme"`
	AppStore  *AppStore
}

type AppStoreApplicationVersionRepository

type AppStoreApplicationVersionRepository interface {
	FindAll() ([]AppStoreWithVersion, error)
	FindWithFilter(filter *AppStoreFilter) ([]AppStoreWithVersion, error)
	FindById(id int) (*AppStoreApplicationVersion, error)
	FindVersionsByAppStoreId(id int) ([]*AppStoreApplicationVersion, error)
	FindChartVersionByAppStoreId(id int) ([]*AppStoreApplicationVersion, error)
	FindByIds(ids []int) ([]*AppStoreApplicationVersion, error)
	GetReadMeById(id int) (*AppStoreApplicationVersion, error)
	FindByAppStoreName(name string) (*AppStoreWithVersion, error)
	SearchAppStoreChartByName(chartName string) ([]*ChartRepoSearch, error)
}

type AppStoreApplicationVersionRepositoryImpl

type AppStoreApplicationVersionRepositoryImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewAppStoreApplicationVersionRepositoryImpl

func NewAppStoreApplicationVersionRepositoryImpl(Logger *zap.SugaredLogger, dbConnection *pg.DB) *AppStoreApplicationVersionRepositoryImpl

func (*AppStoreApplicationVersionRepositoryImpl) FindAll

func (*AppStoreApplicationVersionRepositoryImpl) FindByAppStoreName

func (impl *AppStoreApplicationVersionRepositoryImpl) FindByAppStoreName(name string) (*AppStoreWithVersion, error)

func (AppStoreApplicationVersionRepositoryImpl) FindById

func (AppStoreApplicationVersionRepositoryImpl) FindByIds

func (AppStoreApplicationVersionRepositoryImpl) FindChartVersionByAppStoreId

func (impl AppStoreApplicationVersionRepositoryImpl) FindChartVersionByAppStoreId(appStoreId int) ([]*AppStoreApplicationVersion, error)

func (AppStoreApplicationVersionRepositoryImpl) FindVersionsByAppStoreId

func (impl AppStoreApplicationVersionRepositoryImpl) FindVersionsByAppStoreId(id int) ([]*AppStoreApplicationVersion, error)

func (*AppStoreApplicationVersionRepositoryImpl) FindWithFilter

func (AppStoreApplicationVersionRepositoryImpl) GetReadMeById

func (*AppStoreApplicationVersionRepositoryImpl) SearchAppStoreChartByName

func (impl *AppStoreApplicationVersionRepositoryImpl) SearchAppStoreChartByName(chartName string) ([]*ChartRepoSearch, error)

type AppStoreFilter

type AppStoreFilter struct {
	ChartRepoId       []int  `json:"chartRepoId"`
	AppStoreName      string `json:"appStoreName"`
	AppName           string `json:"appName"`
	IncludeDeprecated bool   `json:"includeDeprecated"`
	Offset            int    `json:"offset"`
	Size              int    `json:"size"`
	EnvIds            []int  `json:"envIds"`
	OnlyDeprecated    bool   `json:"onlyDeprecated"`
}

type AppStoreRepository

type AppStoreRepository interface{}

type AppStoreRepositoryImpl

type AppStoreRepositoryImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewAppStoreRepositoryImpl

func NewAppStoreRepositoryImpl(Logger *zap.SugaredLogger, dbConnection *pg.DB) *AppStoreRepositoryImpl

type AppStoreVersionValues

type AppStoreVersionValues struct {
	TableName                    struct{} `sql:"app_store_version_values" pg:",discard_unknown_columns"`
	Id                           int      `sql:"id,pk"`
	Name                         string   `sql:"name"`
	ValuesYaml                   string   `sql:"values_yaml"`
	AppStoreApplicationVersionId int      `sql:"app_store_application_version_id"`
	ReferenceType                string   `sql:"reference_type"`
	Deleted                      bool     `sql:"deleted,notnull"`
	models.AuditLog
	AppStoreApplicationVersion *AppStoreApplicationVersion
}

type AppStoreVersionValuesRepository

type AppStoreVersionValuesRepository interface {
	CreateAppStoreVersionValues(model *AppStoreVersionValues) (*AppStoreVersionValues, error)
	UpdateAppStoreVersionValues(model *AppStoreVersionValues) (*AppStoreVersionValues, error)
	DeleteAppStoreVersionValues(model *AppStoreVersionValues) (bool, error)
	/*	FindAll() ([]*AppStoreVersionValues, error)*/
	FindById(id int) (*AppStoreVersionValues, error)
	FindValuesByAppStoreId(appStoreVersionId int) ([]*AppStoreVersionValues, error)
	FindValuesByAppStoreIdAndReferenceType(appStoreVersionId int, referenceType string) ([]*AppStoreVersionValues, error)
}

type AppStoreVersionValuesRepositoryImpl

type AppStoreVersionValuesRepositoryImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewAppStoreVersionValuesRepositoryImpl

func NewAppStoreVersionValuesRepositoryImpl(Logger *zap.SugaredLogger, dbConnection *pg.DB) *AppStoreVersionValuesRepositoryImpl

func (AppStoreVersionValuesRepositoryImpl) CreateAppStoreVersionValues

func (impl AppStoreVersionValuesRepositoryImpl) CreateAppStoreVersionValues(model *AppStoreVersionValues) (*AppStoreVersionValues, error)

func (AppStoreVersionValuesRepositoryImpl) DeleteAppStoreVersionValues

func (impl AppStoreVersionValuesRepositoryImpl) DeleteAppStoreVersionValues(model *AppStoreVersionValues) (bool, error)

func (AppStoreVersionValuesRepositoryImpl) FindById

func (AppStoreVersionValuesRepositoryImpl) FindValuesByAppStoreId

func (impl AppStoreVersionValuesRepositoryImpl) FindValuesByAppStoreId(appStoreId int) ([]*AppStoreVersionValues, error)

func (AppStoreVersionValuesRepositoryImpl) FindValuesByAppStoreIdAndReferenceType

func (impl AppStoreVersionValuesRepositoryImpl) FindValuesByAppStoreIdAndReferenceType(appStoreId int, referenceType string) ([]*AppStoreVersionValues, error)

func (AppStoreVersionValuesRepositoryImpl) UpdateAppStoreVersionValues

func (impl AppStoreVersionValuesRepositoryImpl) UpdateAppStoreVersionValues(model *AppStoreVersionValues) (*AppStoreVersionValues, error)

type AppStoreWithVersion

type AppStoreWithVersion struct {
	Id                           int       `json:"id"`
	AppStoreApplicationVersionId int       `json:"appStoreApplicationVersionId"`
	Name                         string    `json:"name"`
	ChartRepoId                  int       `json:"chart_repo_id"`
	ChartName                    string    `json:"chart_name"`
	Icon                         string    `json:"icon"`
	Active                       bool      `json:"active"`
	ChartGitLocation             string    `json:"chart_git_location"`
	CreatedOn                    time.Time `json:"created_on"`
	UpdatedOn                    time.Time `json:"updated_on"`
	Version                      string    `json:"version"`
	Deprecated                   bool      `json:"deprecated"`
}

type AppstoreDeploymentStatus

type AppstoreDeploymentStatus int
const (
	WF_UNKNOWN AppstoreDeploymentStatus = iota
	REQUEST_ACCEPTED
	ENQUEUED
	QUE_ERROR
	DEQUE_ERROR
	TRIGGER_ERROR
	DEPLOY_SUCCESS
	DEPLOY_INIT
	GIT_ERROR
	GIT_SUCCESS
	ACD_ERROR
	ACD_SUCCESS
)

func (AppstoreDeploymentStatus) String

func (a AppstoreDeploymentStatus) String() string

type ChartRepoSearch

type ChartRepoSearch struct {
	AppStoreApplicationVersionId int    `json:"appStoreApplicationVersionId"`
	ChartId                      int    `json:"chartId"`
	ChartName                    string `json:"chartName"`
	ChartRepoId                  int    `json:"chartRepoId"`
	ChartRepoName                string `json:"chartRepoName"`
	Version                      string `json:"version"`
	Deprecated                   bool   `json:"deprecated"`
}

type ClusterInstalledApps

type ClusterInstalledApps struct {
	Id             int `sql:"id,pk"`
	ClusterId      int `sql:"cluster_id,notnull"`
	InstalledAppId int `sql:"installed_app_id,notnull"`
	InstalledApp   InstalledApps
	models.AuditLog
	// contains filtered or unexported fields
}

type ClusterInstalledAppsRepository

type ClusterInstalledAppsRepository interface {
	Save(model *ClusterInstalledApps, tx *pg.Tx) error
	FindByClusterId(clusterId int) ([]*ClusterInstalledApps, error)
	FindByClusterIds(clusterIds []int) ([]*ClusterInstalledApps, error)
	FindAll() ([]ClusterInstalledApps, error)
	Update(model *ClusterInstalledApps) error
	Delete(model *ClusterInstalledApps) error
}

type ClusterInstalledAppsRepositoryImpl

type ClusterInstalledAppsRepositoryImpl struct {
	// contains filtered or unexported fields
}

func NewClusterInstalledAppsRepositoryImpl

func NewClusterInstalledAppsRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *ClusterInstalledAppsRepositoryImpl

func (ClusterInstalledAppsRepositoryImpl) Delete

func (ClusterInstalledAppsRepositoryImpl) FindAll

func (ClusterInstalledAppsRepositoryImpl) FindByClusterId

func (impl ClusterInstalledAppsRepositoryImpl) FindByClusterId(clusterId int) ([]*ClusterInstalledApps, error)

func (ClusterInstalledAppsRepositoryImpl) FindByClusterIds

func (impl ClusterInstalledAppsRepositoryImpl) FindByClusterIds(clusterIds []int) ([]*ClusterInstalledApps, error)

func (ClusterInstalledAppsRepositoryImpl) Save

func (ClusterInstalledAppsRepositoryImpl) Update

type InstalledAppAndEnvDetails

type InstalledAppAndEnvDetails struct {
	EnvironmentName              string    `json:"environment_name"`
	EnvironmentId                int       `json:"environment_id"`
	AppName                      string    `json:"app_name"`
	UpdatedOn                    time.Time `json:"updated_on"`
	EmailId                      string    `json:"email_id"`
	InstalledAppVersionId        int       `json:"installed_app_version_id"`
	InstalledAppId               int       `json:"installed_app_id"`
	AppStoreApplicationVersionId int       `json:"app_store_application_version_id"`
}

type InstalledAppRepository

type InstalledAppRepository interface {
	CreateInstalledApp(model *InstalledApps, tx *pg.Tx) (*InstalledApps, error)
	CreateInstalledAppVersion(model *InstalledAppVersions, tx *pg.Tx) (*InstalledAppVersions, error)
	UpdateInstalledApp(model *InstalledApps, tx *pg.Tx) (*InstalledApps, error)
	UpdateInstalledAppVersion(model *InstalledAppVersions, tx *pg.Tx) (*InstalledAppVersions, error)
	GetInstalledApp(id int) (*InstalledApps, error)
	GetInstalledAppVersion(id int) (*InstalledAppVersions, error)
	GetInstalledAppVersionAny(id int) (*InstalledAppVersions, error)
	GetAllInstalledApps(filter *AppStoreFilter) ([]InstalledAppsWithChartDetails, error)
	GetAllIntalledAppsByAppStoreId(appStoreId int) ([]InstalledAppAndEnvDetails, error)
	GetInstalledAppVersionByInstalledAppIdAndEnvId(installedAppId int, envId int) (*InstalledAppVersions, error)
	GetInstalledAppVersionByAppStoreId(appStoreId int) ([]*InstalledAppVersions, error)

	DeleteInstalledApp(model *InstalledApps) (*InstalledApps, error)
	DeleteInstalledAppVersion(model *InstalledAppVersions) (*InstalledAppVersions, error)
	GetInstalledAppVersionByInstalledAppId(id int) ([]*InstalledAppVersions, error)
	GetConnection() (dbConnection *pg.DB)
	GetInstalledAppVersionByInstalledAppIdMeta(appStoreApplicationId int) ([]*InstalledAppVersions, error)
	GetClusterComponentByClusterId(clusterId int) ([]*InstalledApps, error)     //unused
	GetClusterComponentByClusterIds(clusterIds []int) ([]*InstalledApps, error) //unused
	GetInstalledAppVersionByAppIdAndEnvId(appId int, envId int) (*InstalledAppVersions, error)
	GetInstalledAppVersionByClusterIds(clusterIds []int) ([]*InstalledAppVersions, error) //unused
	GetInstalledAppVersionByClusterIdsV2(clusterIds []int) ([]*InstalledAppVersions, error)
}

type InstalledAppRepositoryImpl

type InstalledAppRepositoryImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewInstalledAppRepositoryImpl

func NewInstalledAppRepositoryImpl(Logger *zap.SugaredLogger, dbConnection *pg.DB) *InstalledAppRepositoryImpl

func (InstalledAppRepositoryImpl) CreateInstalledApp

func (impl InstalledAppRepositoryImpl) CreateInstalledApp(model *InstalledApps, tx *pg.Tx) (*InstalledApps, error)

func (InstalledAppRepositoryImpl) CreateInstalledAppVersion

func (impl InstalledAppRepositoryImpl) CreateInstalledAppVersion(model *InstalledAppVersions, tx *pg.Tx) (*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) DeleteInstalledApp

func (impl InstalledAppRepositoryImpl) DeleteInstalledApp(model *InstalledApps) (*InstalledApps, error)

func (InstalledAppRepositoryImpl) DeleteInstalledAppVersion

func (impl InstalledAppRepositoryImpl) DeleteInstalledAppVersion(model *InstalledAppVersions) (*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetAllInstalledApps

func (impl InstalledAppRepositoryImpl) GetAllInstalledApps(filter *AppStoreFilter) ([]InstalledAppsWithChartDetails, error)

func (InstalledAppRepositoryImpl) GetAllIntalledAppsByAppStoreId

func (impl InstalledAppRepositoryImpl) GetAllIntalledAppsByAppStoreId(appStoreId int) ([]InstalledAppAndEnvDetails, error)

func (InstalledAppRepositoryImpl) GetClusterComponentByClusterId

func (impl InstalledAppRepositoryImpl) GetClusterComponentByClusterId(clusterId int) ([]*InstalledApps, error)

func (InstalledAppRepositoryImpl) GetClusterComponentByClusterIds

func (impl InstalledAppRepositoryImpl) GetClusterComponentByClusterIds(clusterIds []int) ([]*InstalledApps, error)

func (*InstalledAppRepositoryImpl) GetConnection

func (impl *InstalledAppRepositoryImpl) GetConnection() (dbConnection *pg.DB)

func (InstalledAppRepositoryImpl) GetInstalledApp

func (impl InstalledAppRepositoryImpl) GetInstalledApp(id int) (*InstalledApps, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersion

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersion(id int) (*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersionAny

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionAny(id int) (*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersionByAppIdAndEnvId

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionByAppIdAndEnvId(appId int, envId int) (*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersionByAppStoreId

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionByAppStoreId(appStoreId int) ([]*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersionByClusterIds

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionByClusterIds(clusterIds []int) ([]*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersionByClusterIdsV2

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionByClusterIdsV2(clusterIds []int) ([]*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersionByInstalledAppId

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionByInstalledAppId(id int) ([]*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersionByInstalledAppIdAndEnvId

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionByInstalledAppIdAndEnvId(installedAppId int, envId int) (*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) GetInstalledAppVersionByInstalledAppIdMeta

func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionByInstalledAppIdMeta(installedAppId int) ([]*InstalledAppVersions, error)

func (InstalledAppRepositoryImpl) UpdateInstalledApp

func (impl InstalledAppRepositoryImpl) UpdateInstalledApp(model *InstalledApps, tx *pg.Tx) (*InstalledApps, error)

func (InstalledAppRepositoryImpl) UpdateInstalledAppVersion

func (impl InstalledAppRepositoryImpl) UpdateInstalledAppVersion(model *InstalledAppVersions, tx *pg.Tx) (*InstalledAppVersions, error)

type InstalledAppVersions

type InstalledAppVersions struct {
	TableName                    struct{} `sql:"installed_app_versions" pg:",discard_unknown_columns"`
	Id                           int      `sql:"id,pk"`
	InstalledAppId               int      `sql:"installed_app_id,notnull"`
	AppStoreApplicationVersionId int      `sql:"app_store_application_version_id,notnull"`
	ValuesYaml                   string   `sql:"values_yaml_raw"`
	Active                       bool     `sql:"active, notnull"`
	ReferenceValueId             int      `sql:"reference_value_id"`
	ReferenceValueKind           string   `sql:"reference_value_kind"`
	models.AuditLog
	InstalledApp               InstalledApps
	AppStoreApplicationVersion AppStoreApplicationVersion
}

type InstalledApps

type InstalledApps struct {
	TableName     struct{}                 `sql:"installed_apps" pg:",discard_unknown_columns"`
	Id            int                      `sql:"id,pk"`
	AppId         int                      `sql:"app_id,notnull"`
	EnvironmentId int                      `sql:"environment_id,notnull"`
	Active        bool                     `sql:"active, notnull"`
	Status        AppstoreDeploymentStatus `sql:"status"`
	App           pipelineConfig.App
	Environment   cluster.Environment
	models.AuditLog
}

type InstalledAppsWithChartDetails

type InstalledAppsWithChartDetails struct {
	AppStoreApplicationName      string    `json:"app_store_application_name"`
	ChartRepoName                string    `json:"chart_repo_name"`
	AppName                      string    `json:"app_name"`
	EnvironmentName              string    `json:"environment_name"`
	InstalledAppVersionId        int       `json:"installed_app_version_id"`
	AppStoreApplicationVersionId int       `json:"app_store_application_version_id"`
	Icon                         string    `json:"icon"`
	Readme                       string    `json:"readme"`
	CreatedOn                    time.Time `json:"created_on"`
	UpdatedOn                    time.Time `json:"updated_on"`
	Id                           int       `json:"id"`
	EnvironmentId                int       `json:"environment_id"`
	Deprecated                   bool      `json:"deprecated"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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