config
Functionality for working with lakectl
configuration files useable for authentication in the lakeFS file system.
LakectlConfig ¶
Bases: NamedTuple
Holds configuration values necessary for authentication with a lakeFS server from Python.
Source code in src/lakefs_spec/config.py
host
class-attribute
instance-attribute
¶
URL of the lakeFS host, http(s) prefix is optional.
username
class-attribute
instance-attribute
¶
The access key ID to use in authentication with lakeFS.
password
class-attribute
instance-attribute
¶
The secret access key to use in authentication with lakeFS.
read
classmethod
¶
Read in a lakectl YAML configuration file and parse out relevant authentication parameters.
PARAMETER | DESCRIPTION |
---|---|
path |
Path to the YAML configuration file.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
LakectlConfig
|
The immutable loaded configuration. Missing values are filled with |
RAISES | DESCRIPTION |
---|---|
FileNotFoundError
|
If the configuration file does not exist. |