Skip to content

feat(go): add nfs_provision and cifs_provision programs#58

Open
mahatvagarg wants to merge 1 commit into
mainfrom
feat/go-nfs-cifs-provision
Open

feat(go): add nfs_provision and cifs_provision programs#58
mahatvagarg wants to merge 1 commit into
mainfrom
feat/go-nfs-cifs-provision

Conversation

@mahatvagarg

Copy link
Copy Markdown
Collaborator

Summary

Go implementations of nfs-provision and cifs-provision, completing
four-language coverage for both use cases.

Changes

  • go/nfs_provision/main.go — new: create FlexVol + NFS export policy + client-match rule; 6-step idempotent workflow
  • go/cifs_provision/main.go — new: create NTFS FlexVol + CIFS share + ACL; optional workgroup CIFS server creation; 8-step idempotent workflow
  • catalog.yaml — added go variant to nfs-provision and cifs-provision use cases

Checklist

General

  • No secrets, credentials, or API tokens in code or config
  • Updated catalog.yaml and tool README for new/changed examples (see CONTRIBUTING.md)

If touching go/

  • go vet ./... passes (from go/ directory)
  • go build -o /dev/null . passes for both new programs

Test Report

Environment: ONTAP Simulator (vSIM), Go 1.26.4, Windows 11
Platform version: ONTAP 9.14.1 onwards
Style touched: go

Ran both scripts against a vSIM. Volumes, export policy, CIFS share, and ACL
were created on first run. Re-running both scripts a second time skipped all
already-existing resources without errors.

Related issues

@mahatvagarg mahatvagarg requested a review from hvinn as a code owner June 28, 2026 18:52
@github-actions github-actions Bot added the go label Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant