models

package
v1.52.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 0 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeTypeDefine

type CodeTypeDefine struct {

	/*  (Optional) */
	Label string `json:"label"`

	/*  (Optional) */
	Value string `json:"value"`
}

type CompilerTypeDefine

type CompilerTypeDefine struct {

	/*  (Optional) */
	Label string `json:"label"`

	/*  (Optional) */
	Value string `json:"value"`
}

type CompilerTypes

type CompilerTypes struct {

	/* 任务uuid (Optional) */
	Id string `json:"id"`

	/* 构建类型 (Optional) */
	CompilerType string `json:"compilerType"`
}

type ComputeTypeDefine

type ComputeTypeDefine struct {

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	BuildResourceMem int `json:"buildResourceMem"`

	/*  (Optional) */
	BuildResourceCpu int `json:"buildResourceCpu"`
}

type Config

type Config struct {

	/* 运行镜像 (Optional) */
	Image []ImageDefine `json:"image"`

	/* 源提供商选项 (Optional) */
	CodeType []CodeTypeDefine `json:"codeType"`

	/* 构建存放 (Optional) */
	Oss []OssDefine `json:"oss"`

	/* 超时时间 (Optional) */
	Timeout []TimeoutDefine `json:"timeout"`

	/* 计算类型 (Optional) */
	ComputeType []ComputeTypeDefine `json:"computeType"`

	/* 邮件类型 (Optional) */
	MailType []MailTypeDefine `json:"mailType"`

	/* 编译类型 (Optional) */
	CompilerType []CompilerTypeDefine `json:"compilerType"`
}

type CreateHookParams

type CreateHookParams struct {

	/* 回调的URL (Optional) */
	Url string `json:"url"`

	/* 回调的密钥 (Optional) */
	Token string `json:"token"`

	/* 否是支持ssl (Optional) */
	Ssl bool `json:"ssl"`

	/* 代码类型 (Optional) */
	Type string `json:"type"`
}

type ImageDefine

type ImageDefine struct {

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Tags []TagDefine `json:"tags"`
}

type Job

type Job struct {

	/* 构建任务uuid (Optional) */
	Uuid string `json:"uuid"`

	/* 创建时间戳 (Optional) */
	CreatedAt int `json:"createdAt"`

	/* 最后一次更新时间 (Optional) */
	UpdatedAt int `json:"updatedAt"`

	/* 构建名称 (Optional) */
	Name string `json:"name"`

	/* 代码存储类型,目前只支持github (Optional) */
	CodeType string `json:"codeType"`

	/* 代码clone路径 (Optional) */
	CodeRepoUrl string `json:"codeRepoUrl"`

	/* 代码名称的显示Label (Optional) */
	CodeRepoUrlLabel string `json:"codeRepoUrlLabel"`

	/* 分支 (Optional) */
	CodeRepoBranch string `json:"codeRepoBranch"`

	/* 创建者 (Optional) */
	CreateUserName string `json:"createUserName"`

	/* 是否是私有仓库 (Optional) */
	CodeRepoPrivate bool `json:"codeRepoPrivate"`

	/* 最后一次更细者 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 用户云存储路径,如果为空,使用公用的云存储 (Optional) */
	OssPath string `json:"ossPath"`

	/* 用户云存储主机,实际为用户云存储所在地域 (Optional) */
	OssHost string `json:"ossHost"`

	/* 用户云存储bucket,如果为空,使用公用的云存储 (Optional) */
	OssBucket string `json:"ossBucket"`

	/* 编译镜像地址 (Optional) */
	BuildImage string `json:"buildImage"`

	/* 编译镜像的显示Label (Optional) */
	BuildImageLabel string `json:"buildImageLabel"`

	/* 是否在页面配置构建方式,这项为true,则buildSetConfig需要有内容,如果这项为false,即使buildSetConfig有内容,也不生效 (Optional) */
	IsUserBuildSetConfig bool `json:"isUserBuildSetConfig"`

	/* 见isUserBuildSetConfig的说明 (Optional) */
	BuildSetConfig string `json:"buildSetConfig"`

	/* 超时时间,单位秒 (Optional) */
	BuildTimeOut int `json:"buildTimeOut"`

	/* cpu分配核数 (Optional) */
	BuildResourceCpu int `json:"buildResourceCpu"`

	/* 内存分配大小,单位MB (Optional) */
	BuildResourceMem int `json:"buildResourceMem"`

	/* 通知邮件 (Optional) */
	NoticeMail string `json:"noticeMail"`

	/* 通知频率, MAIL_FAILED失败时通知,MAIL_EVERY每次构建就通知 (Optional) */
	NoticeType string `json:"noticeType"`

	/* 构建类型 (Optional) */
	CompilerType string `json:"compilerType"`

	/* 镜像注册表名 (Optional) */
	DockerRegistry string `json:"dockerRegistry"`

	/* 镜像仓库名 (Optional) */
	DockerRepository string `json:"dockerRepository"`

	/* 注册表的URI (Optional) */
	DockerRegistryUri string `json:"dockerRegistryUri"`
}

type JobRequest

type JobRequest struct {

	/* 项目名称  */
	Name string `json:"name"`

	/* 源提供商,代码存储类型代码存储类型, 目前只支持github  */
	CodeType string `json:"codeType"`

	/* 仓库地址,代码clone路径  */
	CodeRepoUrl string `json:"codeRepoUrl"`

	/* 代码分支  */
	CodeRepoBranch string `json:"codeRepoBranch"`

	/* 获取用户OSS库用,用户云存储路径用户云存储路径,如果为空,使用公用的云存储 (Optional) */
	OssPath *string `json:"ossPath"`

	/* 上传区域,用户云存储主机,实际为用户云存储所在地域  */
	OssHost string `json:"ossHost"`

	/* 获取用户OSS库用,用户云存储bucket,如果为空,使用公用的云存储 (Optional) */
	OssBucket *string `json:"ossBucket"`

	/* 选择类型 和 运行版本 共同拼出此项,编译镜像地址  */
	BuildImage string `json:"buildImage"`

	/* 构建规范,选择在源代码供目录中使用build.yml则为false,选择插入构建命令则为true,这项为true,则buildSetConfig需要有内容,如果这项为false,即使buildSetConfig有内容,也不生效 (Optional) */
	IsUserBuildSetConfig *bool `json:"isUserBuildSetConfig"`

	/* 插入构建命令,isUserBuildSetConfig选择true时,这项让用户填写内容,内容从接口/regions/{regionId}/jobs/default/buildSet 获取 (Optional) */
	BuildSetConfig *string `json:"buildSetConfig"`

	/* 超时时间,单位秒 (Optional) */
	BuildTimeOut *int `json:"buildTimeOut"`

	/* 计算类型中 cpu分配核数 (Optional) */
	BuildResourceCpu *int `json:"buildResourceCpu"`

	/* 计算类型中 内存分配大小,单位MB (Optional) */
	BuildResourceMem *int `json:"buildResourceMem"`

	/* 通知邮件 (Optional) */
	NoticeMail *string `json:"noticeMail"`

	/* 通知频率, MAIL_FAILED失败时通知,MAIL_EVERY每次构建就通知 (Optional) */
	NoticeType *string `json:"noticeType"`

	/* 构建类型 (Optional) */
	CompilerType *string `json:"compilerType"`

	/* 镜像注册表名 (Optional) */
	DockerRegistry *string `json:"dockerRegistry"`

	/* 镜像仓库名 (Optional) */
	DockerRepository *string `json:"dockerRepository"`

	/* 注册表的URI (Optional) */
	DockerRegistryUri *string `json:"dockerRegistryUri"`
}

type MailTypeDefine

type MailTypeDefine struct {

	/*  (Optional) */
	Label string `json:"label"`

	/*  (Optional) */
	Value string `json:"value"`
}

type OssDefine

type OssDefine struct {

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	OssHost string `json:"ossHost"`
}

type RegionTypeDefine

type RegionTypeDefine struct {

	/*  (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	Name string `json:"name"`
}

type SimpleBuild

type SimpleBuild struct {

	/* 构建任务的uuid (Optional) */
	Uuid string `json:"uuid"`

	/* 构建任务所属的job名 (Optional) */
	JobName string `json:"jobName"`

	/* 构建任务创建时间 (Optional) */
	CreatedAt int `json:"createdAt"`

	/* 构建类型 (Optional) */
	CompilerType string `json:"compilerType"`

	/* 构建任务的运行状态 (Optional) */
	Status string `json:"status"`

	/* 构建任务运行时间 (Optional) */
	Duration int `json:"duration"`
}

type SimpleJob

type SimpleJob struct {

	/* 构建任务uuid (Optional) */
	Uuid string `json:"uuid"`

	/* 构建名称 (Optional) */
	Name string `json:"name"`

	/* 构建开始时间 (Optional) */
	BuildStartAt int `json:"buildStartAt"`

	/* 构建类型 (Optional) */
	CompilerType string `json:"compilerType"`

	/* 构建状态 (Optional) */
	BuildStatus string `json:"buildStatus"`
}

type TagDefine

type TagDefine struct {

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	BuildImage string `json:"buildImage"`
}

type TimeoutDefine

type TimeoutDefine struct {

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Timeout int `json:"timeout"`
}

Jump to

Keyboard shortcuts

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