service

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetProductTemplateServices

func GetProductTemplateServices(productName string, log *zap.SugaredLogger) (*template.Product, 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

func UpdateProductTemplate(name string, args *template.Product, log *zap.SugaredLogger) (err error)

UpdateProductTemplate 更新产品模板

func UpdateProductTmplStatus

func UpdateProductTmplStatus(productName, onboardingStatus string, log *zap.SugaredLogger) (err error)

UpdateProductTmplStatus 更新项目onboarding状态

func UpdateProject

func UpdateProject(name string, args *template.Product, log *zap.SugaredLogger) (err error)

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"`
}

Jump to

Keyboard shortcuts

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