Documentation
¶
Index ¶
- Constants
- type Apis
- type CrsGetValuesApi
- type CrsGetValuesRequest
- type CrsGetValuesResponse
- type CrsListPluginApi
- type CrsListPluginRequest
- type CrsListPluginResponse
- type CrsListPluginReturnObjRecordsResponse
- type CrsListPluginReturnObjResponse
- type CrsListTagApi
- type CrsListTagRequest
- type CrsListTagResponse
- type CrsListTagReturnObjRecordsExtra_attrsResponse
- type CrsListTagReturnObjRecordsResponse
- type CrsListTagReturnObjResponse
- type CrsListTemplateApi
- type CrsListTemplateRequest
- type CrsListTemplateResponse
- type CrsListTemplateReturnObjRecordsResponse
- type CrsListTemplateReturnObjResponse
Constants ¶
View Source
const EndpointName = "crs"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apis ¶
type Apis struct {
CrsGetValuesApi *CrsGetValuesApi
CrsListPluginApi *CrsListPluginApi
CrsListTagApi *CrsListTagApi
CrsListTemplateApi *CrsListTemplateApi
}
type CrsGetValuesApi ¶
type CrsGetValuesApi struct {
// contains filtered or unexported fields
}
func NewCrsGetValuesApi ¶
func NewCrsGetValuesApi(client *core.CtyunClient) *CrsGetValuesApi
func (*CrsGetValuesApi) Do ¶
func (a *CrsGetValuesApi) Do(ctx context.Context, credential core.Credential, req *CrsGetValuesRequest) (*CrsGetValuesResponse, error)
type CrsGetValuesRequest ¶
type CrsGetValuesRequest struct {
ContentType string `json:"Content-Type,omitempty"` /* 类型 */
RegionIdHeader string `json:"regionId,omitempty"` /* 资源池编码(资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026765/11005378" target="_blank">容器镜像服务资源池</a>获取) */
RegionIdParam string `json:"regionId,omitempty"` /* 资源池编码(资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026765/11005378" target="_blank">容器镜像服务资源池</a>获取) */
NamespaceName string `json:"namespaceName,omitempty"` /* 命名空间名称 */
RepositoryName string `json:"repositoryName,omitempty"` /* 插件名称 */
TagName string `json:"tagName,omitempty"` /* 版本名称 */
RawType string `json:"type,omitempty"` /* values的格式,默认为YAML(YAML:YAML格式, JSON:JSON格式) */
}
type CrsGetValuesResponse ¶
type CrsListPluginApi ¶
type CrsListPluginApi struct {
// contains filtered or unexported fields
}
func NewCrsListPluginApi ¶
func NewCrsListPluginApi(client *core.CtyunClient) *CrsListPluginApi
func (*CrsListPluginApi) Do ¶
func (a *CrsListPluginApi) Do(ctx context.Context, credential core.Credential, req *CrsListPluginRequest) (*CrsListPluginResponse, error)
type CrsListPluginRequest ¶
type CrsListPluginRequest struct {
ContentType string `json:"Content-Type,omitempty"` /* 类型 */
RegionIdHeader string `json:"regionId,omitempty"` /* 资源池编码(资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026765/11005378" target="_blank">容器镜像服务资源池</a>获取) */
RegionIdParam string `json:"regionId,omitempty"` /* 资源池编码(资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026765/11005378" target="_blank">容器镜像服务资源池</a>获取) */
NamespaceName string `json:"namespaceName,omitempty"` /* 命名空间名称,默认为plugins(plugins:专有版和托管版集群插件市场, sce:Serverless集群插件市场) */
RepositoryName string `json:"repositoryName,omitempty"` /* 插件名称,支持模糊查询 */
PageNum int32 `json:"pageNum,omitempty"` /* 当前页码(默认为1) */
PageSize int32 `json:"pageSize,omitempty"` /* 每页条数(默认为10) */
OrderBy string `json:"orderBy,omitempty"` /* 排序字段(repositoryName:插件名称,createdTime:创建时间,modifiedTime:修改时间,默认值:modifiedTime) */
Order string `json:"order,omitempty"` /* 排序方式(desc:降序排序, asc:升序排序,默认值:desc) */
}
type CrsListPluginResponse ¶
type CrsListPluginResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 响应码(0为请求成功,其它为失败 ) */
Message string `json:"message,omitempty"` /* 返回信息 */
Error string `json:"error,omitempty"` /* 错误码 */
ReturnObj *CrsListPluginReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CrsListPluginReturnObjRecordsResponse ¶
type CrsListPluginReturnObjRecordsResponse struct {
NamespaceName string `json:"namespaceName,omitempty"` /* 命名空间名称 */
RepositoryName string `json:"repositoryName,omitempty"` /* 插件名称 */
ImageUrl string `json:"imageUrl,omitempty"` /* 公网地址 */
ImageUrlInternal string `json:"imageUrlInternal,omitempty"` /* 内网地址 */
}
type CrsListPluginReturnObjResponse ¶
type CrsListPluginReturnObjResponse struct {
Total int32 `json:"total,omitempty"` /* 总条数 */
Size int32 `json:"size,omitempty"` /* 每页条数 */
Current int32 `json:"current,omitempty"` /* 当前页码 */
Pages int32 `json:"pages,omitempty"` /* 总页数 */
Records []*CrsListPluginReturnObjRecordsResponse `json:"records"` /* 插件市场列表 */
}
type CrsListTagApi ¶
type CrsListTagApi struct {
// contains filtered or unexported fields
}
func NewCrsListTagApi ¶
func NewCrsListTagApi(client *core.CtyunClient) *CrsListTagApi
func (*CrsListTagApi) Do ¶
func (a *CrsListTagApi) Do(ctx context.Context, credential core.Credential, req *CrsListTagRequest) (*CrsListTagResponse, error)
type CrsListTagRequest ¶
type CrsListTagRequest struct {
ContentType string `json:"Content-Type,omitempty"` /* 类型 */
RegionIdHeader string `json:"regionId,omitempty"` /* 资源池编码(资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026765/11005378" target="_blank">容器镜像服务资源池</a>获取) */
RegionIdParam string `json:"regionId,omitempty"` /* 资源池编码(资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026765/11005378" target="_blank">容器镜像服务资源池</a>获取) */
NamespaceName string `json:"namespaceName,omitempty"` /* 命名空间名称 */
RepositoryName string `json:"repositoryName,omitempty"` /* 插件名称 */
TagName string `json:"tagName,omitempty"` /* 版本名称 */
PageNum int32 `json:"pageNum,omitempty"` /* 当前页码(默认为1) */
PageSize int32 `json:"pageSize,omitempty"` /* 每页条数(默认为10) */
OrderBy string `json:"orderBy,omitempty"` /* 排序字段(name:名称,pushTime:推送时间,默认值:name) */
Order string `json:"order,omitempty"` /* 排序方式(desc:降序排序, asc:升序排序,默认值:desc) */
}
type CrsListTagResponse ¶
type CrsListTagResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 响应码(0为请求成功,其它为失败 ) */
Message string `json:"message,omitempty"` /* 返回信息 */
Error string `json:"error,omitempty"` /* 错误码 */
ReturnObj *CrsListTagReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CrsListTagReturnObjRecordsResponse ¶
type CrsListTagReturnObjRecordsResponse struct {
Name string `json:"name,omitempty"` /* 名称 */
Size string `json:"size,omitempty"` /* 大小 */
Description string `json:"description,omitempty"` /* 描述 */
Digest string `json:"digest,omitempty"` /* Hash 值 */
Push_time string `json:"push_time,omitempty"` /* 推送时间 */
Extra_attrs *CrsListTagReturnObjRecordsExtra_attrsResponse `json:"extra_attrs"` /* 额外属性 */
}
type CrsListTagReturnObjResponse ¶
type CrsListTagReturnObjResponse struct {
Total int32 `json:"total,omitempty"` /* 总条数 */
Size int32 `json:"size,omitempty"` /* 每页条数 */
Current int32 `json:"current,omitempty"` /* 当前页码 */
Pages int32 `json:"pages,omitempty"` /* 总页数 */
Records []*CrsListTagReturnObjRecordsResponse `json:"records"` /* 版本列表 */
}
type CrsListTemplateApi ¶
type CrsListTemplateApi struct {
// contains filtered or unexported fields
}
func NewCrsListTemplateApi ¶
func NewCrsListTemplateApi(client *core.CtyunClient) *CrsListTemplateApi
func (*CrsListTemplateApi) Do ¶
func (a *CrsListTemplateApi) Do(ctx context.Context, credential core.Credential, req *CrsListTemplateRequest) (*CrsListTemplateResponse, error)
type CrsListTemplateRequest ¶
type CrsListTemplateRequest struct {
ContentType string `json:"Content-Type,omitempty"` /* 类型 */
RegionIdHeader string `json:"regionId,omitempty"` /* 资源池编码(资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026765/11005378" target="_blank">容器镜像服务资源池</a>获取) */
RegionIdParam string `json:"regionId,omitempty"` /* 资源池编码(资源池ID,您可以查看<a href="https://www.ctyun.cn/document/10026765/11005378" target="_blank">容器镜像服务资源池</a>获取) */
RepositoryName string `json:"repositoryName,omitempty"` /* 插件名称,支持模糊查询 */
PageNum int32 `json:"pageNum,omitempty"` /* 当前页码(默认为1) */
PageSize int32 `json:"pageSize,omitempty"` /* 每页条数(默认为10) */
OrderBy string `json:"orderBy,omitempty"` /* 排序字段(repositoryName:插件名称,createdTime:创建时间,modifiedTime:修改时间,默认值:modifiedTime) */
Order string `json:"order,omitempty"` /* 排序方式(desc:降序排序, asc:升序排序,默认值:desc) */
}
type CrsListTemplateResponse ¶
type CrsListTemplateResponse struct {
StatusCode int32 `json:"statusCode,omitempty"` /* 响应码(0为请求成功,其它为失败 ) */
Message string `json:"message,omitempty"` /* 返回信息 */
Error string `json:"error,omitempty"` /* 错误码 */
ReturnObj *CrsListTemplateReturnObjResponse `json:"returnObj"` /* 返回结果 */
}
type CrsListTemplateReturnObjRecordsResponse ¶
type CrsListTemplateReturnObjRecordsResponse struct {
NamespaceName string `json:"namespaceName,omitempty"` /* 命名空间名称 */
RepositoryName string `json:"repositoryName,omitempty"` /* 插件名称 */
ImageUrl string `json:"imageUrl,omitempty"` /* 公网地址 */
ImageUrlInternal string `json:"imageUrlInternal,omitempty"` /* 内网地址 */
RepositoryId int64 `json:"repositoryId"`
NamespaceId int64 `json:"namespaceId"`
}
type CrsListTemplateReturnObjResponse ¶
type CrsListTemplateReturnObjResponse struct {
Total int32 `json:"total,omitempty"` /* 总条数 */
Size int32 `json:"size,omitempty"` /* 每页条数 */
Current int32 `json:"current,omitempty"` /* 当前页码 */
Pages int32 `json:"pages,omitempty"` /* 总页数 */
Records []*CrsListTemplateReturnObjRecordsResponse `json:"records"` /* 模板市场列表 */
}
Click to show internal directories.
Click to hide internal directories.