Documentation
¶
Index ¶
- type CodeHost
- type Container
- type EmailHost
- type EnvConfig
- type ImagePathSpec
- type K8SCluster
- type Organization
- type Product
- type ProductAuth
- type ProductAuthType
- type ProductPermission
- type ProductService
- type Project
- type ProjectClusterRelation
- type RegistryNamespace
- type RenderInfo
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeHost ¶
type Container ¶ added in v1.8.0
type Container struct {
Name string `bson:"name" json:"name"`
Image string `bson:"image" json:"image"`
ImagePath *ImagePathSpec `bson:"image_path,omitempty" json:"imagePath,omitempty"`
}
type EmailHost ¶ added in v1.8.0
type EmailHost struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
Name string `bson:"name" json:"name"`
Port int `bson:"port" json:"port"`
Username string `bson:"username" json:"username"`
Password string `bson:"password" json:"password"`
IsTLS interface{} `bson:"is_tls" json:"isTLS"`
CreatedAt int64 `bson:"created_at" json:"created_at"`
DeletedAt int64 `bson:"deleted_at" json:"deleted_at"`
UpdatedAt int64 `bson:"updated_at" json:"updated_at"`
}
type ImagePathSpec ¶ added in v1.8.0
type ImagePathSpec struct {
Repo string `bson:"repo,omitempty" json:"repo,omitempty"`
Image string `bson:"image,omitempty" json:"image,omitempty"`
Tag string `bson:"tag,omitempty" json:"tag,omitempty"`
}
ImagePathSpec paths in yaml used to parse image
type K8SCluster ¶ added in v1.8.0
type K8SCluster struct {
ID primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
Name string `json:"name" bson:"name"`
Status setting.K8SClusterStatus `json:"status" bson:"status"`
Local bool `json:"local" bson:"local"`
}
func (K8SCluster) TableName ¶ added in v1.8.0
func (K8SCluster) TableName() string
type Organization ¶
type Organization struct {
ID int `bson:"id" json:"id"`
Token string `bson:"token,omitempty" json:"token,omitempty"`
}
func (Organization) TableName ¶
func (Organization) TableName() string
type Product ¶ added in v1.8.0
type Product struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
ProductName string `bson:"product_name" json:"product_name"`
CreateTime int64 `bson:"create_time" json:"create_time"`
UpdateTime int64 `bson:"update_time" json:"update_time"`
Namespace string `bson:"namespace,omitempty" json:"namespace,omitempty"`
Status string `bson:"status" json:"status"`
Revision int64 `bson:"revision" json:"revision"`
Enabled bool `bson:"enabled" json:"enabled"`
EnvName string `bson:"env_name" json:"env_name"`
UpdateBy string `bson:"update_by" json:"update_by"`
Auth []*ProductAuth `bson:"auth" json:"auth"`
Visibility string `bson:"-" json:"visibility"`
Services [][]*ProductService `bson:"services" json:"services"`
Render *RenderInfo `bson:"render" json:"render"`
Error string `bson:"error" json:"error"`
Vars []*templatemodels.RenderKV `bson:"vars,omitempty" json:"vars,omitempty"`
ChartInfos []*templatemodels.RenderChart `bson:"-" json:"chart_infos,omitempty"`
IsPublic bool `bson:"is_public" json:"isPublic"`
RoleIDs []int64 `bson:"role_ids" json:"roleIds"`
ClusterID string `bson:"cluster_id,omitempty" json:"cluster_id,omitempty"`
RecycleDay int `bson:"recycle_day" json:"recycle_day"`
Source string `bson:"source" json:"source"`
IsOpenSource bool `bson:"is_opensource" json:"is_opensource"`
RegistryID string `bson:"registry_id" json:"registry_id"`
IsForkedProduct bool `bson:"-" json:"-"`
}
Vars do not save, only input parameters
func (*Product) GetGroupServiceNames ¶ added in v1.8.0
func (*Product) GetNamespace ¶ added in v1.8.0
func (*Product) GetServiceMap ¶ added in v1.8.0
func (p *Product) GetServiceMap() map[string]*ProductService
type ProductAuth ¶ added in v1.8.0
type ProductAuth struct {
Type ProductAuthType `bson:"type" json:"type"`
Name string `bson:"name" json:"name"`
Permissions []ProductPermission `bson:"permissions" json:"permissions"`
}
type ProductAuthType ¶ added in v1.8.0
type ProductAuthType string
type ProductPermission ¶ added in v1.8.0
type ProductPermission string
type ProductService ¶ added in v1.8.0
type ProductService struct {
ServiceName string `bson:"service_name" json:"service_name"`
ProductName string `bson:"product_name" json:"product_name"`
Type string `bson:"type" json:"type"`
Revision int64 `bson:"revision" json:"revision"`
Containers []*Container `bson:"containers" json:"containers,omitempty"`
Render *RenderInfo `bson:"render,omitempty" json:"render,omitempty"` // Record the render information of each service to facilitate the update of a single service
EnvConfigs []*EnvConfig `bson:"-" json:"env_configs,omitempty"`
}
type Project ¶ added in v1.8.0
type Project struct {
ProductName string `bson:"product_name" json:"product_name"`
}
type ProjectClusterRelation ¶ added in v1.8.0
type ProjectClusterRelation struct {
ID primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
ProjectName string `json:"project_name" bson:"project_name"`
ClusterID string `json:"cluster_id" bson:"cluster_id"`
CreatedAt int64 `json:"createdAt" bson:"createdAt"`
CreatedBy string `json:"createdBy" bson:"createdBy"`
}
func (ProjectClusterRelation) TableName ¶ added in v1.8.0
func (ProjectClusterRelation) TableName() string
type RegistryNamespace ¶ added in v1.8.0
type RegistryNamespace struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
RegAddr string `bson:"reg_addr" json:"reg_addr"`
RegType string `bson:"reg_type" json:"reg_type"`
RegProvider string `bson:"reg_provider" json:"reg_provider"`
IsDefault bool `bson:"is_default" json:"is_default"`
Namespace string `bson:"namespace" json:"namespace"`
AccessKey string `bson:"access_key" json:"access_key"`
SecretKey string `bson:"secret_key" json:"secret_key"`
Region string `bson:"region,omitempty" json:"region,omitempty"`
UpdateTime int64 `bson:"update_time" json:"update_time"`
UpdateBy string `bson:"update_by" json:"update_by"`
}
func (RegistryNamespace) TableName ¶ added in v1.8.0
func (RegistryNamespace) TableName() string
func (*RegistryNamespace) Validate ¶ added in v1.8.0
func (ns *RegistryNamespace) Validate() error
type RenderInfo ¶ added in v1.8.0
type ServiceConfig ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.