model

package
v0.0.32-rc Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInfo

type AuthInfo struct {
	// Base64加密的认证信息
	Auth string `json:"auth"`
}

func (AuthInfo) String

func (o AuthInfo) String() string

type Certification

type Certification struct {
	Cert *AuthInfo `json:"cert"`
}

func (Certification) String

func (o Certification) String() string

type CreateImageSyncRepoRequest

type CreateImageSyncRepoRequest struct {
	ContentType CreateImageSyncRepoRequestContentType `json:"Content-Type"`
	Namespace   string                                `json:"namespace"`
	Repository  string                                `json:"repository"`
	Body        *CreateImageSyncRepoRequestBody       `json:"body,omitempty"`
}

Request Object

func (CreateImageSyncRepoRequest) String

type CreateImageSyncRepoRequestBody

type CreateImageSyncRepoRequestBody struct {
	// 目标region ID。
	RemoteRegionId string `json:"remoteRegionId"`
	// 目标组织
	RemoteNamespace string `json:"remoteNamespace"`
	// 自动同步,默认为false
	SyncAuto *bool `json:"syncAuto,omitempty"`
	// 是否覆盖,默认为false
	Override *bool `json:"override,omitempty"`
}

func (CreateImageSyncRepoRequestBody) String

type CreateImageSyncRepoRequestContentType

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

func (CreateImageSyncRepoRequestContentType) MarshalJSON

func (c CreateImageSyncRepoRequestContentType) MarshalJSON() ([]byte, error)

func (*CreateImageSyncRepoRequestContentType) UnmarshalJSON

func (c *CreateImageSyncRepoRequestContentType) UnmarshalJSON(b []byte) error

type CreateImageSyncRepoRequestContentTypeEnum

type CreateImageSyncRepoRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 CreateImageSyncRepoRequestContentType
	APPLICATION_JSON             CreateImageSyncRepoRequestContentType
}

func GetCreateImageSyncRepoRequestContentTypeEnum

func GetCreateImageSyncRepoRequestContentTypeEnum() CreateImageSyncRepoRequestContentTypeEnum

type CreateImageSyncRepoResponse

type CreateImageSyncRepoResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateImageSyncRepoResponse) String

type CreateNamespaceAuthRequest

type CreateNamespaceAuthRequest struct {
	ContentType CreateNamespaceAuthRequestContentType `json:"Content-Type"`
	Namespace   string                                `json:"namespace"`
	Body        *[]UserAuth                           `json:"body,omitempty"`
}

Request Object

func (CreateNamespaceAuthRequest) String

type CreateNamespaceAuthRequestContentType

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

func (CreateNamespaceAuthRequestContentType) MarshalJSON

func (c CreateNamespaceAuthRequestContentType) MarshalJSON() ([]byte, error)

func (*CreateNamespaceAuthRequestContentType) UnmarshalJSON

func (c *CreateNamespaceAuthRequestContentType) UnmarshalJSON(b []byte) error

type CreateNamespaceAuthRequestContentTypeEnum

type CreateNamespaceAuthRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 CreateNamespaceAuthRequestContentType
	APPLICATION_JSON             CreateNamespaceAuthRequestContentType
}

func GetCreateNamespaceAuthRequestContentTypeEnum

func GetCreateNamespaceAuthRequestContentTypeEnum() CreateNamespaceAuthRequestContentTypeEnum

type CreateNamespaceAuthResponse

type CreateNamespaceAuthResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateNamespaceAuthResponse) String

type CreateNamespaceRequest

type CreateNamespaceRequest struct {
	ContentType CreateNamespaceRequestContentType `json:"Content-Type"`
	Body        *CreateNamespaceRequestBody       `json:"body,omitempty"`
}

Request Object

func (CreateNamespaceRequest) String

func (o CreateNamespaceRequest) String() string

type CreateNamespaceRequestBody

type CreateNamespaceRequestBody struct {
	// 组织名称
	Namespace string `json:"namespace"`
}

func (CreateNamespaceRequestBody) String

type CreateNamespaceRequestContentType

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

func (CreateNamespaceRequestContentType) MarshalJSON

func (c CreateNamespaceRequestContentType) MarshalJSON() ([]byte, error)

func (*CreateNamespaceRequestContentType) UnmarshalJSON

func (c *CreateNamespaceRequestContentType) UnmarshalJSON(b []byte) error

type CreateNamespaceRequestContentTypeEnum

type CreateNamespaceRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 CreateNamespaceRequestContentType
	APPLICATION_JSON             CreateNamespaceRequestContentType
}

func GetCreateNamespaceRequestContentTypeEnum

func GetCreateNamespaceRequestContentTypeEnum() CreateNamespaceRequestContentTypeEnum

type CreateNamespaceResponse

type CreateNamespaceResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateNamespaceResponse) String

func (o CreateNamespaceResponse) String() string

type CreateRepoDomainsRequest

type CreateRepoDomainsRequest struct {
	ContentType CreateRepoDomainsRequestContentType `json:"Content-Type"`
	Namespace   string                              `json:"namespace"`
	Repository  string                              `json:"repository"`
	Body        *CreateRepoDomainsRequestBody       `json:"body,omitempty"`
}

Request Object

func (CreateRepoDomainsRequest) String

func (o CreateRepoDomainsRequest) String() string

type CreateRepoDomainsRequestBody

type CreateRepoDomainsRequestBody struct {
	// 共享租户名称
	AccessDomain string `json:"access_domain"`
	// 当前只支持read权限
	Permit string `json:"permit"`
	// 截止时间,UTC时间格式。永久有效为forever
	Deadline string `json:"deadline"`
	// 描述
	Description *string `json:"description,omitempty"`
}

func (CreateRepoDomainsRequestBody) String

type CreateRepoDomainsRequestContentType

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

func (CreateRepoDomainsRequestContentType) MarshalJSON

func (c CreateRepoDomainsRequestContentType) MarshalJSON() ([]byte, error)

func (*CreateRepoDomainsRequestContentType) UnmarshalJSON

func (c *CreateRepoDomainsRequestContentType) UnmarshalJSON(b []byte) error

type CreateRepoDomainsRequestContentTypeEnum

type CreateRepoDomainsRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 CreateRepoDomainsRequestContentType
	APPLICATION_JSON             CreateRepoDomainsRequestContentType
}

func GetCreateRepoDomainsRequestContentTypeEnum

func GetCreateRepoDomainsRequestContentTypeEnum() CreateRepoDomainsRequestContentTypeEnum

type CreateRepoDomainsResponse

type CreateRepoDomainsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateRepoDomainsResponse) String

func (o CreateRepoDomainsResponse) String() string

type CreateRetentionRequest

type CreateRetentionRequest struct {
	ContentType CreateRetentionRequestContentType `json:"Content-Type"`
	Namespace   string                            `json:"namespace"`
	Repository  string                            `json:"repository"`
	Body        *CreateRetentionRequestBody       `json:"body,omitempty"`
}

Request Object

func (CreateRetentionRequest) String

func (o CreateRetentionRequest) String() string

type CreateRetentionRequestBody

type CreateRetentionRequestBody struct {
	// 回收规则匹配策略,or
	Algorithm string `json:"algorithm"`
	// 镜像老化规则
	Rules []Rule `json:"rules"`
}

func (CreateRetentionRequestBody) String

type CreateRetentionRequestContentType

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

func (CreateRetentionRequestContentType) MarshalJSON

func (c CreateRetentionRequestContentType) MarshalJSON() ([]byte, error)

func (*CreateRetentionRequestContentType) UnmarshalJSON

func (c *CreateRetentionRequestContentType) UnmarshalJSON(b []byte) error

type CreateRetentionRequestContentTypeEnum

type CreateRetentionRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 CreateRetentionRequestContentType
	APPLICATION_JSON             CreateRetentionRequestContentType
}

func GetCreateRetentionRequestContentTypeEnum

func GetCreateRetentionRequestContentTypeEnum() CreateRetentionRequestContentTypeEnum

type CreateRetentionResponse

type CreateRetentionResponse struct {
	// 镜像老化规则id
	Id             *int32 `json:"id,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CreateRetentionResponse) String

func (o CreateRetentionResponse) String() string

type CreateSecretRequest

type CreateSecretRequest struct {
	ContentType CreateSecretRequestContentType `json:"Content-Type"`
	Projectname *string                        `json:"projectname,omitempty"`
}

Request Object

func (CreateSecretRequest) String

func (o CreateSecretRequest) String() string

type CreateSecretRequestContentType

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

func (CreateSecretRequestContentType) MarshalJSON

func (c CreateSecretRequestContentType) MarshalJSON() ([]byte, error)

func (*CreateSecretRequestContentType) UnmarshalJSON

func (c *CreateSecretRequestContentType) UnmarshalJSON(b []byte) error

type CreateSecretRequestContentTypeEnum

type CreateSecretRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 CreateSecretRequestContentType
	APPLICATION_JSON             CreateSecretRequestContentType
}

func GetCreateSecretRequestContentTypeEnum

func GetCreateSecretRequestContentTypeEnum() CreateSecretRequestContentTypeEnum

type CreateSecretResponse

type CreateSecretResponse struct {
	Auths          *Certification `json:"auths,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (CreateSecretResponse) String

func (o CreateSecretResponse) String() string

type CreateTriggerRequest

type CreateTriggerRequest struct {
	ContentType CreateTriggerRequestContentType `json:"Content-Type"`
	Namespace   string                          `json:"namespace"`
	Repository  string                          `json:"repository"`
	Body        *CreateTriggerRequestBody       `json:"body,omitempty"`
}

Request Object

func (CreateTriggerRequest) String

func (o CreateTriggerRequest) String() string

type CreateTriggerRequestBody

type CreateTriggerRequestBody struct {
	// 触发动作,update
	Action string `json:"action"`
	// 应用类型,deployments、statefulsets
	AppType string `json:"app_type"`
	// 应用名
	Application string `json:"application"`
	// 集群ID(trigger_mode设置为cci时为空)
	ClusterId *string `json:"cluster_id,omitempty"`
	// 集群名(trigger_mode设置为cci时为空)
	ClusterName *string `json:"cluster_name,omitempty"`
	// 应用名所在的namespace
	ClusterNs string `json:"cluster_ns"`
	// 触发条件,type为all时为.*,type为tag时为tag名,type为regular时为正则表达式
	Condition string `json:"condition"`
	// 需更新的container名,默认为所有container
	Container *string `json:"container,omitempty"`
	// 是否生效
	Enable string `json:"enable"`
	// 触发器名
	Name string `json:"name"`
	// 触发器类型,cce、cci,默认为cce
	TriggerMode *string `json:"trigger_mode,omitempty"`
	// 触发条件,all、tag、regular
	TriggerType string `json:"trigger_type"`
}

需要创建触发器的信息

func (CreateTriggerRequestBody) String

func (o CreateTriggerRequestBody) String() string

type CreateTriggerRequestContentType

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

func (CreateTriggerRequestContentType) MarshalJSON

func (c CreateTriggerRequestContentType) MarshalJSON() ([]byte, error)

func (*CreateTriggerRequestContentType) UnmarshalJSON

func (c *CreateTriggerRequestContentType) UnmarshalJSON(b []byte) error

type CreateTriggerRequestContentTypeEnum

type CreateTriggerRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 CreateTriggerRequestContentType
	APPLICATION_JSON             CreateTriggerRequestContentType
}

func GetCreateTriggerRequestContentTypeEnum

func GetCreateTriggerRequestContentTypeEnum() CreateTriggerRequestContentTypeEnum

type CreateTriggerResponse

type CreateTriggerResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateTriggerResponse) String

func (o CreateTriggerResponse) String() string

type CreateUserRepositoryAuthRequest

type CreateUserRepositoryAuthRequest struct {
	ContentType CreateUserRepositoryAuthRequestContentType `json:"Content-Type"`
	Namespace   string                                     `json:"namespace"`
	Repository  string                                     `json:"repository"`
	Body        *[]UserAuth                                `json:"body,omitempty"`
}

Request Object

func (CreateUserRepositoryAuthRequest) String

type CreateUserRepositoryAuthRequestContentType

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

func (CreateUserRepositoryAuthRequestContentType) MarshalJSON

func (*CreateUserRepositoryAuthRequestContentType) UnmarshalJSON

type CreateUserRepositoryAuthRequestContentTypeEnum

type CreateUserRepositoryAuthRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 CreateUserRepositoryAuthRequestContentType
	APPLICATION_JSON             CreateUserRepositoryAuthRequestContentType
}

func GetCreateUserRepositoryAuthRequestContentTypeEnum

func GetCreateUserRepositoryAuthRequestContentTypeEnum() CreateUserRepositoryAuthRequestContentTypeEnum

type CreateUserRepositoryAuthResponse

type CreateUserRepositoryAuthResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateUserRepositoryAuthResponse) String

type DeleteImageSyncRepoRequest

type DeleteImageSyncRepoRequest struct {
	ContentType DeleteImageSyncRepoRequestContentType `json:"Content-Type"`
	Namespace   string                                `json:"namespace"`
	Repository  string                                `json:"repository"`
	Body        *DeleteImageSyncRepoRequestBody       `json:"body,omitempty"`
}

Request Object

func (DeleteImageSyncRepoRequest) String

type DeleteImageSyncRepoRequestBody

type DeleteImageSyncRepoRequestBody struct {
	// 目标region ID。
	RemoteRegionId string `json:"remoteRegionId"`
	// 目标组织
	RemoteNamespace string `json:"remoteNamespace"`
}

需要删除镜像自动同步任务的信息

func (DeleteImageSyncRepoRequestBody) String

type DeleteImageSyncRepoRequestContentType

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

func (DeleteImageSyncRepoRequestContentType) MarshalJSON

func (c DeleteImageSyncRepoRequestContentType) MarshalJSON() ([]byte, error)

func (*DeleteImageSyncRepoRequestContentType) UnmarshalJSON

func (c *DeleteImageSyncRepoRequestContentType) UnmarshalJSON(b []byte) error

type DeleteImageSyncRepoRequestContentTypeEnum

type DeleteImageSyncRepoRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteImageSyncRepoRequestContentType
	APPLICATION_JSON             DeleteImageSyncRepoRequestContentType
}

func GetDeleteImageSyncRepoRequestContentTypeEnum

func GetDeleteImageSyncRepoRequestContentTypeEnum() DeleteImageSyncRepoRequestContentTypeEnum

type DeleteImageSyncRepoResponse

type DeleteImageSyncRepoResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteImageSyncRepoResponse) String

type DeleteNamespaceAuthRequest

type DeleteNamespaceAuthRequest struct {
	ContentType DeleteNamespaceAuthRequestContentType `json:"Content-Type"`
	Namespace   string                                `json:"namespace"`
	Body        *[]string                             `json:"body,omitempty"`
}

Request Object

func (DeleteNamespaceAuthRequest) String

type DeleteNamespaceAuthRequestContentType

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

func (DeleteNamespaceAuthRequestContentType) MarshalJSON

func (c DeleteNamespaceAuthRequestContentType) MarshalJSON() ([]byte, error)

func (*DeleteNamespaceAuthRequestContentType) UnmarshalJSON

func (c *DeleteNamespaceAuthRequestContentType) UnmarshalJSON(b []byte) error

type DeleteNamespaceAuthRequestContentTypeEnum

type DeleteNamespaceAuthRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteNamespaceAuthRequestContentType
	APPLICATION_JSON             DeleteNamespaceAuthRequestContentType
}

func GetDeleteNamespaceAuthRequestContentTypeEnum

func GetDeleteNamespaceAuthRequestContentTypeEnum() DeleteNamespaceAuthRequestContentTypeEnum

type DeleteNamespaceAuthResponse

type DeleteNamespaceAuthResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteNamespaceAuthResponse) String

type DeleteNamespacesRequest

type DeleteNamespacesRequest struct {
	ContentType DeleteNamespacesRequestContentType `json:"Content-Type"`
	Namespace   string                             `json:"namespace"`
}

Request Object

func (DeleteNamespacesRequest) String

func (o DeleteNamespacesRequest) String() string

type DeleteNamespacesRequestContentType

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

func (DeleteNamespacesRequestContentType) MarshalJSON

func (c DeleteNamespacesRequestContentType) MarshalJSON() ([]byte, error)

func (*DeleteNamespacesRequestContentType) UnmarshalJSON

func (c *DeleteNamespacesRequestContentType) UnmarshalJSON(b []byte) error

type DeleteNamespacesRequestContentTypeEnum

type DeleteNamespacesRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteNamespacesRequestContentType
	APPLICATION_JSON             DeleteNamespacesRequestContentType
}

func GetDeleteNamespacesRequestContentTypeEnum

func GetDeleteNamespacesRequestContentTypeEnum() DeleteNamespacesRequestContentTypeEnum

type DeleteNamespacesResponse

type DeleteNamespacesResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteNamespacesResponse) String

func (o DeleteNamespacesResponse) String() string

type DeleteRepoDomainsRequest

type DeleteRepoDomainsRequest struct {
	ContentType  DeleteRepoDomainsRequestContentType `json:"Content-Type"`
	Namespace    string                              `json:"namespace"`
	Repository   string                              `json:"repository"`
	AccessDomain string                              `json:"access_domain"`
}

Request Object

func (DeleteRepoDomainsRequest) String

func (o DeleteRepoDomainsRequest) String() string

type DeleteRepoDomainsRequestContentType

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

func (DeleteRepoDomainsRequestContentType) MarshalJSON

func (c DeleteRepoDomainsRequestContentType) MarshalJSON() ([]byte, error)

func (*DeleteRepoDomainsRequestContentType) UnmarshalJSON

func (c *DeleteRepoDomainsRequestContentType) UnmarshalJSON(b []byte) error

type DeleteRepoDomainsRequestContentTypeEnum

type DeleteRepoDomainsRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteRepoDomainsRequestContentType
	APPLICATION_JSON             DeleteRepoDomainsRequestContentType
}

func GetDeleteRepoDomainsRequestContentTypeEnum

func GetDeleteRepoDomainsRequestContentTypeEnum() DeleteRepoDomainsRequestContentTypeEnum

type DeleteRepoDomainsResponse

type DeleteRepoDomainsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteRepoDomainsResponse) String

func (o DeleteRepoDomainsResponse) String() string

type DeleteRepoRequest

type DeleteRepoRequest struct {
	ContentType DeleteRepoRequestContentType `json:"Content-Type"`
	Namespace   string                       `json:"namespace"`
	Repository  string                       `json:"repository"`
}

Request Object

func (DeleteRepoRequest) String

func (o DeleteRepoRequest) String() string

type DeleteRepoRequestContentType

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

func (DeleteRepoRequestContentType) MarshalJSON

func (c DeleteRepoRequestContentType) MarshalJSON() ([]byte, error)

func (*DeleteRepoRequestContentType) UnmarshalJSON

func (c *DeleteRepoRequestContentType) UnmarshalJSON(b []byte) error

type DeleteRepoRequestContentTypeEnum

type DeleteRepoRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteRepoRequestContentType
	APPLICATION_JSON             DeleteRepoRequestContentType
}

func GetDeleteRepoRequestContentTypeEnum

func GetDeleteRepoRequestContentTypeEnum() DeleteRepoRequestContentTypeEnum

type DeleteRepoResponse

type DeleteRepoResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteRepoResponse) String

func (o DeleteRepoResponse) String() string

type DeleteRepoTagRequest

type DeleteRepoTagRequest struct {
	ContentType DeleteRepoTagRequestContentType `json:"Content-Type"`
	Namespace   string                          `json:"namespace"`
	Repository  string                          `json:"repository"`
	Tag         string                          `json:"tag"`
}

Request Object

func (DeleteRepoTagRequest) String

func (o DeleteRepoTagRequest) String() string

type DeleteRepoTagRequestContentType

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

func (DeleteRepoTagRequestContentType) MarshalJSON

func (c DeleteRepoTagRequestContentType) MarshalJSON() ([]byte, error)

func (*DeleteRepoTagRequestContentType) UnmarshalJSON

func (c *DeleteRepoTagRequestContentType) UnmarshalJSON(b []byte) error

type DeleteRepoTagRequestContentTypeEnum

type DeleteRepoTagRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteRepoTagRequestContentType
	APPLICATION_JSON             DeleteRepoTagRequestContentType
}

func GetDeleteRepoTagRequestContentTypeEnum

func GetDeleteRepoTagRequestContentTypeEnum() DeleteRepoTagRequestContentTypeEnum

type DeleteRepoTagResponse

type DeleteRepoTagResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteRepoTagResponse) String

func (o DeleteRepoTagResponse) String() string

type DeleteRetentionRequest

type DeleteRetentionRequest struct {
	ContentType DeleteRetentionRequestContentType `json:"Content-Type"`
	Namespace   string                            `json:"namespace"`
	Repository  string                            `json:"repository"`
	RetentionId int32                             `json:"retention_id"`
}

Request Object

func (DeleteRetentionRequest) String

func (o DeleteRetentionRequest) String() string

type DeleteRetentionRequestContentType

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

func (DeleteRetentionRequestContentType) MarshalJSON

func (c DeleteRetentionRequestContentType) MarshalJSON() ([]byte, error)

func (*DeleteRetentionRequestContentType) UnmarshalJSON

func (c *DeleteRetentionRequestContentType) UnmarshalJSON(b []byte) error

type DeleteRetentionRequestContentTypeEnum

type DeleteRetentionRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteRetentionRequestContentType
	APPLICATION_JSON             DeleteRetentionRequestContentType
}

func GetDeleteRetentionRequestContentTypeEnum

func GetDeleteRetentionRequestContentTypeEnum() DeleteRetentionRequestContentTypeEnum

type DeleteRetentionResponse

type DeleteRetentionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteRetentionResponse) String

func (o DeleteRetentionResponse) String() string

type DeleteTriggerRequest

type DeleteTriggerRequest struct {
	ContentType DeleteTriggerRequestContentType `json:"Content-Type"`
	Namespace   string                          `json:"namespace"`
	Repository  string                          `json:"repository"`
	Trigger     string                          `json:"trigger"`
}

Request Object

func (DeleteTriggerRequest) String

func (o DeleteTriggerRequest) String() string

type DeleteTriggerRequestContentType

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

func (DeleteTriggerRequestContentType) MarshalJSON

func (c DeleteTriggerRequestContentType) MarshalJSON() ([]byte, error)

func (*DeleteTriggerRequestContentType) UnmarshalJSON

func (c *DeleteTriggerRequestContentType) UnmarshalJSON(b []byte) error

type DeleteTriggerRequestContentTypeEnum

type DeleteTriggerRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteTriggerRequestContentType
	APPLICATION_JSON             DeleteTriggerRequestContentType
}

func GetDeleteTriggerRequestContentTypeEnum

func GetDeleteTriggerRequestContentTypeEnum() DeleteTriggerRequestContentTypeEnum

type DeleteTriggerResponse

type DeleteTriggerResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteTriggerResponse) String

func (o DeleteTriggerResponse) String() string

type DeleteUserRepositoryAuthRequest

type DeleteUserRepositoryAuthRequest struct {
	ContentType DeleteUserRepositoryAuthRequestContentType `json:"Content-Type"`
	Namespace   string                                     `json:"namespace"`
	Repository  string                                     `json:"repository"`
	Body        *[]string                                  `json:"body,omitempty"`
}

Request Object

func (DeleteUserRepositoryAuthRequest) String

type DeleteUserRepositoryAuthRequestContentType

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

func (DeleteUserRepositoryAuthRequestContentType) MarshalJSON

func (*DeleteUserRepositoryAuthRequestContentType) UnmarshalJSON

type DeleteUserRepositoryAuthRequestContentTypeEnum

type DeleteUserRepositoryAuthRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 DeleteUserRepositoryAuthRequestContentType
	APPLICATION_JSON             DeleteUserRepositoryAuthRequestContentType
}

func GetDeleteUserRepositoryAuthRequestContentTypeEnum

func GetDeleteUserRepositoryAuthRequestContentTypeEnum() DeleteUserRepositoryAuthRequestContentTypeEnum

type DeleteUserRepositoryAuthResponse

type DeleteUserRepositoryAuthResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteUserRepositoryAuthResponse) String

type Link struct {
	// 链接
	Href string `json:"href"`
	// 描述
	Rel string `json:"rel"`
}

func (Link) String

func (o Link) String() string

type ListImageAutoSyncReposDetailsRequest

type ListImageAutoSyncReposDetailsRequest struct {
	ContentType ListImageAutoSyncReposDetailsRequestContentType `json:"Content-Type"`
	Namespace   string                                          `json:"namespace"`
	Repository  string                                          `json:"repository"`
}

Request Object

func (ListImageAutoSyncReposDetailsRequest) String

type ListImageAutoSyncReposDetailsRequestContentType

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

func (ListImageAutoSyncReposDetailsRequestContentType) MarshalJSON

func (*ListImageAutoSyncReposDetailsRequestContentType) UnmarshalJSON

type ListImageAutoSyncReposDetailsRequestContentTypeEnum

type ListImageAutoSyncReposDetailsRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ListImageAutoSyncReposDetailsRequestContentType
	APPLICATION_JSON             ListImageAutoSyncReposDetailsRequestContentType
}

type ListImageAutoSyncReposDetailsResponse

type ListImageAutoSyncReposDetailsResponse struct {
	// 镜像自动同步规则
	Body           *[]SyncRepo `json:"body,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListImageAutoSyncReposDetailsResponse) String

type ListNamespacesRequest

type ListNamespacesRequest struct {
	ContentType ListNamespacesRequestContentType `json:"Content-Type"`
	Namespace   *string                          `json:"namespace,omitempty"`
}

Request Object

func (ListNamespacesRequest) String

func (o ListNamespacesRequest) String() string

type ListNamespacesRequestContentType

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

func (ListNamespacesRequestContentType) MarshalJSON

func (c ListNamespacesRequestContentType) MarshalJSON() ([]byte, error)

func (*ListNamespacesRequestContentType) UnmarshalJSON

func (c *ListNamespacesRequestContentType) UnmarshalJSON(b []byte) error

type ListNamespacesRequestContentTypeEnum

type ListNamespacesRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ListNamespacesRequestContentType
	APPLICATION_JSON             ListNamespacesRequestContentType
}

func GetListNamespacesRequestContentTypeEnum

func GetListNamespacesRequestContentTypeEnum() ListNamespacesRequestContentTypeEnum

type ListNamespacesResponse

type ListNamespacesResponse struct {
	// 组织列表
	Namespaces     *[]ShowNamespace `json:"namespaces,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListNamespacesResponse) String

func (o ListNamespacesResponse) String() string

type ListRepoDomainsRequest

type ListRepoDomainsRequest struct {
	ContentType ListRepoDomainsRequestContentType `json:"Content-Type"`
	Namespace   string                            `json:"namespace"`
	Repository  string                            `json:"repository"`
}

Request Object

func (ListRepoDomainsRequest) String

func (o ListRepoDomainsRequest) String() string

type ListRepoDomainsRequestContentType

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

func (ListRepoDomainsRequestContentType) MarshalJSON

func (c ListRepoDomainsRequestContentType) MarshalJSON() ([]byte, error)

func (*ListRepoDomainsRequestContentType) UnmarshalJSON

func (c *ListRepoDomainsRequestContentType) UnmarshalJSON(b []byte) error

type ListRepoDomainsRequestContentTypeEnum

type ListRepoDomainsRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ListRepoDomainsRequestContentType
	APPLICATION_JSON             ListRepoDomainsRequestContentType
}

func GetListRepoDomainsRequestContentTypeEnum

func GetListRepoDomainsRequestContentTypeEnum() ListRepoDomainsRequestContentTypeEnum

type ListRepoDomainsResponse

type ListRepoDomainsResponse struct {
	// 共享租户列表
	Body           *[]ShowRepoDomainsResponse `json:"body,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

Response Object

func (ListRepoDomainsResponse) String

func (o ListRepoDomainsResponse) String() string

type ListRepositoryTagsRequest

type ListRepositoryTagsRequest struct {
	ContentType ListRepositoryTagsRequestContentType `json:"Content-Type"`
	Namespace   string                               `json:"namespace"`
	Repository  string                               `json:"repository"`
	Offset      *string                              `json:"offset,omitempty"`
	Limit       *string                              `json:"limit,omitempty"`
	OrderColumn *string                              `json:"order_column,omitempty"`
	OrderType   *ListRepositoryTagsRequestOrderType  `json:"order_type,omitempty"`
	Tag         *string                              `json:"tag,omitempty"`
}

Request Object

func (ListRepositoryTagsRequest) String

func (o ListRepositoryTagsRequest) String() string

type ListRepositoryTagsRequestContentType

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

func (ListRepositoryTagsRequestContentType) MarshalJSON

func (c ListRepositoryTagsRequestContentType) MarshalJSON() ([]byte, error)

func (*ListRepositoryTagsRequestContentType) UnmarshalJSON

func (c *ListRepositoryTagsRequestContentType) UnmarshalJSON(b []byte) error

type ListRepositoryTagsRequestContentTypeEnum

type ListRepositoryTagsRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ListRepositoryTagsRequestContentType
	APPLICATION_JSON             ListRepositoryTagsRequestContentType
}

func GetListRepositoryTagsRequestContentTypeEnum

func GetListRepositoryTagsRequestContentTypeEnum() ListRepositoryTagsRequestContentTypeEnum

type ListRepositoryTagsRequestOrderType

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

func (ListRepositoryTagsRequestOrderType) MarshalJSON

func (c ListRepositoryTagsRequestOrderType) MarshalJSON() ([]byte, error)

func (*ListRepositoryTagsRequestOrderType) UnmarshalJSON

func (c *ListRepositoryTagsRequestOrderType) UnmarshalJSON(b []byte) error

type ListRepositoryTagsRequestOrderTypeEnum

type ListRepositoryTagsRequestOrderTypeEnum struct {
	DESC ListRepositoryTagsRequestOrderType
	ASC  ListRepositoryTagsRequestOrderType
}

func GetListRepositoryTagsRequestOrderTypeEnum

func GetListRepositoryTagsRequestOrderTypeEnum() ListRepositoryTagsRequestOrderTypeEnum

type ListRepositoryTagsResponse

type ListRepositoryTagsResponse struct {
	// 镜像tag列表
	Body           *[]ShowReposTagResp `json:"body,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ListRepositoryTagsResponse) String

type ListRetentionHistoriesRequest

type ListRetentionHistoriesRequest struct {
	ContentType ListRetentionHistoriesRequestContentType `json:"Content-Type"`
	Namespace   string                                   `json:"namespace"`
	Repository  string                                   `json:"repository"`
	Offset      *string                                  `json:"offset,omitempty"`
	Limit       *string                                  `json:"limit,omitempty"`
}

Request Object

func (ListRetentionHistoriesRequest) String

type ListRetentionHistoriesRequestContentType

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

func (ListRetentionHistoriesRequestContentType) MarshalJSON

func (*ListRetentionHistoriesRequestContentType) UnmarshalJSON

func (c *ListRetentionHistoriesRequestContentType) UnmarshalJSON(b []byte) error

type ListRetentionHistoriesRequestContentTypeEnum

type ListRetentionHistoriesRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ListRetentionHistoriesRequestContentType
	APPLICATION_JSON             ListRetentionHistoriesRequestContentType
}

func GetListRetentionHistoriesRequestContentTypeEnum

func GetListRetentionHistoriesRequestContentTypeEnum() ListRetentionHistoriesRequestContentTypeEnum

type ListRetentionHistoriesResponse

type ListRetentionHistoriesResponse struct {
	// 镜像老化日志
	RetentionLog *[]RetentionLog `json:"retention_log,omitempty"`
	// 总个数
	Total          *int32  `json:"total,omitempty"`
	ContentRange   *string `json:"Content-Range,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListRetentionHistoriesResponse) String

type ListRetentionsRequest

type ListRetentionsRequest struct {
	ContentType ListRetentionsRequestContentType `json:"Content-Type"`
	Namespace   string                           `json:"namespace"`
	Repository  string                           `json:"repository"`
}

Request Object

func (ListRetentionsRequest) String

func (o ListRetentionsRequest) String() string

type ListRetentionsRequestContentType

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

func (ListRetentionsRequestContentType) MarshalJSON

func (c ListRetentionsRequestContentType) MarshalJSON() ([]byte, error)

func (*ListRetentionsRequestContentType) UnmarshalJSON

func (c *ListRetentionsRequestContentType) UnmarshalJSON(b []byte) error

type ListRetentionsRequestContentTypeEnum

type ListRetentionsRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ListRetentionsRequestContentType
	APPLICATION_JSON             ListRetentionsRequestContentType
}

func GetListRetentionsRequestContentTypeEnum

func GetListRetentionsRequestContentTypeEnum() ListRetentionsRequestContentTypeEnum

type ListRetentionsResponse

type ListRetentionsResponse struct {
	Body           *[]Retention `json:"body,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListRetentionsResponse) String

func (o ListRetentionsResponse) String() string

type ListTriggersDetailsRequest

type ListTriggersDetailsRequest struct {
	ContentType ListTriggersDetailsRequestContentType `json:"Content-Type"`
	Namespace   string                                `json:"namespace"`
	Repository  string                                `json:"repository"`
}

Request Object

func (ListTriggersDetailsRequest) String

type ListTriggersDetailsRequestContentType

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

func (ListTriggersDetailsRequestContentType) MarshalJSON

func (c ListTriggersDetailsRequestContentType) MarshalJSON() ([]byte, error)

func (*ListTriggersDetailsRequestContentType) UnmarshalJSON

func (c *ListTriggersDetailsRequestContentType) UnmarshalJSON(b []byte) error

type ListTriggersDetailsRequestContentTypeEnum

type ListTriggersDetailsRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ListTriggersDetailsRequestContentType
	APPLICATION_JSON             ListTriggersDetailsRequestContentType
}

func GetListTriggersDetailsRequestContentTypeEnum

func GetListTriggersDetailsRequestContentTypeEnum() ListTriggersDetailsRequestContentTypeEnum

type ListTriggersDetailsResponse

type ListTriggersDetailsResponse struct {
	// 触发器列表
	Body           *[]Trigger `json:"body,omitempty"`
	HttpStatusCode int        `json:"-"`
}

Response Object

func (ListTriggersDetailsResponse) String

type Retention

type Retention struct {
	// 回收规则匹配策略,or
	Algorithm string `json:"algorithm"`
	// ID
	Id int32 `json:"id"`
	// 镜像老化规则
	Rules []Rule `json:"rules"`
	// 保留字段
	Scope string `json:"scope"`
}

镜像老化规则

func (Retention) String

func (o Retention) String() string

type RetentionLog

type RetentionLog struct {
	// 创建时间
	CreatedAt string `json:"created_at"`
	// ID
	Id int32 `json:"id"`
	// 组织名
	Namespace string `json:"namespace"`
	// 镜像仓库名
	Repo string `json:"repo"`
	// 老化规则ID
	RetentionId int32 `json:"retention_id"`
	// 规则
	RuleType string `json:"rule_type"`
	// 镜像版本
	Tag string `json:"tag"`
}

func (RetentionLog) String

func (o RetentionLog) String() string

type Rule

type Rule struct {
	// template是date_rule时,设置params[\"days\"] template是tag_rule时,设置params[\"num\"]
	Params *interface{} `json:"params"`
	// 例外镜像
	TagSelectors []TagSelector `json:"tag_selectors"`
	// 回收类型,date_rule、tag_rule
	Template RuleTemplate `json:"template"`
}

func (Rule) String

func (o Rule) String() string

type RuleTemplate

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

func (RuleTemplate) MarshalJSON

func (c RuleTemplate) MarshalJSON() ([]byte, error)

func (*RuleTemplate) UnmarshalJSON

func (c *RuleTemplate) UnmarshalJSON(b []byte) error

type RuleTemplateEnum

type RuleTemplateEnum struct {
	DATE_RULE RuleTemplate
	TAG_RULE  RuleTemplate
}

func GetRuleTemplateEnum

func GetRuleTemplateEnum() RuleTemplateEnum

type ShowAccessDomainRequest

type ShowAccessDomainRequest struct {
	ContentType  ShowAccessDomainRequestContentType `json:"Content-Type"`
	Namespace    string                             `json:"namespace"`
	Repository   string                             `json:"repository"`
	AccessDomain string                             `json:"access_domain"`
}

Request Object

func (ShowAccessDomainRequest) String

func (o ShowAccessDomainRequest) String() string

type ShowAccessDomainRequestContentType

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

func (ShowAccessDomainRequestContentType) MarshalJSON

func (c ShowAccessDomainRequestContentType) MarshalJSON() ([]byte, error)

func (*ShowAccessDomainRequestContentType) UnmarshalJSON

func (c *ShowAccessDomainRequestContentType) UnmarshalJSON(b []byte) error

type ShowAccessDomainRequestContentTypeEnum

type ShowAccessDomainRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ShowAccessDomainRequestContentType
	APPLICATION_JSON             ShowAccessDomainRequestContentType
}

func GetShowAccessDomainRequestContentTypeEnum

func GetShowAccessDomainRequestContentTypeEnum() ShowAccessDomainRequestContentTypeEnum

type ShowAccessDomainResponse

type ShowAccessDomainResponse struct {
	// true:存在;false:不存在
	Exist          *bool `json:"exist,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ShowAccessDomainResponse) String

func (o ShowAccessDomainResponse) String() string

type ShowApiVersionRequest

type ShowApiVersionRequest struct {
	ContentType ShowApiVersionRequestContentType `json:"Content-Type"`
	ApiVersion  string                           `json:"api_version"`
}

Request Object

func (ShowApiVersionRequest) String

func (o ShowApiVersionRequest) String() string

type ShowApiVersionRequestContentType

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

func (ShowApiVersionRequestContentType) MarshalJSON

func (c ShowApiVersionRequestContentType) MarshalJSON() ([]byte, error)

func (*ShowApiVersionRequestContentType) UnmarshalJSON

func (c *ShowApiVersionRequestContentType) UnmarshalJSON(b []byte) error

type ShowApiVersionRequestContentTypeEnum

type ShowApiVersionRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ShowApiVersionRequestContentType
	APPLICATION_JSON             ShowApiVersionRequestContentType
}

func GetShowApiVersionRequestContentTypeEnum

func GetShowApiVersionRequestContentTypeEnum() ShowApiVersionRequestContentTypeEnum

type ShowApiVersionResponse

type ShowApiVersionResponse struct {
	Version        *VersionsDetail `json:"version,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ShowApiVersionResponse) String

func (o ShowApiVersionResponse) String() string

type ShowNamespace

type ShowNamespace struct {
	// id
	Id int32 `json:"id"`
	// 组织名称
	Name string `json:"name"`
	// IAM用户名
	CreatorName string `json:"creator_name"`
	// 用户权限。7表示管理权限,3表示编辑权限,1表示读取权限。
	Auth int32 `json:"auth"`
}

func (ShowNamespace) String

func (o ShowNamespace) String() string

type ShowNamespaceAuthRequest

type ShowNamespaceAuthRequest struct {
	ContentType ShowNamespaceAuthRequestContentType `json:"Content-Type"`
	Namespace   string                              `json:"namespace"`
}

Request Object

func (ShowNamespaceAuthRequest) String

func (o ShowNamespaceAuthRequest) String() string

type ShowNamespaceAuthRequestContentType

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

func (ShowNamespaceAuthRequestContentType) MarshalJSON

func (c ShowNamespaceAuthRequestContentType) MarshalJSON() ([]byte, error)

func (*ShowNamespaceAuthRequestContentType) UnmarshalJSON

func (c *ShowNamespaceAuthRequestContentType) UnmarshalJSON(b []byte) error

type ShowNamespaceAuthRequestContentTypeEnum

type ShowNamespaceAuthRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ShowNamespaceAuthRequestContentType
	APPLICATION_JSON             ShowNamespaceAuthRequestContentType
}

func GetShowNamespaceAuthRequestContentTypeEnum

func GetShowNamespaceAuthRequestContentTypeEnum() ShowNamespaceAuthRequestContentTypeEnum

type ShowNamespaceAuthResponse

type ShowNamespaceAuthResponse struct {
	// id
	Id *int32 `json:"id,omitempty"`
	// 组织名称
	Name *string `json:"name,omitempty"`
	// 组织创建者
	CreatorName *string   `json:"creator_name,omitempty"`
	SelfAuth    *UserAuth `json:"self_auth,omitempty"`
	// 其他用户的权限
	OthersAuths    *[]UserAuth `json:"others_auths,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ShowNamespaceAuthResponse) String

func (o ShowNamespaceAuthResponse) String() string

type ShowNamespaceRequest

type ShowNamespaceRequest struct {
	ContentType ShowNamespaceRequestContentType `json:"Content-Type"`
	Namespace   string                          `json:"namespace"`
}

Request Object

func (ShowNamespaceRequest) String

func (o ShowNamespaceRequest) String() string

type ShowNamespaceRequestContentType

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

func (ShowNamespaceRequestContentType) MarshalJSON

func (c ShowNamespaceRequestContentType) MarshalJSON() ([]byte, error)

func (*ShowNamespaceRequestContentType) UnmarshalJSON

func (c *ShowNamespaceRequestContentType) UnmarshalJSON(b []byte) error

type ShowNamespaceRequestContentTypeEnum

type ShowNamespaceRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ShowNamespaceRequestContentType
	APPLICATION_JSON             ShowNamespaceRequestContentType
}

func GetShowNamespaceRequestContentTypeEnum

func GetShowNamespaceRequestContentTypeEnum() ShowNamespaceRequestContentTypeEnum

type ShowNamespaceResponse

type ShowNamespaceResponse struct {
	// id
	Id *int32 `json:"id,omitempty"`
	// 组织名称
	Name *string `json:"name,omitempty"`
	// IAM用户名
	CreatorName *string `json:"creator_name,omitempty"`
	// 用户权限。7表示管理权限,3表示编辑权限,1表示读取权限。
	Auth           *int32 `json:"auth,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowNamespaceResponse) String

func (o ShowNamespaceResponse) String() string

type ShowRepoDomainsResponse

type ShowRepoDomainsResponse struct {
	// 命名空间
	Namespace string `json:"namespace"`
	// 镜像仓库
	Repository string `json:"repository"`
	// 共享租户名
	AccessDomain string `json:"access_domain"`
	// 权限
	Permit string `json:"permit"`
	// 截止时间
	Deadline string `json:"deadline"`
	// 描述
	Description string `json:"description"`
	// 创建者ID
	CreatorId string `json:"creator_id"`
	// 创建者名称
	CreatorName string `json:"creator_name"`
	// 镜像创建时间,UTC时间格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	Created string `json:"created"`
	// 镜像更新时间,UTC时间格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	Updated string `json:"updated"`
	// 是否过期:true:有效;false:过期
	Status bool `json:"status"`
}

func (ShowRepoDomainsResponse) String

func (o ShowRepoDomainsResponse) String() string

type ShowReposTagResp

type ShowReposTagResp struct {
	// tag编号
	Id int64 `json:"id"`
	// 仓库编号
	RepoId int64 `json:"repo_id"`
	// Tag版本名称
	Tag string `json:"Tag"`
	// 镜像id
	ImageId string `json:"image_id"`
	// 镜像manifest
	Manifest string `json:"manifest"`
	// 镜像hash值
	Digest string `json:"digest"`
	// docker协议版本,值为1或2
	Schema int64 `json:"schema"`
	// 镜像pull地址,格式为swr.cn-north-1.myhuaweicloud.com/namespace/repository:tag
	Path string `json:"path"`
	// cce集群内镜像pull路径,格式为 10.125.0.198:20202/namespace/repository:tag
	InternalPath string `json:"internal_path"`
	// 镜像大小,0 ~ 9223372036854775807
	Size int64 `json:"size"`
	// 默认值为false
	IsTrusted bool `json:"is_trusted"`
	// 镜像创建时间,UTC时间格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	Created string `json:"created"`
	// 镜像更新时间,UTC时间格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	Updated string `json:"updated"`
	// 镜像删除时间,UTC时间格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	Deleted string `json:"deleted"`
}

func (ShowReposTagResp) String

func (o ShowReposTagResp) String() string

type ShowRepositoryRequest

type ShowRepositoryRequest struct {
	ContentType ShowRepositoryRequestContentType `json:"Content-Type"`
	Namespace   string                           `json:"namespace"`
	Repository  string                           `json:"repository"`
}

Request Object

func (ShowRepositoryRequest) String

func (o ShowRepositoryRequest) String() string

type ShowRepositoryRequestContentType

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

func (ShowRepositoryRequestContentType) MarshalJSON

func (c ShowRepositoryRequestContentType) MarshalJSON() ([]byte, error)

func (*ShowRepositoryRequestContentType) UnmarshalJSON

func (c *ShowRepositoryRequestContentType) UnmarshalJSON(b []byte) error

type ShowRepositoryRequestContentTypeEnum

type ShowRepositoryRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ShowRepositoryRequestContentType
	APPLICATION_JSON             ShowRepositoryRequestContentType
}

func GetShowRepositoryRequestContentTypeEnum

func GetShowRepositoryRequestContentTypeEnum() ShowRepositoryRequestContentTypeEnum

type ShowRepositoryResponse

type ShowRepositoryResponse struct {
	// 仓库编号
	Id *int64 `json:"id,omitempty"`
	// 命名空间编号
	NsId *int64 `json:"ns_id,omitempty"`
	// 仓库名称
	Name *string `json:"name,omitempty"`
	// 仓库类型(计划改造,每个镜像会有多个lable标示)
	Category *string `json:"category,omitempty"`
	// 仓库描述信息
	Description *string `json:"description,omitempty"`
	// 仓库创建者id
	CreatorId *string `json:"creator_id,omitempty"`
	// 仓库创建者
	CreatorName *string `json:"creator_name,omitempty"`
	// 仓库大小
	Size *int64 `json:"size,omitempty"`
	// 仓库是否为公共仓库,值为true或false
	IsPublic *bool `json:"is_public,omitempty"`
	// 仓库中镜像个数,0 ~ 9223372036854775807
	NumImages *int64 `json:"num_images,omitempty"`
	// 仓库下载次数
	NumDownload *int32 `json:"num_download,omitempty"`
	// 仓库logo图片的URL,URL格式。(暂时未用)
	Url *string `json:"url,omitempty"`
	// 镜像pull路径,格式为 swr.cn-north-1.myhuaweicloud.com/namespace/repository
	Path *string `json:"path,omitempty"`
	// 镜像pull路径,格式为 10.125.0.198:20202/namespace/repository
	InternalPath *string `json:"internal_path,omitempty"`
	// 仓库创建时间,UTC日期格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	Created *string `json:"created,omitempty"`
	// 仓库更新时间,UTC日期格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	Updated        *string `json:"updated,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowRepositoryResponse) String

func (o ShowRepositoryResponse) String() string

type ShowRetentionRequest

type ShowRetentionRequest struct {
	ContentType ShowRetentionRequestContentType `json:"Content-Type"`
	Namespace   string                          `json:"namespace"`
	Repository  string                          `json:"repository"`
	RetentionId int32                           `json:"retention_id"`
}

Request Object

func (ShowRetentionRequest) String

func (o ShowRetentionRequest) String() string

type ShowRetentionRequestContentType

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

func (ShowRetentionRequestContentType) MarshalJSON

func (c ShowRetentionRequestContentType) MarshalJSON() ([]byte, error)

func (*ShowRetentionRequestContentType) UnmarshalJSON

func (c *ShowRetentionRequestContentType) UnmarshalJSON(b []byte) error

type ShowRetentionRequestContentTypeEnum

type ShowRetentionRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ShowRetentionRequestContentType
	APPLICATION_JSON             ShowRetentionRequestContentType
}

func GetShowRetentionRequestContentTypeEnum

func GetShowRetentionRequestContentTypeEnum() ShowRetentionRequestContentTypeEnum

type ShowRetentionResponse

type ShowRetentionResponse struct {
	// 回收规则匹配策略,or
	Algorithm *string `json:"algorithm,omitempty"`
	// ID
	Id *int32 `json:"id,omitempty"`
	// 镜像老化规则
	Rules *[]Rule `json:"rules,omitempty"`
	// 保留字段
	Scope          *string `json:"scope,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowRetentionResponse) String

func (o ShowRetentionResponse) String() string

type ShowTriggerRequest

type ShowTriggerRequest struct {
	ContentType ShowTriggerRequestContentType `json:"Content-Type"`
	Namespace   string                        `json:"namespace"`
	Repository  string                        `json:"repository"`
	Trigger     string                        `json:"trigger"`
}

Request Object

func (ShowTriggerRequest) String

func (o ShowTriggerRequest) String() string

type ShowTriggerRequestContentType

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

func (ShowTriggerRequestContentType) MarshalJSON

func (c ShowTriggerRequestContentType) MarshalJSON() ([]byte, error)

func (*ShowTriggerRequestContentType) UnmarshalJSON

func (c *ShowTriggerRequestContentType) UnmarshalJSON(b []byte) error

type ShowTriggerRequestContentTypeEnum

type ShowTriggerRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ShowTriggerRequestContentType
	APPLICATION_JSON             ShowTriggerRequestContentType
}

func GetShowTriggerRequestContentTypeEnum

func GetShowTriggerRequestContentTypeEnum() ShowTriggerRequestContentTypeEnum

type ShowTriggerResponse

type ShowTriggerResponse struct {
	// 触发动作,update
	Action *string `json:"action,omitempty"`
	// 应用类型,deployments、statefulsets
	AppType *string `json:"app_type,omitempty"`
	// 应用名
	Application *string `json:"application,omitempty"`
	// 集群ID(cci时为空)
	ClusterId *string `json:"cluster_id,omitempty"`
	// 集群名(cci时为空)
	ClusterName *string `json:"cluster_name,omitempty"`
	// 应用名所在的namespace
	ClusterNs *string `json:"cluster_ns,omitempty"`
	// 触发条件,type为all时为.*,type为tag时为tag名,type为regular时为正则表达式
	Condition *string `json:"condition,omitempty"`
	// 需更新的container名,默认为所有container
	Container *string `json:"container,omitempty"`
	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`
	// 创建人
	CreatorName *string `json:"creator_name,omitempty"`
	// 是否生效
	Enable *string `json:"enable,omitempty"`
	// 触发器名
	Name *string `json:"name,omitempty"`
	// 触发器历史
	TriggerHistory *[]TriggerHistorys `json:"trigger_history,omitempty"`
	// 触发器类型,cce、cci
	TriggerMode *string `json:"trigger_mode,omitempty"`
	// 触发条件,all、tag、regular
	TriggerType    *string `json:"trigger_type,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowTriggerResponse) String

func (o ShowTriggerResponse) String() string

type ShowUserRepositoryAuthRequest

type ShowUserRepositoryAuthRequest struct {
	ContentType ShowUserRepositoryAuthRequestContentType `json:"Content-Type"`
	Namespace   string                                   `json:"namespace"`
	Repository  string                                   `json:"repository"`
}

Request Object

func (ShowUserRepositoryAuthRequest) String

type ShowUserRepositoryAuthRequestContentType

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

func (ShowUserRepositoryAuthRequestContentType) MarshalJSON

func (*ShowUserRepositoryAuthRequestContentType) UnmarshalJSON

func (c *ShowUserRepositoryAuthRequestContentType) UnmarshalJSON(b []byte) error

type ShowUserRepositoryAuthRequestContentTypeEnum

type ShowUserRepositoryAuthRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 ShowUserRepositoryAuthRequestContentType
	APPLICATION_JSON             ShowUserRepositoryAuthRequestContentType
}

func GetShowUserRepositoryAuthRequestContentTypeEnum

func GetShowUserRepositoryAuthRequestContentTypeEnum() ShowUserRepositoryAuthRequestContentTypeEnum

type ShowUserRepositoryAuthResponse

type ShowUserRepositoryAuthResponse struct {
	// id
	Id *int32 `json:"id,omitempty"`
	// 组织名称
	Name     *string   `json:"name,omitempty"`
	SelfAuth *UserAuth `json:"self_auth,omitempty"`
	// 其他用户的权限
	OthersAuths    *[]UserAuth `json:"others_auths,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ShowUserRepositoryAuthResponse) String

type SyncRepo

type SyncRepo struct {
	// 创建时间,UTC日期格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	CreatedAt string `json:"createdAt"`
	// 租户ID
	DomainID string `json:"domainID"`
	// 租户名
	DomainName string `json:"domainName"`
	// ID
	Id int32 `json:"id"`
	// 组织名
	Namespace string `json:"namespace"`
	// 是否覆盖
	Override bool `json:"override"`
	// 目的组织
	RemoteNamespace string `json:"remoteNamespace"`
	// 目的region
	RemoteRegionId string `json:"remoteRegionId"`
	// 仓库名
	RepoName string `json:"repoName"`
	// 自动同步
	SynAuto bool `json:"synAuto"`
	// 更新时间,UTC日期格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00
	UpdatedAt string `json:"updatedAt"`
}

func (SyncRepo) String

func (o SyncRepo) String() string

type TagSelector

type TagSelector struct {
	// 匹配规则,label、regexp
	Kind string `json:"kind"`
	// kind是label时,设置为镜像版本,kind是regexp时,设置为正则表达式
	Pattern string `json:"pattern"`
}

func (TagSelector) String

func (o TagSelector) String() string

type Trigger

type Trigger struct {
	// 触发动作,update
	Action string `json:"action"`
	// 应用类型,deployments、statefulsets
	AppType string `json:"app_type"`
	// 应用名
	Application string `json:"application"`
	// 集群ID(cci时为空)
	ClusterId string `json:"cluster_id"`
	// 集群名(cci时为空)
	ClusterName string `json:"cluster_name"`
	// 应用名所在的namespace
	ClusterNs string `json:"cluster_ns"`
	// 触发条件,type为all时为.*,type为tag时为tag名,type为regular时为正则表达式
	Condition string `json:"condition"`
	// 需更新的container名,默认为所有container
	Container string `json:"container"`
	// 创建时间
	CreatedAt string `json:"created_at"`
	// 创建人
	CreatorName string `json:"creator_name"`
	// 是否生效
	Enable string `json:"enable"`
	// 触发器名
	Name string `json:"name"`
	// 触发器历史
	TriggerHistory []TriggerHistorys `json:"trigger_history"`
	// 触发器类型,cce、cci
	TriggerMode string `json:"trigger_mode"`
	// 触发条件,all、tag、regular
	TriggerType string `json:"trigger_type"`
}

func (Trigger) String

func (o Trigger) String() string

type TriggerHistorys

type TriggerHistorys struct {
	// 触发动作,update
	Action string `json:"action"`
	// 应用类型,deployments、statefulsets
	AppType string `json:"app_type"`
	// 应用名
	Application string `json:"application"`
	// 集群ID(cci时为空)
	ClusterId string `json:"cluster_id"`
	// 集群名(cci时为空)
	ClusterName string `json:"cluster_name"`
	// 应用名所在的namespace
	ClusterNs string `json:"cluster_ns"`
	// 触发条件,type为all时为.*,type为tag时为tag名,type为regular时为正则表达式
	Condition string `json:"condition"`
	// 需更新的container名,默认为所有container
	Container string `json:"container"`
	// 创建时间
	CreatedAt string `json:"created_at"`
	// 创建人
	CreatorName string `json:"creator_name"`
	// 详情
	Detail string `json:"detail"`
	// 更新结果,success、failed
	Result string `json:"result"`
	// 触发的版本号
	Tag string `json:"tag"`
}

func (TriggerHistorys) String

func (o TriggerHistorys) String() string

type UpdateRepoDomainsRequest

type UpdateRepoDomainsRequest struct {
	ContentType  UpdateRepoDomainsRequestContentType `json:"Content-Type"`
	Namespace    string                              `json:"namespace"`
	Repository   string                              `json:"repository"`
	AccessDomain string                              `json:"access_domain"`
	Body         *UpdateRepoDomainsRequestBody       `json:"body,omitempty"`
}

Request Object

func (UpdateRepoDomainsRequest) String

func (o UpdateRepoDomainsRequest) String() string

type UpdateRepoDomainsRequestBody

type UpdateRepoDomainsRequestBody struct {
	// 当前只支持read权限
	Permit string `json:"permit"`
	// 截止时间,UTC时间格式。永久有效为forever
	Deadline string `json:"deadline"`
	// 描述。默认值为空字符串
	Description *string `json:"description,omitempty"`
}

func (UpdateRepoDomainsRequestBody) String

type UpdateRepoDomainsRequestContentType

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

func (UpdateRepoDomainsRequestContentType) MarshalJSON

func (c UpdateRepoDomainsRequestContentType) MarshalJSON() ([]byte, error)

func (*UpdateRepoDomainsRequestContentType) UnmarshalJSON

func (c *UpdateRepoDomainsRequestContentType) UnmarshalJSON(b []byte) error

type UpdateRepoDomainsRequestContentTypeEnum

type UpdateRepoDomainsRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 UpdateRepoDomainsRequestContentType
	APPLICATION_JSON             UpdateRepoDomainsRequestContentType
}

func GetUpdateRepoDomainsRequestContentTypeEnum

func GetUpdateRepoDomainsRequestContentTypeEnum() UpdateRepoDomainsRequestContentTypeEnum

type UpdateRepoDomainsResponse

type UpdateRepoDomainsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateRepoDomainsResponse) String

func (o UpdateRepoDomainsResponse) String() string

type UpdateRetentionRequest

type UpdateRetentionRequest struct {
	ContentType UpdateRetentionRequestContentType `json:"Content-Type"`
	Namespace   string                            `json:"namespace"`
	Repository  string                            `json:"repository"`
	RetentionId int32                             `json:"retention_id"`
	Body        *UpdateRetentionRequestBody       `json:"body,omitempty"`
}

Request Object

func (UpdateRetentionRequest) String

func (o UpdateRetentionRequest) String() string

type UpdateRetentionRequestBody

type UpdateRetentionRequestBody struct {
	// 算法
	Algorithm string `json:"algorithm"`
	// 镜像老化规则
	Rules []Rule `json:"rules"`
}

func (UpdateRetentionRequestBody) String

type UpdateRetentionRequestContentType

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

func (UpdateRetentionRequestContentType) MarshalJSON

func (c UpdateRetentionRequestContentType) MarshalJSON() ([]byte, error)

func (*UpdateRetentionRequestContentType) UnmarshalJSON

func (c *UpdateRetentionRequestContentType) UnmarshalJSON(b []byte) error

type UpdateRetentionRequestContentTypeEnum

type UpdateRetentionRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 UpdateRetentionRequestContentType
	APPLICATION_JSON             UpdateRetentionRequestContentType
}

func GetUpdateRetentionRequestContentTypeEnum

func GetUpdateRetentionRequestContentTypeEnum() UpdateRetentionRequestContentTypeEnum

type UpdateRetentionResponse

type UpdateRetentionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateRetentionResponse) String

func (o UpdateRetentionResponse) String() string

type UpdateTriggerRequest

type UpdateTriggerRequest struct {
	ContentType UpdateTriggerRequestContentType `json:"Content-Type"`
	Namespace   string                          `json:"namespace"`
	Repository  string                          `json:"repository"`
	Trigger     string                          `json:"trigger"`
	Body        *UpdateTriggerRequestBody       `json:"body,omitempty"`
}

Request Object

func (UpdateTriggerRequest) String

func (o UpdateTriggerRequest) String() string

type UpdateTriggerRequestBody

type UpdateTriggerRequestBody struct {
	// 是否生效,true启用,false不启用
	Enable string `json:"enable"`
}

func (UpdateTriggerRequestBody) String

func (o UpdateTriggerRequestBody) String() string

type UpdateTriggerRequestContentType

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

func (UpdateTriggerRequestContentType) MarshalJSON

func (c UpdateTriggerRequestContentType) MarshalJSON() ([]byte, error)

func (*UpdateTriggerRequestContentType) UnmarshalJSON

func (c *UpdateTriggerRequestContentType) UnmarshalJSON(b []byte) error

type UpdateTriggerRequestContentTypeEnum

type UpdateTriggerRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 UpdateTriggerRequestContentType
	APPLICATION_JSON             UpdateTriggerRequestContentType
}

func GetUpdateTriggerRequestContentTypeEnum

func GetUpdateTriggerRequestContentTypeEnum() UpdateTriggerRequestContentTypeEnum

type UpdateTriggerResponse

type UpdateTriggerResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateTriggerResponse) String

func (o UpdateTriggerResponse) String() string

type UpdateUserRepositoryAuthRequest

type UpdateUserRepositoryAuthRequest struct {
	ContentType UpdateUserRepositoryAuthRequestContentType `json:"Content-Type"`
	Namespace   string                                     `json:"namespace"`
	Repository  string                                     `json:"repository"`
	Body        *[]UserAuth                                `json:"body,omitempty"`
}

Request Object

func (UpdateUserRepositoryAuthRequest) String

type UpdateUserRepositoryAuthRequestContentType

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

func (UpdateUserRepositoryAuthRequestContentType) MarshalJSON

func (*UpdateUserRepositoryAuthRequestContentType) UnmarshalJSON

type UpdateUserRepositoryAuthRequestContentTypeEnum

type UpdateUserRepositoryAuthRequestContentTypeEnum struct {
	APPLICATION_JSONCHARSETUTF_8 UpdateUserRepositoryAuthRequestContentType
	APPLICATION_JSON             UpdateUserRepositoryAuthRequestContentType
}

func GetUpdateUserRepositoryAuthRequestContentTypeEnum

func GetUpdateUserRepositoryAuthRequestContentTypeEnum() UpdateUserRepositoryAuthRequestContentTypeEnum

type UpdateUserRepositoryAuthResponse

type UpdateUserRepositoryAuthResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateUserRepositoryAuthResponse) String

type UserAuth

type UserAuth struct {
	// 用户id,需要从IAM服务获取
	UserId string `json:"user_id"`
	// 用户名,需要从IAM服务获取
	UserName string `json:"user_name"`
	// 用户权限,7表示管理权限,3表示编辑权限,1表示读取权限
	Auth int32 `json:"auth"`
}

func (UserAuth) String

func (o UserAuth) String() string

type VersionsDetail

type VersionsDetail struct {
	// 版本ID(版本号)。
	Id    string `json:"id"`
	Links *Link  `json:"links"`
	// 若该版本API支持微版本,则填支持的最大微版本号,如果不支持微版本,则填空。
	Version string `json:"version"`
	// 版本状态,为如下3种:  CURRENT:表示该版本为主推版本;  SUPPORTED:表示为老版本,但是现在还继续支持;  DEPRECATED:表示为废弃版本,存在后续删除的可能。
	Status string `json:"status"`
	// 版本发布时间,要求用UTC时间表示。如v1发布的时间2014-06-28T12:20:21Z。
	Updated string `json:"updated"`
	// 若该版本API 支持微版本,则填支持的最小微版本号, 如果不支持微版本,则填空。
	MinVersion string `json:"min_version"`
}

func (VersionsDetail) String

func (o VersionsDetail) String() string

Source Files

Jump to

Keyboard shortcuts

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