gtm

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package gtm contains code for exporting 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

Jump to

Keyboard shortcuts

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