Add support for ILX Workspace management #106
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support for ILX Workspace management
This pull request implements the feature request outlined in issue #105, adding support for ILX Workspace Creation, Deletion, Modification, and File Upload to the F5 BIG-IP Go SDK.
Changes Implemented
ILXWorkspace,ILXFile, andExtensionstructs in a newilx.gofile to represent ILX workspace components.BigIPstruct:GetWorkspace(ctx context.Context, path string) (*ILXWorkspace, error)CreateWorkspace(ctx context.Context, path string) errorDeleteWorkspace(ctx context.Context, name string) errorCreateExtension(ctx context.Context, opts ExtensionConfig) errorWriteExtensionFile(ctx context.Context, opts ExtensionConfig, content string, filename ExtensionFile) errorReadExtensionFile(ctx context.Context, opts ExtensionConfig, filename ExtensionFile) (*ILXFile, error)WriteFileandReadFilemethods tosys.gocmd/ilx_workspace/example.goTesting
cmd/ilx_workspace/example.go.Additional Notes
cmd/ilx_workspace/example.go) differs from the previous convention. This was done to address issues with outdated and non-functional examples in the previous location. I propose putting future examples under the cmd/(some_example_grouping)/example.go location and moving the old non-functional examples.runcommand withechoandcatfor file operations, which may need to be the best option.Related Issue
Closes #105
Please review and let me know if any further changes or information are needed.