zone

package
v0.0.0-...-58d3d42 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: MIT Imports: 4 Imported by: 43

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Zone

type Zone struct {
	*client.Client
}

func New

func New(c *client.Client) *Zone

func (*Zone) Count

func (self *Zone) Count() (int64, error)

Counts accessible zones

func (*Zone) Create

func (self *Zone) Create(name string) (*ZoneInfo, error)

Create a zone

func (*Zone) Delete

func (self *Zone) Delete(id int64) (bool, error)

Delete a zone

func (*Zone) Info

func (self *Zone) Info(id int64) (*ZoneInfo, error)

Get zone information

func (*Zone) List

func (self *Zone) List() ([]*ZoneInfoBase, error)

List accessible DNS zones.

func (*Zone) Set

func (self *Zone) Set(domainName string, id int64) (*domain.DomainInfo, error)

Set the current zone of a domain

type ZoneInfo

type ZoneInfo struct {
	*ZoneInfoBase
	*ZoneInfoExtra
}

func ToZoneInfo

func ToZoneInfo(res map[string]interface{}) *ZoneInfo

type ZoneInfoBase

type ZoneInfoBase struct {
	DateUpdated time.Time
	Id          int64
	Name        string
	Public      bool
	Version     int64
}

func ToZoneInfoBase

func ToZoneInfoBase(res map[string]interface{}) *ZoneInfoBase

type ZoneInfoExtra

type ZoneInfoExtra struct {
	Domains  int64
	Owner    string
	Versions []int64
}

func ToZoneInfoExtra

func ToZoneInfoExtra(res map[string]interface{}) *ZoneInfoExtra

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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