@Path(value="/v1")
public interface RegistryClient
| Modifier and Type | Method and Description |
|---|---|
String |
deleteRepository(String namespace,
String repository)
Delete a repository
|
String |
deleteRepositoryTag(String namespace,
String repository,
String tag)
Delete the tag for the repo
|
InputStream |
getImageAncestry(String imageId) |
InputStream |
getImageLayer(String imageId)
Get image layer for a given image_id
|
void |
getImageLayer(String imageId,
InputStream is)
Put image layer for a given image_id
|
String |
getRepositoryTag(String namespace,
String repository,
String tag)
Get a tag for the given repo.
|
Map<String,String> |
getRepositoryTags(String namespace,
String repository)
Get all of the tags for the given repo.
|
void |
ping() |
void |
putImage(String imageId)
Put image for a given image_id.
|
String |
putRepositoryTag(String namespace,
String repository,
String tag)
Put a tag for the given repo.
|
SearchResult |
search(String query) |
@GET
@Path(value="/images/{imageId}/layer")
InputStream getImageLayer(@PathParam(value="imageId")
String imageId)
@PUT
@Path(value="/images/{imageId}/layer")
void getImageLayer(@PathParam(value="imageId")
String imageId,
InputStream is)
is - @PUT
@Path(value="/images/{imageId}/json")
void putImage(@PathParam(value="imageId")
String imageId)
@GET
@Path(value="/images/{imageId}/ancestry")
InputStream getImageAncestry(@PathParam(value="imageId")
String imageId)
@GET
@Path(value="/repositories/{namespace}/{repository}/tags")
Map<String,String> getRepositoryTags(@PathParam(value="namespace")
String namespace,
@PathParam(value="repository")
String repository)
@GET
@Path(value="/repositories/{namespace}/{repository}/tags/{tag}")
String getRepositoryTag(@PathParam(value="namespace")
String namespace,
@PathParam(value="repository")
String repository,
@PathParam(value="tag")
String tag)
@DELETE
@Path(value="/repositories/{namespace}/{repository}/tags/{tag}")
String deleteRepositoryTag(@PathParam(value="namespace")
String namespace,
@PathParam(value="repository")
String repository,
@PathParam(value="tag")
String tag)
@PUT
@Path(value="/repositories/{namespace}/{repository}/tags/{tag}")
String putRepositoryTag(@PathParam(value="namespace")
String namespace,
@PathParam(value="repository")
String repository,
@PathParam(value="tag")
String tag)
@DELETE
@Path(value="/repositories/{namespace}/{repository}")
String deleteRepository(@PathParam(value="namespace")
String namespace,
@PathParam(value="repository")
String repository)
@GET @Path(value="/_ping") void ping()
@GET @Path(value="/search") SearchResult search(@QueryParam(value="q") String query)
Copyright © 2014. All rights reserved.