Documentation ¶
Index ¶
- func CheckServiceUsed(productName, serviceName string) (bool, error)
- func CreateProductTemplate(args *template.Product, log *zap.SugaredLogger) (err error)
- func DeleteProductTemplate(userName, productName, requestID string, log *zap.SugaredLogger) (err error)
- func DeleteProductsAsync(userName, productName, requestID string, log *zap.SugaredLogger) error
- func DeleteTestModules(productName, requestID string, log *zap.SugaredLogger) error
- func FillProductTemplateVars(productTemplates []*template.Product, log *zap.SugaredLogger) error
- func ForkProduct(userID int, username, requestID string, args *template.ForkProject, ...) error
- func GetProductTemplateServices(productName string, log *zap.SugaredLogger) (*template.Product, error)
- func ListOpenSourceProduct(log *zap.SugaredLogger) ([]*template.Product, error)
- func ListProductTemplate(userID int, superUser bool, log *zap.SugaredLogger) ([]*template.Product, error)
- func UnForkProduct(userID int, username, productName, workflowName, envName, requestID string, ...) error
- func UpdateProductTemplate(name string, args *template.Product, log *zap.SugaredLogger) (err error)
- func UpdateProductTmplStatus(productName, onboardingStatus string, log *zap.SugaredLogger) (err error)
- func UpdateProject(name string, args *template.Product, log *zap.SugaredLogger) (err error)
- type ContainerInfo
- type ProductInfo
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckServiceUsed ¶
func CreateProductTemplate ¶
func CreateProductTemplate(args *template.Product, log *zap.SugaredLogger) (err error)
CreateProductTemplate 创建产品模板
func DeleteProductTemplate ¶
func DeleteProductTemplate(userName, productName, requestID string, log *zap.SugaredLogger) (err error)
DeleteProductTemplate 删除产品模板
func DeleteProductsAsync ¶
func DeleteProductsAsync(userName, productName, requestID string, log *zap.SugaredLogger) error
func DeleteTestModules ¶
func DeleteTestModules(productName, requestID string, log *zap.SugaredLogger) error
func FillProductTemplateVars ¶
func FillProductTemplateVars(productTemplates []*template.Product, log *zap.SugaredLogger) error
func ForkProduct ¶
func ForkProduct(userID int, username, requestID string, args *template.ForkProject, log *zap.SugaredLogger) error
func ListOpenSourceProduct ¶
func ListOpenSourceProduct(log *zap.SugaredLogger) ([]*template.Product, error)
func ListProductTemplate ¶
func ListProductTemplate(userID int, superUser bool, log *zap.SugaredLogger) ([]*template.Product, error)
ListProductTemplate 列出产品模板分页
func UnForkProduct ¶
func UnForkProduct(userID int, username, productName, workflowName, envName, requestID string, log *zap.SugaredLogger) error
func UpdateProductTemplate ¶
UpdateProductTemplate 更新产品模板
func UpdateProductTmplStatus ¶
func UpdateProductTmplStatus(productName, onboardingStatus string, log *zap.SugaredLogger) (err error)
UpdateProductTmplStatus 更新项目onboarding状态
func UpdateProject ¶
UpdateProject 更新项目
Types ¶
type ContainerInfo ¶
type ContainerInfo struct { Value string `bson:"value" json:"value"` Label string `bson:"label" json:"label"` }
ContainerInfo ...
type ProductInfo ¶
type ProductInfo struct { Value string `bson:"value" json:"value"` Label string `bson:"label" json:"label"` ServiceInfo []*ServiceInfo `bson:"services" json:"services"` }
func ListTemplatesHierachy ¶
func ListTemplatesHierachy(userName string, userID int, superUser bool, log *zap.SugaredLogger) ([]*ProductInfo, error)
type ServiceInfo ¶
type ServiceInfo struct { Value string `bson:"value" json:"value"` Label string `bson:"label" json:"label"` ContainerInfo []*ContainerInfo `bson:"containers" json:"containers"` }
Click to show internal directories.
Click to hide internal directories.