version

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: 3 Imported by: 43

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	*client.Client
}

func New

func New(c *client.Client) *Version

func (*Version) Count

func (self *Version) Count(zoneId int64) (int64, error)

Count this zone versions

func (*Version) Delete

func (self *Version) Delete(zoneId, version int64) (bool, error)

Delete a specific version

func (*Version) List

func (self *Version) List(zoneId int64) ([]*VersionInfo, error)

List this zone versions, with their creation date

func (*Version) New

func (self *Version) New(zoneId, version int64) (int64, error)

Create a new version from another version. This will duplicate the version’s records

func (*Version) Set

func (self *Version) Set(zoneId, version int64) (bool, error)

Set the active version of a zone

type VersionInfo

type VersionInfo struct {
	Id          int64
	DateCreated time.Time
}

func ToVersionInfo

func ToVersionInfo(res map[string]interface{}) *VersionInfo

Jump to

Keyboard shortcuts

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