Documentation ¶
Index ¶
- Constants
- type Option
- type Release
- func (r *Release) Convert(releaseRequest *apistructs.ReleaseCreateRequest) (*dbclient.Release, error)
- func (r *Release) Create(req *apistructs.ReleaseCreateRequest) (string, error)
- func (r *Release) Delete(orgID int64, releaseID string) error
- func (r *Release) Get(orgID int64, releaseID string) (*apistructs.ReleaseGetResponseData, error)
- func (r *Release) GetDiceYAML(orgID int64, releaseID string) (string, error)
- func (r *Release) GetImages(req *apistructs.ReleaseCreateRequest) []*imagedb.Image
- func (r *Release) GetIosPlist(orgID int64, releaseID string) (string, error)
- func (r *Release) GetLatestReleasesByProjectAndVersion(projectID int64, version string) (*[]dbclient.Release, error)
- func (r *Release) GetReleaseNamesByApp(orgID, appID int64) ([]string, error)
- func (r *Release) List(orgID int64, req *apistructs.ReleaseListRequest) (*apistructs.ReleaseListResponseData, error)
- func (r *Release) RemoveDeprecatedsReleases(now time.Time) error
- func (r *Release) Update(orgID int64, releaseID string, req *apistructs.ReleaseUpdateRequestData) error
- func (r *Release) UpdateReference(orgID int64, releaseID string, req *apistructs.ReleaseReferenceUpdateRequest) error
Constants ¶
View Source
const (
// AliYunRegistry 阿里云registry前缀
AliYunRegistry = "registry.cn-hangzhou.aliyuncs.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Release)
Option 定义 Release 对象的配置选项
func WithImageDBClient ¶ added in v1.1.0
func WithImageDBClient(db *imagedb.ImageConfigDB) Option
WithDBClient 配置 db client
type Release ¶
type Release struct {
// contains filtered or unexported fields
}
Release Release操作封装
func (*Release) Convert ¶
func (r *Release) Convert(releaseRequest *apistructs.ReleaseCreateRequest) (*dbclient.Release, error)
Convert 从ReleaseRequest中提取Release元信息
func (*Release) Create ¶
func (r *Release) Create(req *apistructs.ReleaseCreateRequest) (string, error)
Create 创建 Release
func (*Release) Get ¶
func (r *Release) Get(orgID int64, releaseID string) (*apistructs.ReleaseGetResponseData, error)
Get 获取 Release 详情
func (*Release) GetDiceYAML ¶
GetDiceYAML 获取dice.yml内容
func (*Release) GetImages ¶
func (r *Release) GetImages(req *apistructs.ReleaseCreateRequest) []*imagedb.Image
GetImages 从ReleaseRequest中提取Image信息
func (*Release) GetIosPlist ¶
GetIosPlist 读取ios类型release中下载地址plist
func (*Release) GetLatestReleasesByProjectAndVersion ¶
func (r *Release) GetLatestReleasesByProjectAndVersion(projectID int64, version string) (*[]dbclient.Release, error)
GetLatestReleasesByProjectAndVersion 获取给定项目 & version情况下各应用最新 Release
func (*Release) GetReleaseNamesByApp ¶
GetReleaseNamesByApp 根据 appID 获取 releaseName 列表
func (*Release) List ¶
func (r *Release) List(orgID int64, req *apistructs.ReleaseListRequest) (*apistructs.ReleaseListResponseData, error)
List 根据搜索条件进行搜索
func (*Release) RemoveDeprecatedsReleases ¶
RemoveDeprecatedsReleases 回收过期release具体逻辑
func (*Release) Update ¶
func (r *Release) Update(orgID int64, releaseID string, req *apistructs.ReleaseUpdateRequestData) error
Update 更新 Release
func (*Release) UpdateReference ¶
func (r *Release) UpdateReference(orgID int64, releaseID string, req *apistructs.ReleaseReferenceUpdateRequest) error
UpdateReference 更新 Release 引用
Click to show internal directories.
Click to hide internal directories.