Artifact Class

Interact with Artifacts

Constructor

Artifact(freta)

Methods

get

Get an artifact related to the image.

list

Get the list of artifacts associated with a specific image.

TODO example

get

Get an artifact related to the image.

get(image_id: str, filename: str, owner_id: typing.Union[str, NoneType] = None)

Parameters

Name Description
image_id
Required

Freta identifier for the image

filename
Required

Name of the artifact file.

owner_id
Required

Optional userid of the image owner (For group owned images)

Returns

Type Description

Bytes-like object containing the content of the artifact.

list

Get the list of artifacts associated with a specific image.

TODO example

list(image_id: str, owner_id: typing.Union[str, NoneType] = None)

Parameters

Name Description
image_id
Required

Image identifier.

owner_id
Required

For group-owned images, userid of the image owner.

Returns

Type Description

[str]