Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvStarting = "starting" EnvRunning = "running" EnvFailed = "failed" EnvDeleted = "deleted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEnvironment ¶
type BaseEnvironment struct { Id uint `json:"id" gorm:"primaryKey"` OwnerId *uint `json:"ownerID" gorm:"foreignKey"` Name string `json:"name" binding:"required" gorm:"type:varchar(80);uniqueIndex:name_deletedAt"` ChartName string `json:"chartName" binding:"required,knownchart" gorm:"type:varchar(80)"` Status string `json:"status" gorm:"type:varchar(20)"` ReleaseName string `json:"releaseName" gorm:"type:varchar(80)"` CreatedAt time.Time `json:"createdAt"` // UTC DeletedAt gorm.DeletedAt `json:"deletedAt" gorm:"uniqueIndex:name_deletedAt;default:'0000-00-00';not null"` RawValues json.RawMessage `json:"values" binding:"required" gorm:"column:values"` }
type Environment ¶
type Environment struct { BaseEnvironment RequestOverrides map[string]any `json:"-" gorm:"-"` Chart *chart.Chart `json:"-" gorm:"-"` }
func (*Environment) AddChart ¶
func (env *Environment) AddChart(chart *chart.Chart)
func (*Environment) IsDeleted ¶
func (env *Environment) IsDeleted() bool
func (*Environment) Persistable ¶
func (env *Environment) Persistable()
func (*Environment) UnmarshalJSON ¶
func (env *Environment) UnmarshalJSON(data []byte) error
func (*Environment) Values ¶
func (env *Environment) Values() map[string]any
Click to show internal directories.
Click to hide internal directories.