Documentation
¶
Index ¶
- func CheckServersInCachegroups(servers []tc.ServerInfo, cachegroups []string) error
- func Delete(w http.ResponseWriter, r *http.Request)
- func DeleteDeprecated(w http.ResponseWriter, r *http.Request)
- func GetCreateHandler(w http.ResponseWriter, r *http.Request)
- func GetReadAssigned(w http.ResponseWriter, r *http.Request)
- func GetReadUnassigned(w http.ResponseWriter, r *http.Request)
- func GetReplaceHandler(w http.ResponseWriter, r *http.Request)
- func ReadDSSHandler(w http.ResponseWriter, r *http.Request)
- func ReadDSSHandlerV14(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 DeleteDeprecated ¶
func DeleteDeprecated(w http.ResponseWriter, r *http.Request)
DeleteDeprecated is the deprecation handler for deleting the association between a Delivery Service and a Server.
func GetCreateHandler ¶
func GetCreateHandler(w http.ResponseWriter, r *http.Request)
GetCreateHandler assigns an existing Server to and existing Deliveryservice in response to api/1.1/deliveryservices/{xml_id}/servers
func GetReadAssigned ¶
func GetReadAssigned(w http.ResponseWriter, r *http.Request)
GetReadAssigned retrieves lists of servers based in the filter identified in the request: api/1.1/deliveryservices/{id}/servers|unassigned_servers|eligible
func GetReadUnassigned ¶
func GetReadUnassigned(w http.ResponseWriter, r *http.Request)
GetReadUnassigned retrieves lists of servers based in the filter identified in the request: api/1.1/deliveryservices/{id}/servers|unassigned_servers|eligible
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 list all of the Deliveryservice Servers in response to requests to api/1.1/deliveryserviceserver$
func ReadDSSHandlerV14 ¶
func ReadDSSHandlerV14(w http.ResponseWriter, r *http.Request)
ReadDSSHandler list all of the Deliveryservice Servers in response to requests to api/1.1/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
}
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