Documentation ¶
Index ¶
- Constants
- func CreateTestASNs(t *testing.T, cl *toclient.Session, dat TrafficControl)
- func CreateTestCDNFederations(t *testing.T, cl *toclient.Session, dat TrafficControl)
- func CreateTestCDNs(t *testing.T, cl *toclient.Session, dat TrafficControl)
- func CreateTestCacheGroups(t *testing.T, cl *toclient.Session, dat TrafficControl)
- func CreateTestCachegroupsDeliveryServices(t *testing.T, cl *toclient.Session)
- func CreateTestCoordinates(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestDeliveryServiceRequestComments(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestDeliveryServiceRequests(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestDeliveryServices(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestDeliveryServicesRegexes(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestDeliveryServicesRequiredCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestDivisions(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestFederationResolvers(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestFederationUsers(t *testing.T, cl *toclient.Session)
- func CreateTestJobs(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestOrigins(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestParameters(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestPhysLocations(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestProfileParameters(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestProfiles(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestRegions(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestRoles(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestServerCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestServerCheckExtensions(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestServerChecks(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestServerServerCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestServers(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestServiceCategories(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestStaticDNSEntries(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestStatuses(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestSteeringTargets(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestTenants(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestTopologies(t *testing.T, cl *toclient.Session, td TrafficControl)
- func CreateTestTypes(t *testing.T, cl *toclient.Session, td TrafficControl, db *sql.DB)
- func CreateTestUsers(t *testing.T, cl *toclient.Session, td TrafficControl)
- func DeleteTestASNs(t *testing.T, cl *toclient.Session)
- func DeleteTestCDNFederations(t *testing.T, cl *toclient.Session)
- func DeleteTestCDNs(t *testing.T, cl *toclient.Session)
- func DeleteTestCacheGroups(t *testing.T, cl *toclient.Session, dat TrafficControl)
- func DeleteTestCachegroupsDeliveryServices(t *testing.T, cl *toclient.Session)
- func DeleteTestCoordinates(t *testing.T, cl *toclient.Session)
- func DeleteTestDeliveryServiceRequestComments(t *testing.T, cl *toclient.Session)
- func DeleteTestDeliveryServiceRequests(t *testing.T, cl *toclient.Session)
- func DeleteTestDeliveryServices(t *testing.T, cl *toclient.Session)
- func DeleteTestDeliveryServicesRegexes(t *testing.T, cl *toclient.Session, td TrafficControl, db *sql.DB)
- func DeleteTestDeliveryServicesRequiredCapabilities(t *testing.T, cl *toclient.Session)
- func DeleteTestDivisions(t *testing.T, cl *toclient.Session)
- func DeleteTestFederationResolvers(t *testing.T, cl *toclient.Session)
- func DeleteTestFederationUsers(t *testing.T, cl *toclient.Session)
- func DeleteTestJobs(t *testing.T, cl *toclient.Session)
- func DeleteTestOrigins(t *testing.T, cl *toclient.Session)
- func DeleteTestParameters(t *testing.T, cl *toclient.Session)
- func DeleteTestPhysLocations(t *testing.T, cl *toclient.Session)
- func DeleteTestProfileParameters(t *testing.T, cl *toclient.Session)
- func DeleteTestProfiles(t *testing.T, cl *toclient.Session)
- func DeleteTestRegions(t *testing.T, cl *toclient.Session)
- func DeleteTestRoles(t *testing.T, cl *toclient.Session)
- func DeleteTestServerCapabilities(t *testing.T, cl *toclient.Session)
- func DeleteTestServerCheckExtensions(t *testing.T, cl *toclient.Session, td TrafficControl)
- func DeleteTestServerChecks(*testing.T, *toclient.Session)
- func DeleteTestServerServerCapabilities(t *testing.T, cl *toclient.Session)
- func DeleteTestServers(t *testing.T, cl *toclient.Session)
- func DeleteTestServiceCategories(t *testing.T, cl *toclient.Session)
- func DeleteTestStaticDNSEntries(t *testing.T, cl *toclient.Session)
- func DeleteTestStatuses(t *testing.T, cl *toclient.Session, td TrafficControl)
- func DeleteTestSteeringTargets(t *testing.T, cl *toclient.Session, td TrafficControl)
- func DeleteTestTenants(t *testing.T, cl *toclient.Session)
- func DeleteTestTopologies(t *testing.T, cl *toclient.Session)
- func DeleteTestTypes(t *testing.T, cl *toclient.Session, td TrafficControl, db *sql.DB)
- func ForceDeleteTestUsers(t *testing.T, cl *toclient.Session, td TrafficControl, db *sql.DB)
- func GetCDNID(t *testing.T, cl *toclient.Session, cdnName string) func() int
- func GetCacheGroupId(t *testing.T, cl *toclient.Session, cacheGroupName string) func() int
- func GetDeliveryServiceId(t *testing.T, cl *toclient.Session, xmlId string) func() int
- func GetFederationID(t *testing.T, cname string) func() int
- func GetFederationResolverID(t *testing.T, cl *toclient.Session, ipAddress string) func() int
- func GetProfileID(t *testing.T, cl *toclient.Session, profileName string) func() int
- func GetServerID(t *testing.T, cl *toclient.Session, hostName string) func() int
- func GetTypeId(t *testing.T, cl *toclient.Session, typeName string) int
- func GetUserID(t *testing.T, cl *toclient.Session, username string) func() int
- type TrafficControl
Constants ¶
View Source
const FederationCDNName = "cdn1"
All prerequisite Federations are associated to this cdn and this xmlID
Variables ¶
This section is empty.
Functions ¶
func CreateTestASNs ¶
func CreateTestASNs(t *testing.T, cl *toclient.Session, dat TrafficControl)
func CreateTestCDNFederations ¶
func CreateTestCDNFederations(t *testing.T, cl *toclient.Session, dat TrafficControl)
func CreateTestCDNs ¶
func CreateTestCDNs(t *testing.T, cl *toclient.Session, dat TrafficControl)
func CreateTestCacheGroups ¶
func CreateTestCacheGroups(t *testing.T, cl *toclient.Session, dat TrafficControl)
func CreateTestCoordinates ¶
func CreateTestCoordinates(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestDeliveryServiceRequestComments ¶
func CreateTestDeliveryServiceRequestComments(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestDeliveryServiceRequests ¶
func CreateTestDeliveryServiceRequests(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestDeliveryServices ¶
func CreateTestDeliveryServices(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestDeliveryServicesRegexes ¶
func CreateTestDeliveryServicesRegexes(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestDeliveryServicesRequiredCapabilities ¶
func CreateTestDeliveryServicesRequiredCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestDivisions ¶
func CreateTestDivisions(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestFederationResolvers ¶
func CreateTestFederationResolvers(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestJobs ¶
func CreateTestJobs(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestOrigins ¶
func CreateTestOrigins(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestParameters ¶
func CreateTestParameters(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestPhysLocations ¶
func CreateTestPhysLocations(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestProfileParameters ¶
func CreateTestProfileParameters(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestProfiles ¶
func CreateTestProfiles(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestRegions ¶
func CreateTestRegions(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestRoles ¶
func CreateTestRoles(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestServerCapabilities ¶
func CreateTestServerCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestServerCheckExtensions ¶
func CreateTestServerCheckExtensions(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestServerChecks ¶
func CreateTestServerChecks(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestServerServerCapabilities ¶
func CreateTestServerServerCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestServers ¶
func CreateTestServers(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestServiceCategories ¶
func CreateTestServiceCategories(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestStaticDNSEntries ¶
func CreateTestStaticDNSEntries(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestStatuses ¶
func CreateTestStatuses(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestSteeringTargets ¶
func CreateTestSteeringTargets(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestTenants ¶
func CreateTestTenants(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestTopologies ¶
func CreateTestTopologies(t *testing.T, cl *toclient.Session, td TrafficControl)
func CreateTestTypes ¶
func CreateTestUsers ¶
func CreateTestUsers(t *testing.T, cl *toclient.Session, td TrafficControl)
func DeleteTestCacheGroups ¶
func DeleteTestCacheGroups(t *testing.T, cl *toclient.Session, dat TrafficControl)
func DeleteTestServerCheckExtensions ¶
func DeleteTestServerCheckExtensions(t *testing.T, cl *toclient.Session, td TrafficControl)
func DeleteTestServerChecks ¶
Need to define no-op function as TCObj interface expects a delete function There is no delete path for serverchecks
func DeleteTestStatuses ¶
func DeleteTestStatuses(t *testing.T, cl *toclient.Session, td TrafficControl)
func DeleteTestSteeringTargets ¶
func DeleteTestSteeringTargets(t *testing.T, cl *toclient.Session, td TrafficControl)
func DeleteTestTypes ¶
func ForceDeleteTestUsers ¶
ForceDeleteTestUsers forcibly deletes the users from the db. NOTE: Special circumstances! This should *NOT* be done without a really good reason! Connects directly to the DB to remove users rather than going through the client. This is required here because the DeleteUser action does not really delete users, but disables them.
func GetCacheGroupId ¶
func GetDeliveryServiceId ¶
func GetFederationResolverID ¶
func GetProfileID ¶
Types ¶
type TrafficControl ¶
type TrafficControl struct { ASNs []tc.ASN `json:"asns"` CDNs []tc.CDN `json:"cdns"` CDNLocks []tc.CDNLock `json:"cdnlocks"` CacheGroups []tc.CacheGroupNullable `json:"cachegroups"` Capabilities []tc.Capability `json:"capability"` Coordinates []tc.Coordinate `json:"coordinates"` DeliveryServicesRegexes []tc.DeliveryServiceRegexesTest `json:"deliveryServicesRegexes"` DeliveryServiceRequests []tc.DeliveryServiceRequestV4 `json:"deliveryServiceRequests"` DeliveryServiceRequestComments []tc.DeliveryServiceRequestComment `json:"deliveryServiceRequestComments"` DeliveryServices []tc.DeliveryServiceV4 `json:"deliveryservices"` DeliveryServicesRequiredCapabilities []tc.DeliveryServicesRequiredCapability `json:"deliveryservicesRequiredCapabilities"` DeliveryServiceServerAssignments []tc.DeliveryServiceServers `json:"deliveryServiceServerAssignments"` TopologyBasedDeliveryServicesRequiredCapabilities []tc.DeliveryServicesRequiredCapability `json:"topologyBasedDeliveryServicesRequiredCapabilities"` Divisions []tc.Division `json:"divisions"` Federations []tc.CDNFederation `json:"federations"` FederationResolvers []tc.FederationResolver `json:"federation_resolvers"` Jobs []tc.InvalidationJobCreateV4 `json:"jobs"` Origins []tc.Origin `json:"origins"` Profiles []tc.Profile `json:"profiles"` Parameters []tc.Parameter `json:"parameters"` ProfileParameters []tc.ProfileParameter `json:"profileParameters"` PhysLocations []tc.PhysLocation `json:"physLocations"` Regions []tc.Region `json:"regions"` Roles []tc.RoleV4 `json:"roles"` Servers []tc.ServerV40 `json:"servers"` ServerServerCapabilities []tc.ServerServerCapability `json:"serverServerCapabilities"` ServerCapabilities []tc.ServerCapabilityV41 `json:"serverCapabilities"` ServiceCategories []tc.ServiceCategory `json:"serviceCategories"` Statuses []tc.StatusNullable `json:"statuses"` StaticDNSEntries []tc.StaticDNSEntry `json:"staticdnsentries"` StatsSummaries []tc.StatsSummary `json:"statsSummaries"` Tenants []tc.Tenant `json:"tenants"` ServerCheckExtensions []tc.ServerCheckExtensionNullable `json:"servercheck_extensions"` Topologies []tc.Topology `json:"topologies"` Types []tc.Type `json:"types"` SteeringTargets []tc.SteeringTargetNullable `json:"steeringTargets"` Serverchecks []tc.ServercheckRequestNullable `json:"serverchecks"` Users []tc.UserV4 `json:"users"` InvalidationJobs []tc.InvalidationJobCreateV4 `json:"invalidationJobs"` InvalidationJobsRefetch []tc.InvalidationJobCreateV4 `json:"invalidationJobsRefetch"` }
TrafficControl - maps to the tc-fixtures.json file
Source Files ¶
- asns.go
- cachegroup_deliveryservices.go
- cachegroups.go
- cdns.go
- coordinates.go
- deliveryservice_regexes.go
- deliveryservice_request_comments.go
- deliveryservice_requests.go
- deliveryservices.go
- deliveryservices_required_capabilities.go
- divisions.go
- federation_resolvers.go
- federation_users.go
- federations.go
- jobs.go
- origins.go
- parameters.go
- physlocations.go
- profile_parameters.go
- profiles.go
- regions.go
- roles.go
- server_capabilities.go
- server_check_extensions.go
- server_checks.go
- server_server_capabilities.go
- servers.go
- service_categories.go
- static_dns_entries.go
- statuses.go
- steering_targets.go
- tenants.go
- topologies.go
- traffic_control.go
- types.go
- users.go
Click to show internal directories.
Click to hide internal directories.