# Functions
NewFilepathREST instantiates a new REST storage.
NewJSONFilepathStorageProvider use local host path as persistent layer storage:
- For namespaced-scoped resources: the resource will be written under the root-path in the following structure:
-- (root-path) --- /namespace1/ --- resource1 | | | --- resource2 | --- /namespace2/ --- resource3
- For cluster-scoped resources, there will be no mid-layer folders for namespaces:
-- (root-path) --- resource1 | --- resource2 | --- resource3
Args:
fs: An abstraction over the filesystem, so that the JSON can be stored in memory or on-disk.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrFileNotExists means the file doesn't actually exist.
ErrNamespaceNotExists means the directory for the namespace doesn't actually exist.
No description provided by the author