colo

package
v5.8.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIPAddress

func CreateIPAddress(c gotransip.Client, ipAddress net.IP, reverseDNS string) error

CreateIPAddress adds a new IpAddress, either an ipv6 or an ipv4 address

func DeleteIPAddress

func DeleteIPAddress(c gotransip.Client, ipAddress net.IP) error

DeleteIPAddress deletes an IpAddress currently in use this account

func GetColoNames

func GetColoNames(c gotransip.Client) ([]string, error)

GetColoNames get coloNames for customer

func GetIPAddresses

func GetIPAddresses(c gotransip.Client, coloName string) ([]net.IP, error)

GetIPAddresses get IpAddresses that are active and assigned to a Colo

func GetIPRanges

func GetIPRanges(c gotransip.Client, coloName string) ([]net.IPNet, error)

GetIPRanges Get ipranges that are assigned to a Colo

func GetReverseDNS

func GetReverseDNS(c gotransip.Client, ipAddress net.IP) (string, error)

GetReverseDNS get the Reverse DNS for an IpAddress assigned to the user

func RequestRemoteHands

func RequestRemoteHands(c gotransip.Client, coloName, contactName, phoneNumber string, expectedDuration int, instructions string) error

RequestRemoteHands requests remote hands to the data-center

func SetReverseDNS

func SetReverseDNS(c gotransip.Client, ipAddress net.IP, reverseDNS string) error

SetReverseDNS sets the Reverse DNS name for an ipAddress

Types

type DatacenterVisitor

type DatacenterVisitor struct {
	Name                    string `xml:"name"`
	ReservationNumber       string `xml:"reservationNumber"`
	AccessCode              string `xml:"accessCode"`
	HasBeenRegisteredBefore bool   `xml:"hasBeenRegisteredBefore"`
}

DatacenterVisitor represents a Transip_DataCenterVisitor object as described at https://api.transip.nl/docs/transip.nl/class-Transip_DataCenterVisitor.html

func RequestAccess

func RequestAccess(c gotransip.Client, when string, duration int, visitors []string, phoneNumber string) ([]DatacenterVisitor, error)

RequestAccess requests access to the data-center

Jump to

Keyboard shortcuts

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