Documentation ¶
Index ¶
- func CreateProductTemplate(args *template.Product, log *zap.SugaredLogger) (err error)
- func CreateProjectOpenAPI(userID, username string, args *OpenAPICreateProductReq, ...) error
- func CreateVariableSet(args *CreateVariableSetRequest) error
- func DeleteCollabrationMode(productName string, userName string, log *zap.SugaredLogger) error
- func DeleteLabels(productName string, log *zap.SugaredLogger) error
- func DeletePolicy(productName string, log *zap.SugaredLogger) error
- func DeleteProductTemplate(userName, productName, requestID string, isDelete bool, log *zap.SugaredLogger) (err error)
- func DeleteProductsAsync(userName, productName, requestID string, isDelete bool, log *zap.SugaredLogger) error
- func DeleteTestModules(productName, requestID string, log *zap.SugaredLogger) error
- func DeleteVariableSet(id, projectName string, log *zap.SugaredLogger) error
- func FillProductTemplateVars(productTemplates []*template.Product, log *zap.SugaredLogger) error
- func ForkProduct(username, uid, requestID string, args *template.ForkProject, ...) error
- func GetProductTemplateServices(productName string, envType types.EnvType, isBaseEnv bool, baseEnvName string, ...) (*template.Product, error)
- func GetVariableSet(idStr string, log *zap.SugaredLogger) (*commonmodels.VariableSet, error)
- func ListOpenSourceProduct(log *zap.SugaredLogger) ([]*template.Product, error)
- func ListProjects(opts *ProjectListOptions, logger *zap.SugaredLogger) (interface{}, error)
- func TransferHostProject(user, projectName string, log *zap.SugaredLogger) (err error)
- func UnForkProduct(userID string, username, productName, workflowName, envName, requestID string, ...) error
- func UpdateCustomMatchRules(productName, userName, requestID string, matchRules []*ImageParseData) 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)
- func UpdateServiceOrchestration(name string, services [][]string, updateBy string, log *zap.SugaredLogger) (err error)
- func UpdateVariableSet(args *CreateVariableSetRequest, requestID string, log *zap.SugaredLogger) error
- type ContainerInfo
- type CreateVariableSetRequest
- type CustomParseDataArgs
- type ImageParseData
- type OpenAPICreateProductReq
- type ProductInfo
- type ProjectBriefRepresentation
- type ProjectDetailedRepresentation
- type ProjectListOptions
- type ProjectMinimalRepresentation
- type QueryVerbosity
- type ServiceInfo
- type VariableSetFindOption
- type VariableSetListResp
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 CreateProjectOpenAPI ¶ added in v1.9.9
func CreateProjectOpenAPI(userID, username string, args *OpenAPICreateProductReq, logger *zap.SugaredLogger) error
func CreateVariableSet ¶ added in v1.9.9
func CreateVariableSet(args *CreateVariableSetRequest) error
func DeleteCollabrationMode ¶ added in v1.9.9
func DeleteCollabrationMode(productName string, userName string, log *zap.SugaredLogger) error
func DeleteLabels ¶ added in v1.9.9
func DeleteLabels(productName string, log *zap.SugaredLogger) error
func DeletePolicy ¶ added in v1.10.0
func DeletePolicy(productName string, log *zap.SugaredLogger) error
func DeleteProductTemplate ¶
func DeleteProductTemplate(userName, productName, requestID string, isDelete bool, log *zap.SugaredLogger) (err error)
DeleteProductTemplate 删除产品模板
func DeleteProductsAsync ¶
func DeleteProductsAsync(userName, productName, requestID string, isDelete bool, log *zap.SugaredLogger) error
func DeleteTestModules ¶
func DeleteTestModules(productName, requestID string, log *zap.SugaredLogger) error
func DeleteVariableSet ¶ added in v1.9.9
func DeleteVariableSet(id, projectName string, log *zap.SugaredLogger) error
func FillProductTemplateVars ¶
func FillProductTemplateVars(productTemplates []*template.Product, log *zap.SugaredLogger) error
func ForkProduct ¶
func ForkProduct(username, uid, requestID string, args *template.ForkProject, log *zap.SugaredLogger) error
ForkProduct Deprecated
func GetVariableSet ¶ added in v1.9.9
func GetVariableSet(idStr string, log *zap.SugaredLogger) (*commonmodels.VariableSet, error)
func ListOpenSourceProduct ¶
func ListOpenSourceProduct(log *zap.SugaredLogger) ([]*template.Product, error)
func ListProjects ¶ added in v1.5.0
func ListProjects(opts *ProjectListOptions, logger *zap.SugaredLogger) (interface{}, error)
func TransferHostProject ¶ added in v1.9.9
func TransferHostProject(user, projectName string, log *zap.SugaredLogger) (err error)
func UnForkProduct ¶
func UnForkProduct(userID string, username, productName, workflowName, envName, requestID string, log *zap.SugaredLogger) error
func UpdateCustomMatchRules ¶ added in v1.5.0
func UpdateCustomMatchRules(productName, userName, requestID string, matchRules []*ImageParseData) error
func UpdateProductTemplate ¶
UpdateProductTemplate 更新产品模板
func UpdateProductTmplStatus ¶
func UpdateProductTmplStatus(productName, onboardingStatus string, log *zap.SugaredLogger) (err error)
UpdateProductTmplStatus 更新项目onboarding状态
func UpdateProject ¶
UpdateProject 更新项目
func UpdateServiceOrchestration ¶ added in v1.6.0
func UpdateVariableSet ¶ added in v1.9.9
func UpdateVariableSet(args *CreateVariableSetRequest, requestID string, log *zap.SugaredLogger) error
Types ¶
type ContainerInfo ¶
type ContainerInfo struct { Value string `bson:"value" json:"value"` Label string `bson:"label" json:"label"` }
ContainerInfo ...
type CreateVariableSetRequest ¶ added in v1.9.9
type CustomParseDataArgs ¶ added in v1.5.0
type CustomParseDataArgs struct {
Rules []*ImageParseData `json:"rules"`
}
type ImageParseData ¶ added in v1.5.0
type ImageParseData struct { Repo string `json:"repo,omitempty"` Image string `json:"image,omitempty"` Tag string `json:"tag,omitempty"` InUse bool `json:"inUse,omitempty"` PresetId int `json:"presetId,omitempty"` }
func GetCustomMatchRules ¶ added in v1.5.0
func GetCustomMatchRules(productName string, log *zap.SugaredLogger) ([]*ImageParseData, error)
type OpenAPICreateProductReq ¶ added in v1.9.9
type OpenAPICreateProductReq struct { ProjectName string `json:"project_name"` ProjectKey string `json:"project_key"` IsPublic bool `json:"is_public"` Description string `json:"description"` ProjectType config.ProjectType `json:"project_type"` }
func (OpenAPICreateProductReq) Validate ¶ added in v1.9.9
func (req OpenAPICreateProductReq) Validate() error
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, log *zap.SugaredLogger) ([]*ProductInfo, error)
type ProjectBriefRepresentation ¶ added in v1.5.0
type ProjectBriefRepresentation struct { *ProjectMinimalRepresentation Envs []string `json:"envs"` }
type ProjectDetailedRepresentation ¶ added in v1.5.0
type ProjectListOptions ¶ added in v1.5.0
type ProjectListOptions struct { IgnoreNoEnvs bool IgnoreNoVersions bool Verbosity QueryVerbosity Names []string }
type ProjectMinimalRepresentation ¶ added in v1.5.0
type ProjectMinimalRepresentation struct {
Name string `json:"name"`
}
type QueryVerbosity ¶ added in v1.5.0
type QueryVerbosity string
const ( VerbosityDetailed QueryVerbosity = "detailed" // all information VerbosityBrief QueryVerbosity = "brief" // short information or a summary VerbosityMinimal QueryVerbosity = "minimal" // very little information, usually only a resource identifier )
type ServiceInfo ¶
type ServiceInfo struct { Value string `bson:"value" json:"value"` Label string `bson:"label" json:"label"` ContainerInfo []*ContainerInfo `bson:"containers" json:"containers"` }
type VariableSetFindOption ¶ added in v1.9.9
type VariableSetListResp ¶ added in v1.9.9
type VariableSetListResp struct { VariableSetList []*commonmodels.VariableSet `json:"variable_set_list"` Total int64 `json:"total"` }
func ListVariableSets ¶ added in v1.9.9
func ListVariableSets(option *VariableSetFindOption, log *zap.SugaredLogger) (*VariableSetListResp, error)
Click to show internal directories.
Click to hide internal directories.