|
| None | __init__ (self, Optional[str] base_uri_overwrite=None, Optional[str] access_key_id=None, Optional[str] secret_access_key=None, Optional[str] server_url=None) |
| |
| def | help (self) |
| |
| List[dict] | list_repos (self) |
| |
| List[str] | list_repo_objects (self, str lake_fs_repo_uri) |
| |
| str | clone_local (self, Optional[Union[worker.BaseProgressItem, worker.ProgressItem]] progress_obj, str repo_branch_uri, str dist_path, bool exists_okay=False, bool print_stdout=False) |
| |
| Dict[str, str] | get_element_info (self, str lake_fs_object_uir) |
| |
| str | clone_element (self, Optional[Union[worker.BaseProgressItem, worker.ProgressItem]] progress_obj, str lake_fs_object_uir, str dist_path, bool print_stdout=False) |
| |
| def | commit_local (self, str commit_message, Optional[str] local_path=None) |
| |
|
| subprocess.Popen | _run (self, list lakectl_command, cwd=None, bool non_blocking_stdout=True) |
| |
◆ __init__()
| None ayon_bin_distro.lakectlpy.wrapper.LakeCtl.__init__ |
( |
|
self, |
|
|
Optional[str] |
base_uri_overwrite = None, |
|
|
Optional[str] |
access_key_id = None, |
|
|
Optional[str] |
secret_access_key = None, |
|
|
Optional[str] |
server_url = None |
|
) |
| |
Wrapper class for the LakeCtl binary (windows, linux)
Args:
base_uri_overwrite: optional str base URI used for lakeFS address parse. can be set in lakectl.yaml
access_key_id: optional str LakeFs server acces key Id. can be set in lakectl.yaml
secret_access_key: optional str LakeFs server acces key. can be set in lakectl.yaml
server_url: optional str used to connect to a specific LakeFs server
Raises:
NotImplementedError: raised if a method is called that we do not yet implement usually because no one needed it until now (best to write a ticket)
RuntimeError: raised to protect lakectl calles with invalid data. (specific data will be in the error info)
◆ _run()
| subprocess.Popen ayon_bin_distro.lakectlpy.wrapper.LakeCtl._run |
( |
|
self, |
|
|
list |
lakectl_command, |
|
|
|
cwd = None, |
|
|
bool |
non_blocking_stdout = True |
|
) |
| |
|
private |
call lakectl bin with args gets lakectl bin, base uri and config from the member vars
Args:
cwd: option to move the path from where we call the lakectl passed to subprocess.Popen
lakectl_command: lakectl command to run
non_blocking_stdout: enable non blocking stdout on linux only
Returns:
◆ clone_element()
| str ayon_bin_distro.lakectlpy.wrapper.LakeCtl.clone_element |
( |
|
self, |
|
|
Optional[Union[worker.BaseProgressItem, worker.ProgressItem]] |
progress_obj, |
|
|
str |
lake_fs_object_uir, |
|
|
str |
dist_path, |
|
|
bool |
print_stdout = False |
|
) |
| |
clone an individual lakeFs element to a local path
Args:
progress_obj: optional ProgressItem to connect to a workItem
lake_fs_object_uir: str lakeFs internal object uri
dist_path: str machine local path to clone to
print_stdout: bool enable printing the stdout
Returns:
str: The destination path.
◆ clone_local()
| str ayon_bin_distro.lakectlpy.wrapper.LakeCtl.clone_local |
( |
|
self, |
|
|
Optional[Union[worker.BaseProgressItem, worker.ProgressItem]] |
progress_obj, |
|
|
str |
repo_branch_uri, |
|
|
str |
dist_path, |
|
|
bool |
exists_okay = False, |
|
|
bool |
print_stdout = False |
|
) |
| |
clone a lakeFs repository to a local path
Args:
exists_okay (bool): delete dist_path if folder exists
progress_obj: optional ProgressItem to connect a wrapper to an work item
repo_branch_uri: str lakeFs internal uri to the repository
dist_path: str destination path
print_stdout: bool print stdout or operate silent
Returns:
str: The destination directory.
◆ commit_local()
| def ayon_bin_distro.lakectlpy.wrapper.LakeCtl.commit_local |
( |
|
self, |
|
|
str |
commit_message, |
|
|
Optional[str] |
local_path = None |
|
) |
| |
commits changes from a local repository (like git commit -m)
Args:
commit_message (str): Commit message that will be send to lakeFs for the commit
local_path (Optional[str]): Specify the local repository path, if not provided the
current working directory (cwd) will be used.
◆ get_element_info()
| Dict[str, str] ayon_bin_distro.lakectlpy.wrapper.LakeCtl.get_element_info |
( |
|
self, |
|
|
str |
lake_fs_object_uir |
|
) |
| |
get metadata information about a given lakeFs object
Args:
lake_fs_object_uir: lakeFs internal uri to an lakeFs element
Returns:
Dict[str, str]: The element info for the LakeFS object.
◆ help()
| def ayon_bin_distro.lakectlpy.wrapper.LakeCtl.help |
( |
|
self | ) |
|
print the output of lakectl --help
◆ list_repo_objects()
| List[str] ayon_bin_distro.lakectlpy.wrapper.LakeCtl.list_repo_objects |
( |
|
self, |
|
|
str |
lake_fs_repo_uri |
|
) |
| |
list objects on a given repository
Args:
lake_fs_repo_uri: lakeFs internal uri for the repository
Returns:
◆ list_repos()
| List[dict] ayon_bin_distro.lakectlpy.wrapper.LakeCtl.list_repos |
( |
|
self | ) |
|
lists out all the repos the user can see on a given LakeFs server
Raises:
LakeFSConnectionError: raised if an connection cant be established.
Returns: a list of repos in a dict representation.
◆ base_uri
| ayon_bin_distro.lakectlpy.wrapper.LakeCtl.base_uri |
◆ bin_path
| ayon_bin_distro.lakectlpy.wrapper.LakeCtl.bin_path |
◆ data
| ayon_bin_distro.lakectlpy.wrapper.LakeCtl.data |
◆ lake_config
| ayon_bin_distro.lakectlpy.wrapper.LakeCtl.lake_config |
◆ lake_ctl_acces_key_id
| ayon_bin_distro.lakectlpy.wrapper.LakeCtl.lake_ctl_acces_key_id |
◆ lake_ctl_secret_acces_key
| ayon_bin_distro.lakectlpy.wrapper.LakeCtl.lake_ctl_secret_acces_key |
◆ lake_ctl_server_url
| ayon_bin_distro.lakectlpy.wrapper.LakeCtl.lake_ctl_server_url |
◆ wrapped_lakectl
| ayon_bin_distro.lakectlpy.wrapper.LakeCtl.wrapped_lakectl |
The documentation for this class was generated from the following file:
- /github/workspace/ayon_bin_distro/lakectlpy/wrapper.py