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

Implement Virtual DNS endpoints #48

Closed
Tenzer opened this issue May 3, 2016 · 3 comments
Closed

Implement Virtual DNS endpoints #48

Tenzer opened this issue May 3, 2016 · 3 comments

Comments

@Tenzer
Copy link
Contributor

Tenzer commented May 3, 2016

https://api.cloudflare.com/#virtual-dns-users-
https://api.cloudflare.com/#virtual-dns-organizations-

@elithrar elithrar self-assigned this Jan 19, 2017
@elithrar
Copy link
Contributor

elithrar commented Jan 21, 2017

I'd like to split Virtual DNS out into its own sub-package: we currently only implement one endpoint on the User, but not the Org.

e.g.

import (
     "github.com/cloudflare/cloudflare-go"
     "github.com/cloudflare/cloudflare-go/virtualdns"
)

    ...
    client, err := cloudflare.New(key, email)
    ...
    vdns, err := virtualdns.NewClient(client)
    ...
    vdns.SetOrg(orgID) // Optional; causes us to use the /organizations/:id endpoint format.

    vdns.GetClusters()
    vdns.CreateClusters()
    // etc.

Objections? Proposing a similar approach for non-zone related services.

@elithrar
Copy link
Contributor

WIP: #109

@stale
Copy link

stale bot commented May 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot unassigned elithrar May 13, 2019
@stale stale bot added the wontfix label May 13, 2019
@stale stale bot closed this as completed Jun 12, 2019
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

No branches or pull requests

2 participants