Creates a file at a specified path with given data and comment.
the file path relative to the repository root
contents of the file
true if the file is annex and requires special handling (external storage)
comment to associate with this operation
ConfigId as Promise
Deletes the given config file (older versions will still be available)
the file path relative to the repository root
comment to associate with this operation
Returns true if the given path exists and is being managed
the file path relative to the repository root
revision of the file
boolean as Promise
Gets and returns the content of active version of the file stored under the given path.
the file path relative to the repository root
Option
Returns the content of active version of the file at the given path as it existed on the given instant
the file path relative to the repository root
the target instant
Option
Gets and returns the file at the given path with the specified revision id.
the file path relative to the repository root
id used to specify a specific version to fetch
Option
Gets the file at the given path as it existed on the given instant. If instant is before the file was created, the initial version is returned. If instant is after the last change, the most recent version is returned.
the file path relative to the repository root
the target instant
Option
Gets and returns the content of latest version of the file stored under the given path.
the file path relative to the repository root
Option
Query the metadata of config server
ConfigMetadata as Promise
Returns the history of versions of the file at the given path for a range of period specified by from
and to
.
The size of the list is limited upto maxResults
.
the file path relative to the repository root
the start of the history range
the end of the history range
the maximum number of history results to return (default: unlimited)
ConfigFileRevision[] as Promise
Returns the history of active versions of the file at the given path for a range of period specified by from
and to
.
The size of the list is limited upto maxResults
.
the file path relative to the repository root
the start of the history range
the end of the history range
the maximum number of history results to return (default: unlimited)
ConfigFileRevision[] as Promise
Returns a list containing all of the known config files of given type(Annex or Normal) and whose name matches the provided pattern
optional file type(Annex or Normal) and optional pattern to match against the file name
ConfigFileInfo[] as Promise
Resets the "active version" of the file at the given path to the latest version.
the file path relative to the repository root
comment to associate with this operation
Sets the active version to be the version provided for the file at the given path. If this method is not called, the active version will always be the version with which the file was created After calling this method, the version with the given Id will be the active version.
the file path relative to the repository root
an id used to specify a specific version (by default the id of the version with which the file was created i.e. 1)
comment to associate with this operation
Updates the file content at a specified path with given data and comment.
the file path relative to the repository root
contents of the file
comment to associate with this operation
ConfigId as Promise
Generated using TypeDoc
A Config Service API which provides client side methods to manage configuration files residing in config server repository.