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 method for ACL validation #27

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

davidsbond
Copy link
Collaborator

This commit adds a ValidateACL method to the Client type that will be used to check the ACL is well formatted and the specified tests pass. It uses the JSON object method described in the API documentation.

This will be required for implementing additional validation as requested on the terraform provider:

tailscale/terraform-provider-tailscale#158

Signed-off-by: David Bond davidsbond93@gmail.com

tailscale/client_test.go Outdated Show resolved Hide resolved
tailscale/client_test.go Outdated Show resolved Hide resolved
This commit adds a `ValidateACL` method to the `Client` type that will be used to check the
ACL is well formatted and the specified tests pass. It uses the JSON object method described
in the API documentation.

This will be required for implementing additional validation as requested on the terraform
provider:

tailscale/terraform-provider-tailscale#158

Signed-off-by: David Bond <davidsbond93@gmail.com>
@DentonGentry DentonGentry merged commit 8357e35 into tailscale:main Oct 10, 2022
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.

None yet

2 participants