lakefs.tag module¶
Module containing lakeFS tag implementation
- class lakefs.tag.Tag(repository_id, tag_id, client=None)[source]¶
Bases:
Reference
Class representing a tag in lakeFS.
- create(source_ref, exist_ok=False)[source]¶
Create a tag from the given source_ref
- Parameters:
- Return type:
- Returns:
A lakeFS SDK Tag object
- Raises:
NotAuthorizedException – if user is not authorized to perform this operation
NotFoundException – if source_ref_id doesn’t exist on the lakeFS server
ServerException – for any other errors.
- delete()[source]¶
Delete the tag from the lakeFS server
- Raises:
NotAuthorizedException – if user is not authorized to perform this operation
NotFoundException – if source_ref_id doesn’t exist on the lakeFS server
ServerException – for any other errors
- Return type:
None