webhosting

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 Cancel

func Cancel(c gotransip.Client, domainName, endTime gotransip.CancellationTime) error

Cancel cancels webhosting for a domain

func CreateCronjob

func CreateCronjob(c gotransip.Client, domainName string, cronjob CronJob) error

CreateCronjob creates a cronjob

func CreateDatabase

func CreateDatabase(c gotransip.Client, domainName string, db Database) error

CreateDatabase creates a new database

func CreateMailBox

func CreateMailBox(c gotransip.Client, domainName string, mailBox MailBox) error

CreateMailBox creates a MailBox for a webhosting package

func CreateMailForward

func CreateMailForward(c gotransip.Client, domainName string, mailForward MailForward) error

CreateMailForward creates a MailForward for a webhosting package

func CreateSubdomain

func CreateSubdomain(c gotransip.Client, domainName string, subDomain SubDomain) error

CreateSubdomain creates a SubDomain

func DeleteCronjob

func DeleteCronjob(c gotransip.Client, domainName, cronjob CronJob) error

DeleteCronjob deletes a cronjob from a webhosting package.

func DeleteDatabase

func DeleteDatabase(c gotransip.Client, domainName string, db Database) error

DeleteDatabase deletes a Db object

func DeleteMailBox

func DeleteMailBox(c gotransip.Client, domainName string, mailBox MailBox) error

DeleteMailBox deletes a MailBox from a webhosting package

func DeleteMailForward

func DeleteMailForward(c gotransip.Client, domainName string, mailForward MailForward) error

DeleteMailForward deletes an active MailForward object

func DeleteSubdomain

func DeleteSubdomain(c gotransip.Client, domainName string, subDomain SubDomain) error

DeleteSubdomain deletes a SubDomain

func GetWebhostingDomainNames

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

GetWebhostingDomainNames returns all domain names that have a webhosting package attached to them.

func ModifyDatabase

func ModifyDatabase(c gotransip.Client, domainName string, db Database) error

ModifyDatabase changes a Db object

func ModifyMailBox

func ModifyMailBox(c gotransip.Client, domainName string, mailBox MailBox) error

ModifyMailBox updates MailBox settings

func ModifyMailForward

func ModifyMailForward(c gotransip.Client, domainName string, mailForward MailForward) error

ModifyMailForward changes an active MailForward object

func Order

func Order(c gotransip.Client, domainName, webhostingPackage string) error

Order orders a webhosting package for a domain name

func SetDatabasePassword

func SetDatabasePassword(c gotransip.Client, domainName string, db Database, newPassword string) error

SetDatabasePassword sets a database password for a Db

func SetFtpPassword

func SetFtpPassword(c gotransip.Client, domainName, newPassword string) error

SetFtpPassword sets a new FTP password for a webhosting package

func SetMailBoxPassword

func SetMailBoxPassword(c gotransip.Client, domainName string, mailBox MailBox, newPassword string) error

SetMailBoxPassword sets a new password for a MailBox

func Upgrade

func Upgrade(c gotransip.Client, domainName, newWebhostingPackage string) error

Upgrade upgrades the webhosting package of a domain name to a new webhosting package

Types

type CronJob

type CronJob struct {
	Name           string `xml:"name"`
	URL            string `xml:"url"`
	Email          string `xml:"email"`
	MinuteTrigger  string `xml:"minuteTrigger"`
	HourTrigger    string `xml:"hourTrigger"`
	DayTrigger     string `xml:"dayTrigger"`
	MonthTrigger   string `xml:"monthTrigger"`
	WeekdayTrigger string `xml:"weekdayTrigger"`
}

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

func (CronJob) EncodeArgs

func (c CronJob) EncodeArgs(key string) string

EncodeArgs returns CronJob XML body ready to be passed in the SOAP call

func (CronJob) EncodeParams

func (c CronJob) EncodeParams(prm gotransip.ParamsContainer, prefix string)

EncodeParams returns CronJob parameters ready to be used for constructing a signature the order of parameters added here has to match the order in the WSDL as described at http://api.transip.nl/wsdl/?service=WebhostingService

type Database

type Database struct {
	Name         string `xml:"name"`
	Username     string `xml:"username"`
	MaxDiskUsage int    `xml:"maxDiskUsage"`
}

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

func (Database) EncodeArgs

func (db Database) EncodeArgs(key string) string

EncodeArgs returns Database XML body ready to be passed in the SOAP call

func (Database) EncodeParams

func (db Database) EncodeParams(prm gotransip.ParamsContainer, prefix string)

EncodeParams returns Database parameters ready to be used for constructing a signature the order of parameters added here has to match the order in the WSDL as described at http://api.transip.nl/wsdl/?service=WebhostingService

type Forward

type Forward struct {
	DomainName        string `xml:"domainName"`
	ForwardTo         string `xml:"forwardTo"`
	ForwardMethod     string `xml:"forwardMethod"`
	FrameTitle        string `xml:"frameTitle"`
	FrameIcon         string `xml:"frameIcon"`
	ForwardEverything bool   `xml:"forwardEverything"`
	ForwardSubdomains bool   `xml:"forwardSubdomains"`
	ForwardEmailTo    string `xml:"forwardEmailTo"`
}

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

type Host

type Host struct {
	DomainName  string        `xml:"domainName"`
	CronJobs    []CronJob     `xml:"cronjobs>item"`
	MailBoxes   []MailBox     `xml:"mailBoxes>item"`
	Database    []Database    `xml:"dbs>item"`
	MailForward []MailForward `xml:"mailForwards>item"`
	SubDomains  []SubDomain   `xml:"subDomains>item"`
}

Host represents a Transip_WebHost as described at https://api.transip.nl/docs/transip.nl/class-Transip_WebHost.html

func GetInfo

func GetInfo(c gotransip.Client, domainName string) (Host, error)

GetInfo returns information about existing webhosting on a domain.

type MailBox

type MailBox struct {
	Address              string            `xml:"address"`
	SpamCheckerStrength  SpamCheckStrength `xml:"spamCheckerStrength"`
	MaxDiskUsage         int               `xml:"maxDiskUsage"`
	HasVacationReply     bool              `xml:"hasVacationReply"`
	VacationReplySubject string            `xml:"vacationReplySubject"`
	VacationReplyMessage string            `xml:"vacationReplyMessage"`
}

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

func (MailBox) EncodeArgs

func (m MailBox) EncodeArgs(key string) string

EncodeArgs returns MailBox XML body ready to be passed in the SOAP call

func (MailBox) EncodeParams

func (m MailBox) EncodeParams(prm gotransip.ParamsContainer, prefix string)

EncodeParams returns MailBox parameters ready to be used for constructing a signature the order of parameters added here has to match the order in the WSDL as described at http://api.transip.nl/wsdl/?service=WebhostingService

type MailForward

type MailForward struct {
	Name          string `xml:"name"`
	TargetAddress string `xml:"targetAddress"`
}

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

func (MailForward) EncodeArgs

func (m MailForward) EncodeArgs(key string) string

EncodeArgs returns MailForward XML body ready to be passed in the SOAP call

func (MailForward) EncodeParams

func (m MailForward) EncodeParams(prm gotransip.ParamsContainer, prefix string)

EncodeParams returns MailForward parameters ready to be used for constructing a signature the order of parameters added here has to match the order in the WSDL as described at http://api.transip.nl/wsdl/?service=WebhostingService

type Package

type Package struct {
	Name         string  `xml:"name"`
	Description  string  `xml:"description"`
	Price        float64 `xml:"price"`
	RenewalPrice float64 `xml:"renewalPrice"`
}

Package represents a Transip_WebhostingPackage as described at https://api.transip.nl/docs/transip.nl/class-Transip_WebhostingPackage.html

func GetAvailablePackages

func GetAvailablePackages(c gotransip.Client) ([]Package, error)

GetAvailablePackages returns all available webhosting packages

func GetAvailableUpgrades

func GetAvailableUpgrades(c gotransip.Client, domainName string) ([]Package, error)

GetAvailableUpgrades get available upgrades packages for a domain name with webhosting. Only those packages will be returned to which the given domain name can be upgraded to.

type SpamCheckStrength

type SpamCheckStrength string

SpamCheckStrength defines the possible strengths for the spam checker

var (
	// SpamCheckStrengthAverage defines average spam checking
	SpamCheckStrengthAverage SpamCheckStrength = "AVERAGE"
	// SpamCheckStrengthOff disables spam checking
	SpamCheckStrengthOff SpamCheckStrength = "OFF"
	// SpamCheckStrengthLow defines low spam checking
	SpamCheckStrengthLow SpamCheckStrength = "LOW"
	// SpamCheckStrengthHigh defines high spam checking
	SpamCheckStrengthHigh SpamCheckStrength = "HIGH"
)

type SubDomain

type SubDomain struct {
	Name string `xml:"name"`
}

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

func (SubDomain) EncodeArgs

func (s SubDomain) EncodeArgs(key string) string

EncodeArgs returns SubDomain XML body ready to be passed in the SOAP call

func (SubDomain) EncodeParams

func (s SubDomain) EncodeParams(prm gotransip.ParamsContainer, prefix string)

EncodeParams returns SubDomain parameters ready to be used for constructing a signature the order of parameters added here has to match the order in the WSDL as described at http://api.transip.nl/wsdl/?service=WebhostingService

Jump to

Keyboard shortcuts

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