v2

package
v0.0.86 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 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

func GenReqDefForCreateImageSyncRepo

func GenReqDefForCreateImageSyncRepo() *def.HttpRequestDef

func GenReqDefForCreateManualImageSyncRepo

func GenReqDefForCreateManualImageSyncRepo() *def.HttpRequestDef

func GenReqDefForCreateNamespace

func GenReqDefForCreateNamespace() *def.HttpRequestDef

func GenReqDefForCreateNamespaceAuth

func GenReqDefForCreateNamespaceAuth() *def.HttpRequestDef

func GenReqDefForCreateRepo

func GenReqDefForCreateRepo() *def.HttpRequestDef

func GenReqDefForCreateRepoDomains

func GenReqDefForCreateRepoDomains() *def.HttpRequestDef

func GenReqDefForCreateRetention

func GenReqDefForCreateRetention() *def.HttpRequestDef

func GenReqDefForCreateSecret

func GenReqDefForCreateSecret() *def.HttpRequestDef

func GenReqDefForCreateTrigger

func GenReqDefForCreateTrigger() *def.HttpRequestDef

func GenReqDefForCreateUserRepositoryAuth

func GenReqDefForCreateUserRepositoryAuth() *def.HttpRequestDef

func GenReqDefForDeleteImageSyncRepo

func GenReqDefForDeleteImageSyncRepo() *def.HttpRequestDef

func GenReqDefForDeleteNamespaceAuth

func GenReqDefForDeleteNamespaceAuth() *def.HttpRequestDef

func GenReqDefForDeleteNamespaces

func GenReqDefForDeleteNamespaces() *def.HttpRequestDef

func GenReqDefForDeleteRepo

func GenReqDefForDeleteRepo() *def.HttpRequestDef

func GenReqDefForDeleteRepoDomains

func GenReqDefForDeleteRepoDomains() *def.HttpRequestDef

func GenReqDefForDeleteRepoTag

func GenReqDefForDeleteRepoTag() *def.HttpRequestDef

func GenReqDefForDeleteRetention

func GenReqDefForDeleteRetention() *def.HttpRequestDef

func GenReqDefForDeleteTrigger

func GenReqDefForDeleteTrigger() *def.HttpRequestDef

func GenReqDefForDeleteUserRepositoryAuth

func GenReqDefForDeleteUserRepositoryAuth() *def.HttpRequestDef

func GenReqDefForListApiVersions

func GenReqDefForListApiVersions() *def.HttpRequestDef

func GenReqDefForListImageAutoSyncReposDetails

func GenReqDefForListImageAutoSyncReposDetails() *def.HttpRequestDef

func GenReqDefForListNamespaces

func GenReqDefForListNamespaces() *def.HttpRequestDef

func GenReqDefForListQuotas added in v0.0.71

func GenReqDefForListQuotas() *def.HttpRequestDef

func GenReqDefForListRepoDomains

func GenReqDefForListRepoDomains() *def.HttpRequestDef

func GenReqDefForListReposDetails

func GenReqDefForListReposDetails() *def.HttpRequestDef

func GenReqDefForListRepositoryTags

func GenReqDefForListRepositoryTags() *def.HttpRequestDef

func GenReqDefForListRetentionHistories

func GenReqDefForListRetentionHistories() *def.HttpRequestDef

func GenReqDefForListRetentions

func GenReqDefForListRetentions() *def.HttpRequestDef

func GenReqDefForListSharedReposDetails

func GenReqDefForListSharedReposDetails() *def.HttpRequestDef

func GenReqDefForListTriggersDetails

func GenReqDefForListTriggersDetails() *def.HttpRequestDef

func GenReqDefForShowAccessDomain

func GenReqDefForShowAccessDomain() *def.HttpRequestDef

func GenReqDefForShowApiVersion

func GenReqDefForShowApiVersion() *def.HttpRequestDef

func GenReqDefForShowNamespace

func GenReqDefForShowNamespace() *def.HttpRequestDef

func GenReqDefForShowNamespaceAuth

func GenReqDefForShowNamespaceAuth() *def.HttpRequestDef

func GenReqDefForShowRepository

func GenReqDefForShowRepository() *def.HttpRequestDef

func GenReqDefForShowRetention

func GenReqDefForShowRetention() *def.HttpRequestDef

func GenReqDefForShowSyncJob

func GenReqDefForShowSyncJob() *def.HttpRequestDef

func GenReqDefForShowTrigger

func GenReqDefForShowTrigger() *def.HttpRequestDef

func GenReqDefForShowUserRepositoryAuth

func GenReqDefForShowUserRepositoryAuth() *def.HttpRequestDef

func GenReqDefForUpdateNamespaceAuth

func GenReqDefForUpdateNamespaceAuth() *def.HttpRequestDef

func GenReqDefForUpdateRepo

func GenReqDefForUpdateRepo() *def.HttpRequestDef

func GenReqDefForUpdateRepoDomains

func GenReqDefForUpdateRepoDomains() *def.HttpRequestDef

func GenReqDefForUpdateRetention

func GenReqDefForUpdateRetention() *def.HttpRequestDef

func GenReqDefForUpdateTrigger

func GenReqDefForUpdateTrigger() *def.HttpRequestDef

func GenReqDefForUpdateUserRepositoryAuth

func GenReqDefForUpdateUserRepositoryAuth() *def.HttpRequestDef

func SwrClientBuilder

func SwrClientBuilder() *http_client.HcHttpClientBuilder

Types

type SwrClient

type SwrClient struct {
	HcClient *http_client.HcHttpClient
}

func NewSwrClient

func NewSwrClient(hcClient *http_client.HcHttpClient) *SwrClient

func (*SwrClient) CreateImageSyncRepo

创建镜像自动同步任务

创建镜像自动同步任务

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateManualImageSyncRepo

手动同步镜像

手动同步镜像

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateNamespace

func (c *SwrClient) CreateNamespace(request *model.CreateNamespaceRequest) (*model.CreateNamespaceResponse, error)

创建组织

创建组织

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateNamespaceAuth

创建组织权限

创建组织权限

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateRepo

func (c *SwrClient) CreateRepo(request *model.CreateRepoRequest) (*model.CreateRepoResponse, error)

在组织下创建镜像仓库

在组织下创建镜像仓库。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateRepoDomains

func (c *SwrClient) CreateRepoDomains(request *model.CreateRepoDomainsRequest) (*model.CreateRepoDomainsResponse, error)

创建共享帐号

创建共享帐号。镜像上传后,您可以共享私有镜像给其他帐号,并授予下载该镜像的权限。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateRetention

func (c *SwrClient) CreateRetention(request *model.CreateRetentionRequest) (*model.CreateRetentionResponse, error)

创建镜像老化规则

创建镜像老化规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateSecret

func (c *SwrClient) CreateSecret(request *model.CreateSecretRequest) (*model.CreateSecretResponse, error)

生成临时登录指令

调用该接口,通过获取响应消息头的X-Swr-Dockerlogin的值及响应消息体的host值,可生成临时登录指令。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateTrigger

func (c *SwrClient) CreateTrigger(request *model.CreateTriggerRequest) (*model.CreateTriggerResponse, error)

创建触发器

创建触发器

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) CreateUserRepositoryAuth

创建镜像权限

创建镜像权限

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteImageSyncRepo

删除镜像自动同步任务

删除镜像自动同步任务

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteNamespaceAuth

删除组织权限

删除组织权限

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteNamespaces

func (c *SwrClient) DeleteNamespaces(request *model.DeleteNamespacesRequest) (*model.DeleteNamespacesResponse, error)

删除组织

删除组织

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteRepo

func (c *SwrClient) DeleteRepo(request *model.DeleteRepoRequest) (*model.DeleteRepoResponse, error)

删除组织下的镜像仓库

删除组织下的镜像仓库。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteRepoDomains

func (c *SwrClient) DeleteRepoDomains(request *model.DeleteRepoDomainsRequest) (*model.DeleteRepoDomainsResponse, error)

删除共享帐号

删除共享帐号

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteRepoTag

func (c *SwrClient) DeleteRepoTag(request *model.DeleteRepoTagRequest) (*model.DeleteRepoTagResponse, error)

删除指定tag的镜像

删除镜像仓库中指定tag的镜像

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteRetention

func (c *SwrClient) DeleteRetention(request *model.DeleteRetentionRequest) (*model.DeleteRetentionResponse, error)

删除镜像老化规则

删除镜像老化规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteTrigger

func (c *SwrClient) DeleteTrigger(request *model.DeleteTriggerRequest) (*model.DeleteTriggerResponse, error)

删除触发器

删除触发器

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) DeleteUserRepositoryAuth

删除镜像权限

删除镜像权限

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListApiVersions

func (c *SwrClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)

查询所有API版本信息

查询所有API版本信息

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListImageAutoSyncReposDetails

获取镜像自动同步任务信息

获取镜像自动同步任务列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListNamespaces

func (c *SwrClient) ListNamespaces(request *model.ListNamespacesRequest) (*model.ListNamespacesResponse, error)

查询组织列表

查询组织列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListQuotas added in v0.0.71

func (c *SwrClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)

获取配额信息

获取配额信息

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListRepoDomains

func (c *SwrClient) ListRepoDomains(request *model.ListRepoDomainsRequest) (*model.ListRepoDomainsResponse, error)

获取共享帐号列表

获取共享帐号列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListReposDetails

func (c *SwrClient) ListReposDetails(request *model.ListReposDetailsRequest) (*model.ListReposDetailsResponse, error)

查询镜像仓库列表

查询镜像仓库列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListRepositoryTags

func (c *SwrClient) ListRepositoryTags(request *model.ListRepositoryTagsRequest) (*model.ListRepositoryTagsResponse, error)

查询镜像tag列表

查询镜像tag列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListRetentionHistories

获取镜像老化记录

获取镜像老化记录

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListRetentions

func (c *SwrClient) ListRetentions(request *model.ListRetentionsRequest) (*model.ListRetentionsResponse, error)

获取镜像老化规则列表

获取镜像老化规则列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListSharedReposDetails

查询共享镜像列表

查询共享镜像列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ListTriggersDetails

获取镜像仓库下的触发器列表

获取镜像仓库下的触发器列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowAccessDomain

func (c *SwrClient) ShowAccessDomain(request *model.ShowAccessDomainRequest) (*model.ShowAccessDomainResponse, error)

判断共享帐号是否存在

判断共享租户是否存在

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowApiVersion

func (c *SwrClient) ShowApiVersion(request *model.ShowApiVersionRequest) (*model.ShowApiVersionResponse, error)

查询指定API版本信息

查询指定API版本信息

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowNamespace

func (c *SwrClient) ShowNamespace(request *model.ShowNamespaceRequest) (*model.ShowNamespaceResponse, error)

获取组织详情

获取组织详情

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowNamespaceAuth

func (c *SwrClient) ShowNamespaceAuth(request *model.ShowNamespaceAuthRequest) (*model.ShowNamespaceAuthResponse, error)

查询组织权限

查询组织权限

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowRepository

func (c *SwrClient) ShowRepository(request *model.ShowRepositoryRequest) (*model.ShowRepositoryResponse, error)

查询镜像仓库概要信息

查询镜像仓库概要信息

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowRetention

func (c *SwrClient) ShowRetention(request *model.ShowRetentionRequest) (*model.ShowRetentionResponse, error)

获取镜像老化规则记录

获取镜像老化规则记录

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowSyncJob

func (c *SwrClient) ShowSyncJob(request *model.ShowSyncJobRequest) (*model.ShowSyncJobResponse, error)

获取镜像同步任务信息

获取镜像同步任务信息

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowTrigger

func (c *SwrClient) ShowTrigger(request *model.ShowTriggerRequest) (*model.ShowTriggerResponse, error)

获取触发器详情

获取触发器详情

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) ShowUserRepositoryAuth

查询镜像权限

查询镜像权限

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) UpdateNamespaceAuth

更新组织权限

更新组织权限

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) UpdateRepo

func (c *SwrClient) UpdateRepo(request *model.UpdateRepoRequest) (*model.UpdateRepoResponse, error)

更新镜像仓库的概要信息

更新租户命名空间下的镜像概要信息,包括镜像类型、是否公有、描述信息

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) UpdateRepoDomains

func (c *SwrClient) UpdateRepoDomains(request *model.UpdateRepoDomainsRequest) (*model.UpdateRepoDomainsResponse, error)

更新共享帐号

更新共享帐号

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) UpdateRetention

func (c *SwrClient) UpdateRetention(request *model.UpdateRetentionRequest) (*model.UpdateRetentionResponse, error)

修改镜像老化规则

修改镜像老化规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) UpdateTrigger

func (c *SwrClient) UpdateTrigger(request *model.UpdateTriggerRequest) (*model.UpdateTriggerResponse, error)

更新触发器配置

更新触发器配置

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*SwrClient) UpdateUserRepositoryAuth

更新镜像权限

更新镜像权限

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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