Implements the basic folder logic from the API. This will allow for the creation, listing, updating, and deletion of folders via the SDK.
Not for this PR but eventually this can be integrated more naturally into the SDK behaviour. For example, if a user creates a secret at a folder that does not yet exist then this folder may be created (possibly configurable).
This is my first PR for Infisicial so I encourage a thorough review of the alterations although I have atttempted to follow the standards & practices of the existing code.
Points to highlight:
I have made the decision to throw potential errors during folder operations. I believe there is some wider scope work on error handling to be done based on #22 but there wasn't much to reference here since secrets have the fallback mechanism.
Folder API endpoints
Implements the basic folder logic from the API. This will allow for the creation, listing, updating, and deletion of folders via the SDK.
Not for this PR but eventually this can be integrated more naturally into the SDK behaviour. For example, if a user creates a secret at a folder that does not yet exist then this folder may be created (possibly configurable).
This is my first PR for Infisicial so I encourage a thorough review of the alterations although I have atttempted to follow the standards & practices of the existing code.
Points to highlight: