goclouddns

package module
v0.0.0-...-24285ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

goclouddns

A gophercloud compatible Go module for supporting Rackspace Cloud DNS. If you use goraxauth, like the test binary does then you can support Rackspace API keys.

To run the test binary, you'll need a cloud username and password/api-key.

export OS_USERNAME=[username]
export OS_TENANT_ID=[tenantid]
# password or API key
export OS_PASSWORD=[password]
export RAX_API_KEY=[api-key]
go run ./cmd/clouddns domain list

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForStatus

func WaitForStatus(client *gophercloud.ServiceClient, ret *AsyncResult, status string) error

Types

type AsyncMessage

type AsyncMessage struct {
	CallbackURL string                 `json:"callbackUrl"`
	JobID       string                 `json:"jobId"`
	Request     string                 `json:"request"`
	Response    map[string]interface{} `json:"response"`
	Error       map[string]interface{} `json:"error"`
	RequestURL  string                 `json:"requestUrl"`
	Verb        string                 `json:"verb"`
	Status      string                 `json:"status"`
}

type AsyncResult

type AsyncResult struct {
	gophercloud.Result
}

AsyncResult is the result of any async operation

func (AsyncResult) Extract

func (r AsyncResult) Extract() (*AsyncMessage, error)

Extract interprets a GetResult as a Domain.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL