Package namespace.cloud.registry.v1beta
Class ContainerRegistryServiceGrpc.ContainerRegistryServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<ContainerRegistryServiceGrpc.ContainerRegistryServiceBlockingStub>
io.grpc.stub.AbstractBlockingStub<ContainerRegistryServiceGrpc.ContainerRegistryServiceBlockingStub>
namespace.cloud.registry.v1beta.ContainerRegistryServiceGrpc.ContainerRegistryServiceBlockingStub
- Enclosing class:
ContainerRegistryServiceGrpc
public static final class ContainerRegistryServiceGrpc.ContainerRegistryServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<ContainerRegistryServiceGrpc.ContainerRegistryServiceBlockingStub>
A stub to allow clients to do limited synchronous rpc calls to service ContainerRegistryService.
ContainerRegistryService allows the management of container images stored in the workspace's private container registry (`nscr.io`). It supports listing images and repositories, managing tags, sharing images publicly or with partner accounts, and configuring image expiration policies. See https://namespace.so/docs/architecture/storage/container-registry for an overview. ## Access ContainerRegistryService is a global service that can be accessed at: ``` https://global.namespaceapis.com:443 ``` ## Authentication Calls to the ContainerRegistryService require a *tenant token* passed as a Bearer token as part of each call. These are always required. A *tenant token* identifies both the workspace that the call operates on, but may also constrain the set of actions that the caller may do. A *tenant token* can be obtained using the [IAM API](https://buf.build/namespace/cloud/docs/main:namespace.cloud.iam.v1beta).
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) getDefaultPolicy(com.google.protobuf.Empty request) Returns the current default image expiration policy.getImage(Registry.GetImageRequest request) Retrieves a specific image by repository and reference (tag or digest).Returns the current image expiration policy for a specific repository.listImages(Registry.ListImagesRequest request) Lists images in the registry that match the specified criteria.Lists all repositories in the registry.Lists shared images, optionally filtered by repository and visibility.listTags(Registry.ListTagsRequest request) Lists all tags for a specific repository.Lists all versions of a specific tag in a repository, ordered from newest to oldest.shareImage(Registry.ShareImageRequest request) Shares an image either publicly or with tenants of partner accounts.com.google.protobuf.EmptyunshareImage(Registry.UnshareImageRequest request) Removes an existing share, making the shared image reference inaccessible.com.google.protobuf.EmptyUpdates the default image expiration policy for the workspace.Extends or updates the expiration of a single image.com.google.protobuf.EmptyUpdates the image expiration policy for a specific repository.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ContainerRegistryServiceGrpc.ContainerRegistryServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ContainerRegistryServiceGrpc.ContainerRegistryServiceBlockingStub>
-
getImage
Retrieves a specific image by repository and reference (tag or digest). ### Errors - If the image does not exist, a `NotFound` status is returned.
-
listImages
Lists images in the registry that match the specified criteria.
-
listRepositories
Lists all repositories in the registry.
-
listTags
Lists all tags for a specific repository.
-
listTagVersions
Lists all versions of a specific tag in a repository, ordered from newest to oldest. A tag can point to different images over time as it is overwritten by new pushes.
-
updateImageLifetime
public Registry.UpdateImageLifetimeResponse updateImageLifetime(Registry.UpdateImageLifetimeRequest request) Extends or updates the expiration of a single image. ### Errors - If the image does not exist, a `NotFound` status is returned.
-
updateDefaultPolicy
Updates the default image expiration policy for the workspace. The policy applies to newly created images only.
-
getDefaultPolicy
Returns the current default image expiration policy.
-
updateRepositoryPolicy
public com.google.protobuf.Empty updateRepositoryPolicy(Registry.UpdateRepositoryPolicyRequest request) Updates the image expiration policy for a specific repository. Repository-level policies override the default policy.
-
getRepositoryPolicy
public Registry.GetRepositoryPolicyResponse getRepositoryPolicy(Registry.GetRepositoryPolicyRequest request) Returns the current image expiration policy for a specific repository.
-