Documentation ¶
Index ¶
- Constants
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
- func (client *Client) CreateNamespaceWithCallback(request *CreateNamespaceRequest, ...) <-chan int
- func (client *Client) CreateNamespaceWithChan(request *CreateNamespaceRequest) (<-chan *CreateNamespaceResponse, <-chan error)
- func (client *Client) CreateRepo(request *CreateRepoRequest) (response *CreateRepoResponse, err error)
- func (client *Client) CreateRepoWithCallback(request *CreateRepoRequest, ...) <-chan int
- func (client *Client) CreateRepoWithChan(request *CreateRepoRequest) (<-chan *CreateRepoResponse, <-chan error)
- func (client *Client) DeleteImage(request *DeleteImageRequest) (response *DeleteImageResponse, err error)
- func (client *Client) DeleteImageWithCallback(request *DeleteImageRequest, ...) <-chan int
- func (client *Client) DeleteImageWithChan(request *DeleteImageRequest) (<-chan *DeleteImageResponse, <-chan error)
- func (client *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
- func (client *Client) DeleteNamespaceWithCallback(request *DeleteNamespaceRequest, ...) <-chan int
- func (client *Client) DeleteNamespaceWithChan(request *DeleteNamespaceRequest) (<-chan *DeleteNamespaceResponse, <-chan error)
- func (client *Client) DeleteRepo(request *DeleteRepoRequest) (response *DeleteRepoResponse, err error)
- func (client *Client) DeleteRepoWithCallback(request *DeleteRepoRequest, ...) <-chan int
- func (client *Client) DeleteRepoWithChan(request *DeleteRepoRequest) (<-chan *DeleteRepoResponse, <-chan error)
- func (client *Client) GetAuthorizationToken(request *GetAuthorizationTokenRequest) (response *GetAuthorizationTokenResponse, err error)
- func (client *Client) GetAuthorizationTokenWithCallback(request *GetAuthorizationTokenRequest, ...) <-chan int
- func (client *Client) GetAuthorizationTokenWithChan(request *GetAuthorizationTokenRequest) (<-chan *GetAuthorizationTokenResponse, <-chan error)
- func (client *Client) GetImageManifest(request *GetImageManifestRequest) (response *GetImageManifestResponse, err error)
- func (client *Client) GetImageManifestWithCallback(request *GetImageManifestRequest, ...) <-chan int
- func (client *Client) GetImageManifestWithChan(request *GetImageManifestRequest) (<-chan *GetImageManifestResponse, <-chan error)
- func (client *Client) GetNamespace(request *GetNamespaceRequest) (response *GetNamespaceResponse, err error)
- func (client *Client) GetNamespaceList(request *GetNamespaceListRequest) (response *GetNamespaceListResponse, err error)
- func (client *Client) GetNamespaceListWithCallback(request *GetNamespaceListRequest, ...) <-chan int
- func (client *Client) GetNamespaceListWithChan(request *GetNamespaceListRequest) (<-chan *GetNamespaceListResponse, <-chan error)
- func (client *Client) GetNamespaceWithCallback(request *GetNamespaceRequest, ...) <-chan int
- func (client *Client) GetNamespaceWithChan(request *GetNamespaceRequest) (<-chan *GetNamespaceResponse, <-chan error)
- func (client *Client) GetRepo(request *GetRepoRequest) (response *GetRepoResponse, err error)
- func (client *Client) GetRepoList(request *GetRepoListRequest) (response *GetRepoListResponse, err error)
- func (client *Client) GetRepoListByNamespace(request *GetRepoListByNamespaceRequest) (response *GetRepoListByNamespaceResponse, err error)
- func (client *Client) GetRepoListByNamespaceWithCallback(request *GetRepoListByNamespaceRequest, ...) <-chan int
- func (client *Client) GetRepoListByNamespaceWithChan(request *GetRepoListByNamespaceRequest) (<-chan *GetRepoListByNamespaceResponse, <-chan error)
- func (client *Client) GetRepoListWithCallback(request *GetRepoListRequest, ...) <-chan int
- func (client *Client) GetRepoListWithChan(request *GetRepoListRequest) (<-chan *GetRepoListResponse, <-chan error)
- func (client *Client) GetRepoTags(request *GetRepoTagsRequest) (response *GetRepoTagsResponse, err error)
- func (client *Client) GetRepoTagsWithCallback(request *GetRepoTagsRequest, ...) <-chan int
- func (client *Client) GetRepoTagsWithChan(request *GetRepoTagsRequest) (<-chan *GetRepoTagsResponse, <-chan error)
- func (client *Client) GetRepoWithCallback(request *GetRepoRequest, callback func(response *GetRepoResponse, err error)) <-chan int
- func (client *Client) GetRepoWithChan(request *GetRepoRequest) (<-chan *GetRepoResponse, <-chan error)
- func (client *Client) QueryImageLayerInfo(request *QueryImageLayerInfoRequest) (response *QueryImageLayerInfoResponse, err error)
- func (client *Client) QueryImageLayerInfoWithCallback(request *QueryImageLayerInfoRequest, ...) <-chan int
- func (client *Client) QueryImageLayerInfoWithChan(request *QueryImageLayerInfoRequest) (<-chan *QueryImageLayerInfoResponse, <-chan error)
- func (client *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
- func (client *Client) UpdateNamespaceWithCallback(request *UpdateNamespaceRequest, ...) <-chan int
- func (client *Client) UpdateNamespaceWithChan(request *UpdateNamespaceRequest) (<-chan *UpdateNamespaceResponse, <-chan error)
- func (client *Client) UpdateRepo(request *UpdateRepoRequest) (response *UpdateRepoResponse, err error)
- func (client *Client) UpdateRepoWithCallback(request *UpdateRepoRequest, ...) <-chan int
- func (client *Client) UpdateRepoWithChan(request *UpdateRepoRequest) (<-chan *UpdateRepoResponse, <-chan error)
- type CreateNamespaceRequest
- type CreateNamespaceRequestBody
- type CreateNamespaceResponse
- type CreateRepoRequest
- type CreateRepoRequestBody
- type CreateRepoRequestBodyRepoSource
- type CreateRepoResponse
- type DeleteImageRequest
- type DeleteImageResponse
- type DeleteNamespaceRequest
- type DeleteNamespaceResponse
- type DeleteRepoRequest
- type DeleteRepoResponse
- type GetAuthorizationTokenRequest
- type GetAuthorizationTokenResponse
- type GetImageManifestRequest
- type GetImageManifestResponse
- type GetNamespaceListRequest
- type GetNamespaceListResponse
- type GetNamespaceRequest
- type GetNamespaceResponse
- type GetRepoListByNamespaceRequest
- type GetRepoListByNamespaceResponse
- type GetRepoListRequest
- type GetRepoListResponse
- type GetRepoRequest
- type GetRepoResponse
- type GetRepoTagsRequest
- type GetRepoTagsResponse
- type QueryImageLayerInfoRequest
- type QueryImageLayerInfoResponse
- type UpdateNamespaceRequest
- type UpdateNamespaceRequestBody
- type UpdateNamespaceResponse
- type UpdateRepoRequest
- type UpdateRepoRequestBody
- type UpdateRepoResponse
Constants ¶
const ( // NamespaceVisibilityPublic sets the namespace public NamespaceVisibilityPublic namespaceVisibility = "PUBLIC" // NamespaceVisibilityPrivate sets the namespace private NamespaceVisibilityPrivate namespaceVisibility = "PRIVATE" )
const ( // RepoTypePublic sets the Repo public RepoTypePublic repoType = "PUBLIC" // RepoTypePrivate sets the Repo private RepoTypePrivate repoType = "PRIVATE" )
const ( // RepoBuildTypeAutoBuild sets the build type to auto RepoBuildTypeAutoBuild repoBuildType = "AUTO_BUILD" // RepoBuildTypeManual sets the build type to manual RepoBuildTypeManual repoBuildType = "MANUAL" )
const ( // RepoStatusAll sets the Repo status to all RepoStatusAll repoStatus = "ALL" // RepoStatusNormal sets the Repo status to normal RepoStatusNormal repoStatus = "NORMAL" )
const ( // SourceRepoTypeCode sets the repository source type to Aliyun SourceRepoTypeCode sourceRepoType = "CODE" // SourceRepoTypeGitHub sets the repository source type to GitHub SourceRepoTypeGitHub sourceRepoType = "GITHUB" // SourceRepoTypeBitbucket sets the repository source type to Bitbucket SourceRepoTypeBitbucket sourceRepoType = "BITBUCKET" // SourceRepoTypeGitlab sets the repository source type to GitLab SourceRepoTypeGitlab sourceRepoType = "GITLAB" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClientWithAccessKey ¶
func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html
func NewClientWithOptions ¶
func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client
func NewClientWithRamRoleArn ¶
func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html
func NewClientWithRsaKeyPair ¶
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html
func (*Client) CreateNamespace ¶
func (client *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
CreateNamespace invokes the cr.CreateNamespace API synchronously api document: https://help.aliyun.com/api/cr/createnamespace.html
func (*Client) CreateNamespaceWithCallback ¶
func (client *Client) CreateNamespaceWithCallback(request *CreateNamespaceRequest, callback func(response *CreateNamespaceResponse, err error)) <-chan int
CreateNamespaceWithCallback invokes the cr.CreateNamespace API asynchronously api document: https://help.aliyun.com/api/cr/createnamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) CreateNamespaceWithChan ¶
func (client *Client) CreateNamespaceWithChan(request *CreateNamespaceRequest) (<-chan *CreateNamespaceResponse, <-chan error)
CreateNamespaceWithChan invokes the cr.CreateNamespace API asynchronously api document: https://help.aliyun.com/api/cr/createnamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) CreateRepo ¶
func (client *Client) CreateRepo(request *CreateRepoRequest) (response *CreateRepoResponse, err error)
CreateRepo invokes the cr.CreateRepo API synchronously api document: https://help.aliyun.com/api/cr/createrepo.html
func (*Client) CreateRepoWithCallback ¶
func (client *Client) CreateRepoWithCallback(request *CreateRepoRequest, callback func(response *CreateRepoResponse, err error)) <-chan int
CreateRepoWithCallback invokes the cr.CreateRepo API asynchronously api document: https://help.aliyun.com/api/cr/createrepo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) CreateRepoWithChan ¶
func (client *Client) CreateRepoWithChan(request *CreateRepoRequest) (<-chan *CreateRepoResponse, <-chan error)
CreateRepoWithChan invokes the cr.CreateRepo API asynchronously api document: https://help.aliyun.com/api/cr/createrepo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteImage ¶
func (client *Client) DeleteImage(request *DeleteImageRequest) (response *DeleteImageResponse, err error)
DeleteImage invokes the cr.DeleteImage API synchronously api document: https://help.aliyun.com/api/cr/delete-image-version.html
func (*Client) DeleteImageWithCallback ¶
func (client *Client) DeleteImageWithCallback(request *DeleteImageRequest, callback func(response *DeleteImageResponse, err error)) <-chan int
DeleteImageWithCallback invokes the cr.DeleteImage API asynchronously api document: https://help.aliyun.com/api/cr/delete-image-version.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteImageWithChan ¶
func (client *Client) DeleteImageWithChan(request *DeleteImageRequest) (<-chan *DeleteImageResponse, <-chan error)
DeleteImageWithChan invokes the cr.DeleteImage API asynchronously api document: https://help.aliyun.com/api/cr/delete-image-version.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteNamespace ¶
func (client *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
DeleteNamespace invokes the cr.DeleteNamespace API synchronously api document: https://help.aliyun.com/api/cr/deletenamespace.html
func (*Client) DeleteNamespaceWithCallback ¶
func (client *Client) DeleteNamespaceWithCallback(request *DeleteNamespaceRequest, callback func(response *DeleteNamespaceResponse, err error)) <-chan int
DeleteNamespaceWithCallback invokes the cr.DeleteNamespace API asynchronously api document: https://help.aliyun.com/api/cr/deletenamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteNamespaceWithChan ¶
func (client *Client) DeleteNamespaceWithChan(request *DeleteNamespaceRequest) (<-chan *DeleteNamespaceResponse, <-chan error)
DeleteNamespaceWithChan invokes the cr.DeleteNamespace API asynchronously api document: https://help.aliyun.com/api/cr/deletenamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteRepo ¶
func (client *Client) DeleteRepo(request *DeleteRepoRequest) (response *DeleteRepoResponse, err error)
DeleteRepo invokes the cr.DeleteRepo API synchronously api document: https://help.aliyun.com/api/cr/deleterepo.html
func (*Client) DeleteRepoWithCallback ¶
func (client *Client) DeleteRepoWithCallback(request *DeleteRepoRequest, callback func(response *DeleteRepoResponse, err error)) <-chan int
DeleteRepoWithCallback invokes the cr.DeleteRepo API asynchronously api document: https://help.aliyun.com/api/cr/deleterepo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteRepoWithChan ¶
func (client *Client) DeleteRepoWithChan(request *DeleteRepoRequest) (<-chan *DeleteRepoResponse, <-chan error)
DeleteRepoWithChan invokes the cr.DeleteRepo API asynchronously api document: https://help.aliyun.com/api/cr/deleterepo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetAuthorizationToken ¶
func (client *Client) GetAuthorizationToken(request *GetAuthorizationTokenRequest) (response *GetAuthorizationTokenResponse, err error)
GetAuthorizationToken invokes the cr.GetAuthorizationToken API synchronously api document: https://help.aliyun.com/api/cr/getauthorizationtoken.html
func (*Client) GetAuthorizationTokenWithCallback ¶
func (client *Client) GetAuthorizationTokenWithCallback(request *GetAuthorizationTokenRequest, callback func(response *GetAuthorizationTokenResponse, err error)) <-chan int
GetAuthorizationTokenWithCallback invokes the cr.GetAuthorizationToken API asynchronously api document: https://help.aliyun.com/api/cr/getauthorizationtoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetAuthorizationTokenWithChan ¶
func (client *Client) GetAuthorizationTokenWithChan(request *GetAuthorizationTokenRequest) (<-chan *GetAuthorizationTokenResponse, <-chan error)
GetAuthorizationTokenWithChan invokes the cr.GetAuthorizationToken API asynchronously api document: https://help.aliyun.com/api/cr/getauthorizationtoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetImageManifest ¶
func (client *Client) GetImageManifest(request *GetImageManifestRequest) (response *GetImageManifestResponse, err error)
GetImageManifest invokes the cr.GetImageManifest API synchronously api document: https://help.aliyun.com/api/cr/getimagemanifest.html
func (*Client) GetImageManifestWithCallback ¶
func (client *Client) GetImageManifestWithCallback(request *GetImageManifestRequest, callback func(response *GetImageManifestResponse, err error)) <-chan int
GetImageManifestWithCallback invokes the cr.GetImageManifest API asynchronously api document: https://help.aliyun.com/api/cr/getimagemanifest.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetImageManifestWithChan ¶
func (client *Client) GetImageManifestWithChan(request *GetImageManifestRequest) (<-chan *GetImageManifestResponse, <-chan error)
GetImageManifestWithChan invokes the cr.GetImageManifest API asynchronously api document: https://help.aliyun.com/api/cr/getimagemanifest.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetNamespace ¶
func (client *Client) GetNamespace(request *GetNamespaceRequest) (response *GetNamespaceResponse, err error)
GetNamespace invokes the cr.GetNamespace API synchronously api document: https://help.aliyun.com/api/cr/getnamespace.html
func (*Client) GetNamespaceList ¶
func (client *Client) GetNamespaceList(request *GetNamespaceListRequest) (response *GetNamespaceListResponse, err error)
GetNamespaceList invokes the cr.GetNamespaceList API synchronously api document: https://help.aliyun.com/api/cr/getnamespacelist.html
func (*Client) GetNamespaceListWithCallback ¶
func (client *Client) GetNamespaceListWithCallback(request *GetNamespaceListRequest, callback func(response *GetNamespaceListResponse, err error)) <-chan int
GetNamespaceListWithCallback invokes the cr.GetNamespaceList API asynchronously api document: https://help.aliyun.com/api/cr/getnamespacelist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetNamespaceListWithChan ¶
func (client *Client) GetNamespaceListWithChan(request *GetNamespaceListRequest) (<-chan *GetNamespaceListResponse, <-chan error)
GetNamespaceListWithChan invokes the cr.GetNamespaceList API asynchronously api document: https://help.aliyun.com/api/cr/getnamespacelist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetNamespaceWithCallback ¶
func (client *Client) GetNamespaceWithCallback(request *GetNamespaceRequest, callback func(response *GetNamespaceResponse, err error)) <-chan int
GetNamespaceWithCallback invokes the cr.GetNamespace API asynchronously api document: https://help.aliyun.com/api/cr/getnamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetNamespaceWithChan ¶
func (client *Client) GetNamespaceWithChan(request *GetNamespaceRequest) (<-chan *GetNamespaceResponse, <-chan error)
GetNamespaceWithChan invokes the cr.GetNamespace API asynchronously api document: https://help.aliyun.com/api/cr/getnamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetRepo ¶
func (client *Client) GetRepo(request *GetRepoRequest) (response *GetRepoResponse, err error)
GetRepo invokes the cr.GetRepo API synchronously api document: https://help.aliyun.com/api/cr/getrepo.html
func (*Client) GetRepoList ¶
func (client *Client) GetRepoList(request *GetRepoListRequest) (response *GetRepoListResponse, err error)
GetRepoList invokes the cr.GetRepoList API synchronously api document: https://help.aliyun.com/api/cr/getrepolist.html
func (*Client) GetRepoListByNamespace ¶
func (client *Client) GetRepoListByNamespace(request *GetRepoListByNamespaceRequest) (response *GetRepoListByNamespaceResponse, err error)
GetRepoListByNamespace invokes the cr.GetRepoListByNamespace API synchronously api document: https://help.aliyun.com/api/cr/getrepolistbynamespace.html
func (*Client) GetRepoListByNamespaceWithCallback ¶
func (client *Client) GetRepoListByNamespaceWithCallback(request *GetRepoListByNamespaceRequest, callback func(response *GetRepoListByNamespaceResponse, err error)) <-chan int
GetRepoListByNamespaceWithCallback invokes the cr.GetRepoListByNamespace API asynchronously api document: https://help.aliyun.com/api/cr/getrepolistbynamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetRepoListByNamespaceWithChan ¶
func (client *Client) GetRepoListByNamespaceWithChan(request *GetRepoListByNamespaceRequest) (<-chan *GetRepoListByNamespaceResponse, <-chan error)
GetRepoListByNamespaceWithChan invokes the cr.GetRepoListByNamespace API asynchronously api document: https://help.aliyun.com/api/cr/getrepolistbynamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetRepoListWithCallback ¶
func (client *Client) GetRepoListWithCallback(request *GetRepoListRequest, callback func(response *GetRepoListResponse, err error)) <-chan int
GetRepoListWithCallback invokes the cr.GetRepoList API asynchronously api document: https://help.aliyun.com/api/cr/getrepolist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetRepoListWithChan ¶
func (client *Client) GetRepoListWithChan(request *GetRepoListRequest) (<-chan *GetRepoListResponse, <-chan error)
GetRepoListWithChan invokes the cr.GetRepoList API asynchronously api document: https://help.aliyun.com/api/cr/getrepolist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetRepoTags ¶
func (client *Client) GetRepoTags(request *GetRepoTagsRequest) (response *GetRepoTagsResponse, err error)
GetRepoTags invokes the cr.GetRepoTags API synchronously api document: https://help.aliyun.com/api/cr/getrepotags.html
func (*Client) GetRepoTagsWithCallback ¶
func (client *Client) GetRepoTagsWithCallback(request *GetRepoTagsRequest, callback func(response *GetRepoTagsResponse, err error)) <-chan int
GetRepoTagsWithCallback invokes the cr.GetRepoTags API asynchronously api document: https://help.aliyun.com/api/cr/getrepotags.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetRepoTagsWithChan ¶
func (client *Client) GetRepoTagsWithChan(request *GetRepoTagsRequest) (<-chan *GetRepoTagsResponse, <-chan error)
GetRepoTagsWithChan invokes the cr.GetRepoTags API asynchronously api document: https://help.aliyun.com/api/cr/getrepotags.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetRepoWithCallback ¶
func (client *Client) GetRepoWithCallback(request *GetRepoRequest, callback func(response *GetRepoResponse, err error)) <-chan int
GetRepoWithCallback invokes the cr.GetRepo API asynchronously api document: https://help.aliyun.com/api/cr/getrepo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetRepoWithChan ¶
func (client *Client) GetRepoWithChan(request *GetRepoRequest) (<-chan *GetRepoResponse, <-chan error)
GetRepoWithChan invokes the cr.GetRepo API asynchronously api document: https://help.aliyun.com/api/cr/getrepo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) QueryImageLayerInfo ¶
func (client *Client) QueryImageLayerInfo(request *QueryImageLayerInfoRequest) (response *QueryImageLayerInfoResponse, err error)
QueryImageLayerInfo invokes the cr.QueryImageLayerInfo API synchronously api document: https://help.aliyun.com/api/cr/query-image-layer-info.html
func (*Client) QueryImageLayerInfoWithCallback ¶
func (client *Client) QueryImageLayerInfoWithCallback(request *QueryImageLayerInfoRequest, callback func(response *QueryImageLayerInfoResponse, err error)) <-chan int
QueryImageLayerInfoWithCallback invokes the cr.QueryImageLayerInfo API asynchronously api document: https://help.aliyun.com/api/cr/query-image-layer-info.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) QueryImageLayerInfoWithChan ¶
func (client *Client) QueryImageLayerInfoWithChan(request *QueryImageLayerInfoRequest) (<-chan *QueryImageLayerInfoResponse, <-chan error)
QueryImageLayerInfoWithChan invokes the cr.QueryImageLayerInfo API asynchronously api document: https://help.aliyun.com/api/cr/query-image-layer-info.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateNamespace ¶
func (client *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
UpdateNamespace invokes the cr.UpdateNamespace API synchronously api document: https://help.aliyun.com/api/cr/updatenamespace.html
func (*Client) UpdateNamespaceWithCallback ¶
func (client *Client) UpdateNamespaceWithCallback(request *UpdateNamespaceRequest, callback func(response *UpdateNamespaceResponse, err error)) <-chan int
UpdateNamespaceWithCallback invokes the cr.UpdateNamespace API asynchronously api document: https://help.aliyun.com/api/cr/updatenamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateNamespaceWithChan ¶
func (client *Client) UpdateNamespaceWithChan(request *UpdateNamespaceRequest) (<-chan *UpdateNamespaceResponse, <-chan error)
UpdateNamespaceWithChan invokes the cr.UpdateNamespace API asynchronously api document: https://help.aliyun.com/api/cr/updatenamespace.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateRepo ¶
func (client *Client) UpdateRepo(request *UpdateRepoRequest) (response *UpdateRepoResponse, err error)
UpdateRepo invokes the cr.UpdateRepo API synchronously api document: https://help.aliyun.com/api/cr/updaterepo.html
func (*Client) UpdateRepoWithCallback ¶
func (client *Client) UpdateRepoWithCallback(request *UpdateRepoRequest, callback func(response *UpdateRepoResponse, err error)) <-chan int
UpdateRepoWithCallback invokes the cr.UpdateRepo API asynchronously api document: https://help.aliyun.com/api/cr/updaterepo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UpdateRepoWithChan ¶
func (client *Client) UpdateRepoWithChan(request *UpdateRepoRequest) (<-chan *UpdateRepoResponse, <-chan error)
UpdateRepoWithChan invokes the cr.UpdateRepo API asynchronously api document: https://help.aliyun.com/api/cr/updaterepo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
type CreateNamespaceRequest ¶
type CreateNamespaceRequest struct {
*requests.RoaRequest
}
CreateNamespaceRequest is the request struct for api CreateNamespace
func CreateCreateNamespaceRequest ¶
func CreateCreateNamespaceRequest() (request *CreateNamespaceRequest)
CreateCreateNamespaceRequest creates a request to invoke CreateNamespace API
type CreateNamespaceRequestBody ¶
type CreateNamespaceRequestBody struct { Namespace struct { Namespace string `json:"Namespace"` } `json:"Namespace"` }
CreateNamespaceRequestBody is the request body struct for api CreateNamespace
func NewCreateNamespaceRequestBody ¶
func NewCreateNamespaceRequestBody(namespace string) *CreateNamespaceRequestBody
NewCreateNamespaceRequestBody creates a request body
func (*CreateNamespaceRequestBody) Marshal ¶
func (cnrb *CreateNamespaceRequestBody) Marshal() (body []byte, err error)
Marshal returns the JSON encoding of request body
type CreateNamespaceResponse ¶
type CreateNamespaceResponse struct {
*responses.BaseResponse
}
CreateNamespaceResponse is the response struct for api CreateNamespace
func CreateCreateNamespaceResponse ¶
func CreateCreateNamespaceResponse() (response *CreateNamespaceResponse)
CreateCreateNamespaceResponse creates a response to parse from CreateNamespace response
type CreateRepoRequest ¶
type CreateRepoRequest struct {
*requests.RoaRequest
}
CreateRepoRequest is the request struct for api CreateRepo
func CreateCreateRepoRequest ¶
func CreateCreateRepoRequest() (request *CreateRepoRequest)
CreateCreateRepoRequest creates a request to invoke CreateRepo API
type CreateRepoRequestBody ¶
type CreateRepoRequestBody struct { Repo struct { RepoNamespace string `json:"RepoNamespace"` RepoName string `json:"RepoName"` Summary string `json:"Summary"` Detail string `json:"Detail"` RepoType repoType `json:"RepoType"` Region string `json:"Region,omitempty"` RepoBuildType repoBuildType `json:"RepoBuildType,omitempty"` } `json:"Repo"` RepoSource *CreateRepoRequestBodyRepoSource `json:"RepoSource,omitempty"` }
CreateRepoRequestBody is the request body struct for api CreateRepo
func NewCreateRepoRequestBody ¶
func NewCreateRepoRequestBody(namespace, name, summary, detail string, rtype repoType) *CreateRepoRequestBody
NewCreateRepoRequestBody creates a request body
func (*CreateRepoRequestBody) Marshal ¶
func (crrb *CreateRepoRequestBody) Marshal() (body []byte, err error)
Marshal returns the JSON encoding of the request body
func (*CreateRepoRequestBody) SetRepoBuildConfig ¶
func (crrb *CreateRepoRequestBody) SetRepoBuildConfig(isAutoBuild, isOversea, isDisableCache bool)
SetRepoBuildConfig sets the repository build config
func (*CreateRepoRequestBody) SetRepoSource ¶
func (crrb *CreateRepoRequestBody) SetRepoSource(stype sourceRepoType, namespace, name string)
SetRepoSource sets the repository source
type CreateRepoRequestBodyRepoSource ¶
type CreateRepoRequestBodyRepoSource struct { Source struct { SourceRepoType sourceRepoType `json:"SourceRepoType"` SourceRepoNamespace string `json:"SourceRepoNamespace"` SourceRepoName string `json:"SourceRepoName"` } BuildConfig struct { IsAutoBuild bool `json:"IsAutoBuild"` IsOversea bool `json:"IsOversea"` IsDisableCache bool `json:"IsDisableCache"` } `json:"BuildConfig"` }
CreateRepoRequestBodyRepoSource is the part of request body struct for api CreateRepo
type CreateRepoResponse ¶
type CreateRepoResponse struct {
*responses.BaseResponse
}
CreateRepoResponse is the response struct for api CreateRepo
func CreateCreateRepoResponse ¶
func CreateCreateRepoResponse() (response *CreateRepoResponse)
CreateCreateRepoResponse creates a response to parse from CreateRepo response
type DeleteImageRequest ¶
type DeleteImageRequest struct { *requests.RoaRequest RepoNamespace string `position:"Path" name:"RepoNamespace"` RepoName string `position:"Path" name:"RepoName"` Tag string `position:"Path" name:"Tag"` }
DeleteImageRequest is the request struct for api DeleteImage
func CreateDeleteImageRequest ¶
func CreateDeleteImageRequest() (request *DeleteImageRequest)
CreateDeleteImageRequest creates a request to invoke DeleteImage API
type DeleteImageResponse ¶
type DeleteImageResponse struct {
*responses.BaseResponse
}
DeleteImageResponse is the response struct for api DeleteImage
func CreateDeleteImageResponse ¶
func CreateDeleteImageResponse() (response *DeleteImageResponse)
CreateDeleteImageResponse creates a response to parse from DeleteImage response
type DeleteNamespaceRequest ¶
type DeleteNamespaceRequest struct { *requests.RoaRequest Namespace string `position:"Path" name:"Namespace"` }
DeleteNamespaceRequest is the request struct for api DeleteNamespace
func CreateDeleteNamespaceRequest ¶
func CreateDeleteNamespaceRequest() (request *DeleteNamespaceRequest)
CreateDeleteNamespaceRequest creates a request to invoke DeleteNamespace API
type DeleteNamespaceResponse ¶
type DeleteNamespaceResponse struct {
*responses.BaseResponse
}
DeleteNamespaceResponse is the response struct for api DeleteNamespace
func CreateDeleteNamespaceResponse ¶
func CreateDeleteNamespaceResponse() (response *DeleteNamespaceResponse)
CreateDeleteNamespaceResponse creates a response to parse from DeleteNamespace response
type DeleteRepoRequest ¶
type DeleteRepoRequest struct { *requests.RoaRequest RepoNamespace string `position:"Path" name:"RepoNamespace"` RepoName string `position:"Path" name:"RepoName"` }
DeleteRepoRequest is the request struct for api DeleteRepo
func CreateDeleteRepoRequest ¶
func CreateDeleteRepoRequest() (request *DeleteRepoRequest)
CreateDeleteRepoRequest creates a request to invoke DeleteRepo API
type DeleteRepoResponse ¶
type DeleteRepoResponse struct {
*responses.BaseResponse
}
DeleteRepoResponse is the response struct for api DeleteRepo
func CreateDeleteRepoResponse ¶
func CreateDeleteRepoResponse() (response *DeleteRepoResponse)
CreateDeleteRepoResponse creates a response to parse from DeleteRepo response
type GetAuthorizationTokenRequest ¶
type GetAuthorizationTokenRequest struct {
*requests.RoaRequest
}
GetAuthorizationTokenRequest is the request struct for api GetAuthorizationToken
func CreateGetAuthorizationTokenRequest ¶
func CreateGetAuthorizationTokenRequest() (request *GetAuthorizationTokenRequest)
CreateGetAuthorizationTokenRequest creates a request to invoke GetAuthorizationToken API
type GetAuthorizationTokenResponse ¶
type GetAuthorizationTokenResponse struct {
*responses.BaseResponse
}
GetAuthorizationTokenResponse is the response struct for api GetAuthorizationToken
func CreateGetAuthorizationTokenResponse ¶
func CreateGetAuthorizationTokenResponse() (response *GetAuthorizationTokenResponse)
CreateGetAuthorizationTokenResponse creates a response to parse from GetAuthorizationToken response
type GetImageManifestRequest ¶
type GetImageManifestRequest struct { *requests.RoaRequest RepoNamespace string `position:"Path" name:"RepoNamespace"` RepoName string `position:"Path" name:"RepoName"` Tag string `position:"Path" name:"Tag"` }
GetImageManifestRequest is the request struct for api GetImageManifest
func CreateGetImageManifestRequest ¶
func CreateGetImageManifestRequest() (request *GetImageManifestRequest)
CreateGetImageManifestRequest creates a request to invoke GetImageManifest API
type GetImageManifestResponse ¶
type GetImageManifestResponse struct {
*responses.BaseResponse
}
GetImageManifestResponse is the response struct for api GetImageManifest
func CreateGetImageManifestResponse ¶
func CreateGetImageManifestResponse() (response *GetImageManifestResponse)
CreateGetImageManifestResponse creates a response to parse from GetImageManifest response
type GetNamespaceListRequest ¶
type GetNamespaceListRequest struct {
*requests.RoaRequest
}
GetNamespaceListRequest is the request struct for api GetNamespaceList
func CreateGetNamespaceListRequest ¶
func CreateGetNamespaceListRequest() (request *GetNamespaceListRequest)
CreateGetNamespaceListRequest creates a request to invoke GetNamespaceList API
type GetNamespaceListResponse ¶
type GetNamespaceListResponse struct {
*responses.BaseResponse
}
GetNamespaceListResponse is the response struct for api GetNamespaceList
func CreateGetNamespaceListResponse ¶
func CreateGetNamespaceListResponse() (response *GetNamespaceListResponse)
CreateGetNamespaceListResponse creates a response to parse from GetNamespaceList response
type GetNamespaceRequest ¶
type GetNamespaceRequest struct { *requests.RoaRequest Namespace string `position:"Path" name:"Namespace"` }
GetNamespaceRequest is the request struct for api GetNamespace
func CreateGetNamespaceRequest ¶
func CreateGetNamespaceRequest() (request *GetNamespaceRequest)
CreateGetNamespaceRequest creates a request to invoke GetNamespace API
type GetNamespaceResponse ¶
type GetNamespaceResponse struct {
*responses.BaseResponse
}
GetNamespaceResponse is the response struct for api GetNamespace
func CreateGetNamespaceResponse ¶
func CreateGetNamespaceResponse() (response *GetNamespaceResponse)
CreateGetNamespaceResponse creates a response to parse from GetNamespace response
type GetRepoListByNamespaceRequest ¶
type GetRepoListByNamespaceRequest struct { *requests.RoaRequest Status string `position:"Query" name:"Status"` RepoNamespace string `position:"Path" name:"RepoNamespace"` RepoNamePrefix string `position:"Query" name:"RepoNamePrefix"` Page requests.Integer `position:"Query" name:"Page"` PageSize requests.Integer `position:"Query" name:"PageSize"` }
GetRepoListByNamespaceRequest is the request struct for api GetRepoListByNamespace
func CreateGetRepoListByNamespaceRequest ¶
func CreateGetRepoListByNamespaceRequest() (request *GetRepoListByNamespaceRequest)
CreateGetRepoListByNamespaceRequest creates a request to invoke GetRepoListByNamespace API
type GetRepoListByNamespaceResponse ¶
type GetRepoListByNamespaceResponse struct {
*responses.BaseResponse
}
GetRepoListByNamespaceResponse is the response struct for api GetRepoListByNamespace
func CreateGetRepoListByNamespaceResponse ¶
func CreateGetRepoListByNamespaceResponse() (response *GetRepoListByNamespaceResponse)
CreateGetRepoListByNamespaceResponse creates a response to parse from GetRepoListByNamespace response
type GetRepoListRequest ¶
type GetRepoListRequest struct { *requests.RoaRequest Status string `position:"Query" name:"Status"` RepoNamePrefix string `position:"Query" name:"RepoNamePrefix"` Page requests.Integer `position:"Query" name:"Page"` PageSize requests.Integer `position:"Query" name:"PageSize"` }
GetRepoListRequest is the request struct for api GetRepoList
func CreateGetRepoListRequest ¶
func CreateGetRepoListRequest() (request *GetRepoListRequest)
CreateGetRepoListRequest creates a request to invoke GetRepoList API
type GetRepoListResponse ¶
type GetRepoListResponse struct {
*responses.BaseResponse
}
GetRepoListResponse is the response struct for api GetRepoList
func CreateGetRepoListResponse ¶
func CreateGetRepoListResponse() (response *GetRepoListResponse)
CreateGetRepoListResponse creates a response to parse from GetRepoList response
type GetRepoRequest ¶
type GetRepoRequest struct { *requests.RoaRequest RepoNamespace string `position:"Path" name:"RepoNamespace"` RepoName string `position:"Path" name:"RepoName"` }
GetRepoRequest is the request struct for api GetRepo
func CreateGetRepoRequest ¶
func CreateGetRepoRequest() (request *GetRepoRequest)
CreateGetRepoRequest creates a request to invoke GetRepo API
type GetRepoResponse ¶
type GetRepoResponse struct {
*responses.BaseResponse
}
GetRepoResponse is the response struct for api GetRepo
func CreateGetRepoResponse ¶
func CreateGetRepoResponse() (response *GetRepoResponse)
CreateGetRepoResponse creates a response to parse from GetRepo response
type GetRepoTagsRequest ¶
type GetRepoTagsRequest struct { *requests.RoaRequest RepoNamespace string `position:"Path" name:"RepoNamespace"` RepoName string `position:"Path" name:"RepoName"` Page requests.Integer `position:"Query" name:"Page"` PageSize requests.Integer `position:"Query" name:"PageSize"` }
GetRepoTagsRequest is the request struct for api GetRepoTags
func CreateGetRepoTagsRequest ¶
func CreateGetRepoTagsRequest() (request *GetRepoTagsRequest)
CreateGetRepoTagsRequest creates a request to invoke GetRepoTags API
type GetRepoTagsResponse ¶
type GetRepoTagsResponse struct {
*responses.BaseResponse
}
GetRepoTagsResponse is the response struct for api GetRepoTags
func CreateGetRepoTagsResponse ¶
func CreateGetRepoTagsResponse() (response *GetRepoTagsResponse)
CreateGetRepoTagsResponse creates a response to parse from GetRepoTags response
type QueryImageLayerInfoRequest ¶
type QueryImageLayerInfoRequest struct { *requests.RoaRequest RepoNamespace string `position:"Path" name:"RepoNamespace"` RepoName string `position:"Path" name:"RepoName"` Tag string `position:"Path" name:"Tag"` }
QueryImageLayerInfoRequest is the request struct for api QueryImageLayerInfo
func CreateQueryImageLayerInfoRequest ¶
func CreateQueryImageLayerInfoRequest() (request *QueryImageLayerInfoRequest)
CreateQueryImageLayerInfoRequest creates a request to invoke QueryImageLayerInfo API
type QueryImageLayerInfoResponse ¶
type QueryImageLayerInfoResponse struct {
*responses.BaseResponse
}
QueryImageLayerInfoResponse is the response struct for api QueryImageLayerInfo
func CreateQueryImageLayerInfoResponse ¶
func CreateQueryImageLayerInfoResponse() (response *QueryImageLayerInfoResponse)
CreateQueryImageLayerInfoResponse creates a response to parse from QueryImageLayerInfo response
type UpdateNamespaceRequest ¶
type UpdateNamespaceRequest struct { *requests.RoaRequest Namespace string `position:"Path" name:"Namespace"` }
UpdateNamespaceRequest is the request struct for api UpdateNamespace
func CreateUpdateNamespaceRequest ¶
func CreateUpdateNamespaceRequest() (request *UpdateNamespaceRequest)
CreateUpdateNamespaceRequest creates a request to invoke UpdateNamespace API
type UpdateNamespaceRequestBody ¶
type UpdateNamespaceRequestBody struct { Namespace struct { AutoCreate bool `json:"AutoCreate"` DefaultVisibility namespaceVisibility `json:"DefaultVisibility"` } `json:"Namespace"` }
UpdateNamespaceRequestBody is the request body struct for api UpdateNamespace
func NewUpdateNamespaceRequestBody ¶
func NewUpdateNamespaceRequestBody(auto bool, visibility namespaceVisibility) *UpdateNamespaceRequestBody
NewUpdateNamespaceRequestBody creates a request body
func (*UpdateNamespaceRequestBody) Marshal ¶
func (unrb *UpdateNamespaceRequestBody) Marshal() (body []byte, err error)
Marshal returns the JSON encoding of the request body
type UpdateNamespaceResponse ¶
type UpdateNamespaceResponse struct {
*responses.BaseResponse
}
UpdateNamespaceResponse is the response struct for api UpdateNamespace
func CreateUpdateNamespaceResponse ¶
func CreateUpdateNamespaceResponse() (response *UpdateNamespaceResponse)
CreateUpdateNamespaceResponse creates a response to parse from UpdateNamespace response
type UpdateRepoRequest ¶
type UpdateRepoRequest struct { *requests.RoaRequest RepoNamespace string `position:"Path" name:"RepoNamespace"` RepoName string `position:"Path" name:"RepoName"` }
UpdateRepoRequest is the request struct for api UpdateRepo
func CreateUpdateRepoRequest ¶
func CreateUpdateRepoRequest() (request *UpdateRepoRequest)
CreateUpdateRepoRequest creates a request to invoke UpdateRepo API
type UpdateRepoRequestBody ¶
type UpdateRepoRequestBody struct { Repo struct { Summary string `json:"Summary"` Detail string `json:"Detail"` RepoType repoType `json:"RepoType"` } `json:"Repo"` }
UpdateRepoRequestBody is the request body struct for api UpdateRepo
func NewUpdateRepoRequestBody ¶
func NewUpdateRepoRequestBody(summary, detail string, rtype repoType) *UpdateRepoRequestBody
NewUpdateRepoRequestBody creates a request body
func (*UpdateRepoRequestBody) Marshal ¶
func (urrb *UpdateRepoRequestBody) Marshal() (body []byte, err error)
Marshal returns the JSON encoding of the request body
type UpdateRepoResponse ¶
type UpdateRepoResponse struct {
*responses.BaseResponse
}
UpdateRepoResponse is the response struct for api UpdateRepo
func CreateUpdateRepoResponse ¶
func CreateUpdateRepoResponse() (response *UpdateRepoResponse)
CreateUpdateRepoResponse creates a response to parse from UpdateRepo response
Source Files ¶
- client.go
- constant_types.go
- create_namespace.go
- create_repo.go
- delete_image.go
- delete_namespace.go
- delete_repo.go
- get_authorization_token.go
- get_image_manifest.go
- get_namespace.go
- get_namespace_list.go
- get_repo.go
- get_repo_list.go
- get_repo_list_by_namespace.go
- get_repo_tags.go
- query_image_layer_info.go
- update_namespace.go
- update_repo.go