public interface Artifact
An "artifact" is an entity in object storage, file storage, or block storage. Artifacts should be able to be stored in-memory as a single byte array. Implementations with an underlying type that only supports streaming should stream in the full contents and make the full contents available.
Implementations should remain read-only. Writing artifacts should be left to the
responsibility of a ArtifactClient
implementation. If an object of the artifact type
returned allows writing of any type, then it should not be made available.
Modifier and Type | Method and Description |
---|---|
byte[] |
contents()
Returns the raw byte array of the artifact's contents.
|
java.lang.String |
id()
Returns the id of the artifact.
|
java.lang.String |
name()
Returns the name/path of the artifact.
|