Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Webtop management #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blagoySimandov
Copy link

Add support for Webtop management

This pull request implements the feature request outlined in issue #107, adding support for Webtop Creation, Deletion, Modification, and Retrieval to the F5 BIG-IP Go SDK.

Changes Implemented

  1. Added new types and constants in apm.go:
    • WebtopType, CustomizationType, InitialState, and LinkType
    • BooledString for handling boolean values represented as strings in JSON payloads
  2. Implemented Webtop, WebtopConfig, and WebtopRead structs in apm.go.
  3. Added the following methods to the BigIP struct in apm.go:
    • CreateWebtop(ctx context.Context, webtop Webtop) error
    • DeleteWebtop(ctx context.Context, name string) error
    • GetWebtop(ctx context.Context, name string) (*WebtopRead, error)
    • ModifyWebtop(ctx context.Context, name string, webtop WebtopConfig) error
  4. Created a new example in cmd/webtop/example.go to demonstrate the usage of the new Webtop functionality.

Implementation Details

  • The Webtop struct represents the configuration for creating or updating a Webtop.
  • The WebtopRead struct includes additional fields returned when retrieving a Webtop.
  • The BooledString type handles the conversion between boolean values and their string representations in the API.

Testing

  • Manual testing has been performed with the new example in cmd/webtop/example.go.

Additional Notes

  • The ModifyWebtop method only allows updating the WebtopConfig fields, as per the API specifications.

Related Issue

Closes #107

Please review and let me know if any further changes or information are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Add support for Webtop Creation, Deletion, Modification, and Retrieval
1 participant