Documentation ¶
Overview ¶
Package gtm contains code for exporting the global traffic manager configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFetchingDomain is returned when fetching domain fails ErrFetchingDomain = errors.New("unable to fetch domain with given name") )
Functions ¶
func CmdCreateDomain ¶
func CmdCreateDomain(c *cli.Context) error
CmdCreateDomain is an entrypoint to create-domain command
Types ¶
type TFDatacenterData ¶ added in v1.0.0
type TFDatacenterData struct { ID int Nickname string City string CloneOf int CloudServerHostHeaderOverride bool CloudServerTargeting bool Continent string Country string Latitude float64 Longitude float64 StateOrProvince string DefaultLoadObject *gtm.LoadObject }
TFDatacenterData represents the data used for processing a datacenter
type TFDomainData ¶ added in v1.0.0
type TFDomainData struct { NormalizedName string Name string Type string Comment string EmailNotificationList []string DefaultTimeoutPenalty int LoadImbalancePercentage float64 DefaultSSLClientPrivateKey string DefaultErrorPenalty int CNameCoalescingEnabled bool LoadFeedback bool DefaultSSLClientCertificate string EndUserMappingEnabled bool Section string SignAndServe bool SignAndServeAlgorithm string Datacenters []TFDatacenterData DefaultDatacenters []TFDatacenterData Resources []gtm.Resource CIDRMaps []gtm.CIDRMap GeoMaps []gtm.GeoMap ASMaps []gtm.ASMap Properties []gtm.Property }
TFDomainData represents the data used in domain templates
func (TFDomainData) FindDatacenterResourceName ¶ added in v1.0.0
func (d TFDomainData) FindDatacenterResourceName(id int) (string, error)
FindDatacenterResourceName finds and returns datacenter resource name with given id
Click to show internal directories.
Click to hide internal directories.