Documentation
      ¶
    
    
  
    
  
    Index ¶
- func CheckServersInCachegroups(servers []tc.ServerInfo, cachegroups []string) error
 - func Delete(w http.ResponseWriter, r *http.Request)
 - func GetCreateHandler(w http.ResponseWriter, r *http.Request)
 - func GetReadAssigned(w http.ResponseWriter, r *http.Request)
 - func GetReplaceHandler(w http.ResponseWriter, r *http.Request)
 - func ReadDSSHandler(w http.ResponseWriter, r *http.Request)
 - func ValidateServerCapabilities(tx *sql.Tx, dsID int, serverNamesAndTypes []tc.ServerInfo) (error, error, int)
 - type DSInfo
 - type DSServerIds
 - type TODSSDeliveryService
 - type TODSServerIds
 - type TODeliveryServiceServer
 - func (dss *TODeliveryServiceServer) GetAuditName() string
 - func (dss TODeliveryServiceServer) GetKeyFieldsInfo() []api.KeyFieldInfo
 - func (dss TODeliveryServiceServer) GetKeys() (map[string]interface{}, bool)
 - func (dss *TODeliveryServiceServer) GetType() string
 - func (dss *TODeliveryServiceServer) SetKeys(keys map[string]interface{})
 - func (dss *TODeliveryServiceServer) Validate(tx *sql.Tx) error
 
- type TODeliveryServiceServers
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckServersInCachegroups ¶
CheckServersInCachegroups checks whether or not all the given server cachegroups belong to the topology and returns a user error (if any).
func Delete ¶
func Delete(w http.ResponseWriter, r *http.Request)
Delete handler for deleting the association between a Delivery Service and a Server
func GetCreateHandler ¶
func GetCreateHandler(w http.ResponseWriter, r *http.Request)
GetCreateHandler is the handler for POST requests to /deliveryservices/{{XMLID}}/servers.
func GetReadAssigned ¶
func GetReadAssigned(w http.ResponseWriter, r *http.Request)
GetReadAssigned is the handler for GET requests to /deliveryservices/{id}/servers.
func GetReplaceHandler ¶
func GetReplaceHandler(w http.ResponseWriter, r *http.Request)
GetReplaceHandler is the handler for POST requests to the /deliveryserviceserver API endpoint.
func ReadDSSHandler ¶
func ReadDSSHandler(w http.ResponseWriter, r *http.Request)
ReadDSSHandler is the handler for GET requests to /deliveryserviceserver.
Types ¶
type DSInfo ¶
type DSInfo struct {
	Active               bool
	ID                   int
	Name                 string
	Type                 tc.DSType
	EdgeHeaderRewrite    *string
	MidHeaderRewrite     *string
	RegexRemap           *string
	SigningAlgorithm     *string
	CacheURL             *string
	MaxOriginConnections *int
	Topology             *string
	CDNID                *int
	UseMultiSiteOrigin   bool
}
    type DSServerIds ¶
type TODSSDeliveryService ¶
type TODSSDeliveryService struct {
	api.APIInfoImpl `json:"-"`
	tc.DeliveryServiceNullable
}
    type TODSServerIds ¶
type TODSServerIds DSServerIds
type TODeliveryServiceServer ¶
type TODeliveryServiceServer struct {
	api.APIInfoImpl `json:"-"`
	tc.DeliveryServiceServer
	TenantIDs          pq.Int64Array `json:"-" db:"accessibleTenants"`
	DeliveryServiceIDs pq.Int64Array `json:"-" db:"dsids"`
	ServerIDs          pq.Int64Array `json:"-" db:"serverids"`
}
    TODeliveryServiceRequest provides a type alias to define functions on
func (*TODeliveryServiceServer) GetAuditName ¶
func (dss *TODeliveryServiceServer) GetAuditName() string
func (TODeliveryServiceServer) GetKeyFieldsInfo ¶
func (dss TODeliveryServiceServer) GetKeyFieldsInfo() []api.KeyFieldInfo
func (TODeliveryServiceServer) GetKeys ¶
func (dss TODeliveryServiceServer) GetKeys() (map[string]interface{}, bool)
Implementation of the Identifier, Validator interface functions
func (*TODeliveryServiceServer) GetType ¶
func (dss *TODeliveryServiceServer) GetType() string
func (*TODeliveryServiceServer) SetKeys ¶
func (dss *TODeliveryServiceServer) SetKeys(keys map[string]interface{})
type TODeliveryServiceServers ¶
type TODeliveryServiceServers tc.DeliveryServiceServers