v2

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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

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 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

创建镜像自动同步任务

func (*SwrClient) CreateManualImageSyncRepo

手动同步镜像

func (*SwrClient) CreateNamespace

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

创建组织

func (*SwrClient) CreateNamespaceAuth

创建组织权限

func (*SwrClient) CreateRepo

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

在组织下创建镜像仓库。

func (*SwrClient) CreateRepoDomains

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

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

func (*SwrClient) CreateRetention

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

创建镜像老化规则

func (*SwrClient) CreateSecret

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

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

func (*SwrClient) CreateTrigger

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

创建触发器

func (*SwrClient) CreateUserRepositoryAuth

创建镜像权限

func (*SwrClient) DeleteImageSyncRepo

删除镜像自动同步任务

func (*SwrClient) DeleteNamespaceAuth

删除组织权限

func (*SwrClient) DeleteNamespaces

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

删除组织

func (*SwrClient) DeleteRepo

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

删除组织下的镜像仓库。

func (*SwrClient) DeleteRepoDomains

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

删除共享账号

func (*SwrClient) DeleteRepoTag

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

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

func (*SwrClient) DeleteRetention

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

删除镜像老化规则

func (*SwrClient) DeleteTrigger

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

删除触发器

func (*SwrClient) DeleteUserRepositoryAuth

删除镜像权限

func (*SwrClient) ListApiVersions

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

查询所有API版本信息

func (*SwrClient) ListImageAutoSyncReposDetails

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

func (*SwrClient) ListNamespaces

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

查询组织列表

func (*SwrClient) ListRepoDomains

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

获取共享账号列表

func (*SwrClient) ListReposDetails

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

查询镜像列表

func (*SwrClient) ListRepositoryTags

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

查询镜像tag列表

func (*SwrClient) ListRetentionHistories

获取镜像老化记录

func (*SwrClient) ListRetentions

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

获取镜像老化规则列表

func (*SwrClient) ListSharedReposDetails

查询共享镜像列表

func (*SwrClient) ListTriggersDetails

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

func (*SwrClient) ShowAccessDomain

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

判断共享租户是否存在

func (*SwrClient) ShowApiVersion

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

查询指定API版本信息

func (*SwrClient) ShowNamespace

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

获取组织详情

func (*SwrClient) ShowNamespaceAuth

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

查询组织权限

func (*SwrClient) ShowRepository

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

查询镜像概要信息

func (*SwrClient) ShowRetention

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

获取镜像老化规则记录

func (*SwrClient) ShowSyncJob

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

获取镜像同步任务信息

func (*SwrClient) ShowTrigger

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

获取触发器详情

func (*SwrClient) ShowUserRepositoryAuth

查询镜像权限

func (*SwrClient) UpdateNamespaceAuth

更新组织权限

func (*SwrClient) UpdateRepo

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

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

func (*SwrClient) UpdateRepoDomains

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

更新共享账号

func (*SwrClient) UpdateRetention

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

修改镜像老化规则

func (*SwrClient) UpdateTrigger

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

更新触发器配置

func (*SwrClient) UpdateUserRepositoryAuth

更新镜像权限

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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