public class Target extends Object
| Constructor | Description |
|---|---|
Target() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
digest() |
Get the digest of the content, as defined by the Registry V2 HTTP API Specification.
|
Long |
length() |
Get the number of bytes of the content.
|
String |
mediaType() |
Get the MIME type of the referenced object.
|
String |
repository() |
Get the repository name.
|
Long |
size() |
Get the number of bytes of the content.
|
String |
tag() |
Get the tag name.
|
String |
url() |
Get the direct URL to the content.
|
Target |
withDigest(String digest) |
Set the digest of the content, as defined by the Registry V2 HTTP API Specification.
|
Target |
withLength(Long length) |
Set the number of bytes of the content.
|
Target |
withMediaType(String mediaType) |
Set the MIME type of the referenced object.
|
Target |
withRepository(String repository) |
Set the repository name.
|
Target |
withSize(Long size) |
Set the number of bytes of the content.
|
Target |
withTag(String tag) |
Set the tag name.
|
Target |
withUrl(String url) |
Set the direct URL to the content.
|
public String mediaType()
public Target withMediaType(String mediaType)
mediaType - the mediaType value to setpublic Long size()
public Target withSize(Long size)
size - the size value to setpublic String digest()
public Target withDigest(String digest)
digest - the digest value to setpublic Long length()
public Target withLength(Long length)
length - the length value to setpublic String repository()
public Target withRepository(String repository)
repository - the repository value to setpublic String url()
public Target withUrl(String url)
url - the url value to setpublic String tag()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/