Documentation ¶
Index ¶
- type AppVersion
- type Chart
- type ChartDeployRecord
- type ChartRelease
- type ChartVersion
- type Cluster
- type Environment
- type Model
- type Store
- func (s Store[M]) Create(model M, user *auth.User) (M, error)
- func (s Store[M]) Delete(selector string, user *auth.User) (M, error)
- func (s Store[M]) Edit(selector string, editsToMake M, user *auth.User) (M, error)
- func (s Store[M]) Get(selector string) (M, error)
- func (s Store[M]) GetOtherValidSelectors(selector string) ([]string, error)
- func (s Store[M]) ListAllMatching(filter M, limit int) ([]M, error)
- type StoreSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppVersion ¶
type AppVersion struct { gorm.Model Chart Chart ChartID uint `gorm:"not null: default:null"` AppVersion string `gorm:"not null: default:null"` GitCommit string GitBranch string }
func (AppVersion) TableName ¶
func (c AppVersion) TableName() string
type Chart ¶
type ChartDeployRecord ¶
type ChartDeployRecord struct { gorm.Model ChartRelease ChartRelease ChartReleaseID uint `gorm:"not null; default:null"` ExactChartVersion string `gorm:"not null; default:null"` ExactAppVersion string HelmfileRef string `gorm:"not null; default:null"` }
func (ChartDeployRecord) TableName ¶
func (c ChartDeployRecord) TableName() string
type ChartRelease ¶
type ChartRelease struct { gorm.Model Chart Chart ChartID uint Cluster *Cluster ClusterID *uint DestinationType string Environment *Environment EnvironmentID *uint Name string `gorm:"not null; default:null; unique"` Namespace string // Mutable CurrentAppVersionExact *string CurrentChartVersionExact *string HelmfileRef *string TargetAppVersionBranch *string TargetAppVersionCommit *string TargetAppVersionExact *string TargetAppVersionUse *string TargetChartVersionExact *string TargetChartVersionUse *string `gorm:"not null; default:null"` ThelmaMode *string }
func (ChartRelease) TableName ¶
func (c ChartRelease) TableName() string
type ChartVersion ¶
type ChartVersion struct { gorm.Model Chart Chart ChartID uint `gorm:"not null: default:null"` ChartVersion string `gorm:"not null: default:null"` }
func (ChartVersion) TableName ¶
func (c ChartVersion) TableName() string
type Cluster ¶
type Cluster struct { gorm.Model Name string `gorm:"not null; default:null; unique"` Provider string `gorm:"not null; default:null"` GoogleProject string AzureSubscription string // Mutable Base *string `gorm:"not null; default:null"` Address *string `gorm:"not null; default:null"` RequiresSuitability *bool `gorm:"not null; default:null"` }
type Environment ¶
type Environment struct { gorm.Model Base string Lifecycle string `gorm:"not null; default:null"` Name string `gorm:"not null; default:null; unique"` TemplateEnvironment *Environment TemplateEnvironmentID *uint ValuesName string ChartReleasesFromTemplate *bool // Mutable DefaultCluster *Cluster DefaultClusterID *uint DefaultNamespace *string Owner *string `gorm:"not null;default:null"` RequiresSuitability *bool }
func (Environment) TableName ¶
func (e Environment) TableName() string
type Store ¶
type Store[M Model] struct { // contains filtered or unexported fields }
func (Store[M]) GetOtherValidSelectors ¶
GetOtherValidSelectors is basically just a human debug method. Different model types have different selectors to try to make it easier to refer to them than by having to directly query them and use their numeric ID primary key. Under the hood, models are already required to be able to generate selectors from an entry for uniqueness-validation purposes, so this is a simple method that uses that existing code to translate one selector for an existing entry into all possible selectors that would match.
func (Store[M]) ListAllMatching ¶
type StoreSet ¶
type StoreSet struct { ClusterStore *Store[Cluster] EnvironmentStore *Store[Environment] ChartStore *Store[Chart] ChartVersionStore *Store[ChartVersion] AppVersionStore *Store[AppVersion] ChartReleaseStore *Store[ChartRelease] ChartDeployRecordStore *Store[ChartDeployRecord] }
func NewStoreSet ¶
Click to show internal directories.
Click to hide internal directories.