crs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

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
}

func NewApis

func NewApis(endpointUrl string, client *core.CtyunClient) *Apis

type CrsGetValuesApi

type CrsGetValuesApi struct {
	// contains filtered or unexported fields
}

func NewCrsGetValuesApi

func NewCrsGetValuesApi(client *core.CtyunClient) *CrsGetValuesApi

func (*CrsGetValuesApi) Do

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 CrsGetValuesResponse struct {
	StatusCode int32  `json:"statusCode,omitempty"` /*  响应码(0为请求成功,其它为失败 )  */
	Message    string `json:"message,omitempty"`    /*  返回信息  */
	Error      string `json:"error,omitempty"`      /*  错误码  */
	ReturnObj  string `json:"returnObj,omitempty"`  /*  values详情  */
}

type CrsListPluginApi

type CrsListPluginApi struct {
	// contains filtered or unexported fields
}

func NewCrsListPluginApi

func NewCrsListPluginApi(client *core.CtyunClient) *CrsListPluginApi

func (*CrsListPluginApi) Do

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

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 CrsListTagReturnObjRecordsExtra_attrsResponse

type CrsListTagReturnObjRecordsExtra_attrsResponse struct {
	ApiVersion  string `json:"apiVersion,omitempty"`  /*  API 版本  */
	AppVersion  string `json:"appVersion,omitempty"`  /*  APP 版本  */
	KubeVersion string `json:"kubeVersion,omitempty"` /*  兼容的 Kubernetes 版本  */
}

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

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"`           /*  模板市场列表  */
}

Jump to

Keyboard shortcuts

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