Documentation ¶
Index ¶
- func Cancel(c gotransip.Client, domainName, endTime gotransip.CancellationTime) error
- func CreateCronjob(c gotransip.Client, domainName string, cronjob CronJob) error
- func CreateDatabase(c gotransip.Client, domainName string, db Database) error
- func CreateMailBox(c gotransip.Client, domainName string, mailBox MailBox) error
- func CreateMailForward(c gotransip.Client, domainName string, mailForward MailForward) error
- func CreateSubdomain(c gotransip.Client, domainName string, subDomain SubDomain) error
- func DeleteCronjob(c gotransip.Client, domainName, cronjob CronJob) error
- func DeleteDatabase(c gotransip.Client, domainName string, db Database) error
- func DeleteMailBox(c gotransip.Client, domainName string, mailBox MailBox) error
- func DeleteMailForward(c gotransip.Client, domainName string, mailForward MailForward) error
- func DeleteSubdomain(c gotransip.Client, domainName string, subDomain SubDomain) error
- func GetWebhostingDomainNames(c gotransip.Client) ([]string, error)
- func ModifyDatabase(c gotransip.Client, domainName string, db Database) error
- func ModifyMailBox(c gotransip.Client, domainName string, mailBox MailBox) error
- func ModifyMailForward(c gotransip.Client, domainName string, mailForward MailForward) error
- func Order(c gotransip.Client, domainName, webhostingPackage string) error
- func SetDatabasePassword(c gotransip.Client, domainName string, db Database, newPassword string) error
- func SetFtpPassword(c gotransip.Client, domainName, newPassword string) error
- func SetMailBoxPassword(c gotransip.Client, domainName string, mailBox MailBox, newPassword string) error
- func Upgrade(c gotransip.Client, domainName, newWebhostingPackage string) error
- type CronJob
- type Database
- type Forward
- type Host
- type MailBox
- type MailForward
- type Package
- type SpamCheckStrength
- type SubDomain
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 ¶
CreateCronjob creates a cronjob
func CreateDatabase ¶
CreateDatabase creates a new database
func CreateMailBox ¶
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 ¶
CreateSubdomain creates a SubDomain
func DeleteCronjob ¶
DeleteCronjob deletes a cronjob from a webhosting package.
func DeleteDatabase ¶
DeleteDatabase deletes a Db object
func DeleteMailBox ¶
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 ¶
DeleteSubdomain deletes a SubDomain
func GetWebhostingDomainNames ¶
GetWebhostingDomainNames returns all domain names that have a webhosting package attached to them.
func ModifyDatabase ¶
ModifyDatabase changes a Db object
func ModifyMailBox ¶
ModifyMailBox updates MailBox settings
func ModifyMailForward ¶
func ModifyMailForward(c gotransip.Client, domainName string, mailForward MailForward) error
ModifyMailForward changes an active MailForward object
func SetDatabasePassword ¶
func SetDatabasePassword(c gotransip.Client, domainName string, db Database, newPassword string) error
SetDatabasePassword sets a database password for a Db
func SetFtpPassword ¶
SetFtpPassword sets a new FTP password for a 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 ¶
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 ¶
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
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 ¶
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 ¶
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 ¶
GetAvailablePackages returns all available webhosting packages
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 ¶
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