Documentation ¶
Overview ¶
Package cdnfederation is one of many, many packages that contain logic pertaining to federations of CDNs and/or parts of CDNs.
Index ¶
- func Create(inf *api.APIInfo) (int, error, error)
- func Delete(inf *api.APIInfo) (int, error, error)
- func Read(inf *api.APIInfo) (int, error, error)
- func ReadID(inf *api.APIInfo) (int, error, error)
- func Update(inf *api.APIInfo) (int, error, error)
- type TOCDNFederation
- func (fed *TOCDNFederation) CheckIfCDNAndFederationMatch(cdnName string) (error, error, int)
- func (fed *TOCDNFederation) Create() (error, error, int)
- func (fed *TOCDNFederation) Delete() (error, error, int)
- func (*TOCDNFederation) DeleteQuery() string
- func (fed TOCDNFederation) GetAuditName() string
- func (fed TOCDNFederation) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (fed TOCDNFederation) GetKeys() (map[string]interface{}, bool)
- func (v *TOCDNFederation) GetLastUpdated() (*time.Time, bool, error)
- func (fed TOCDNFederation) GetType() string
- func (*TOCDNFederation) InsertQuery() string
- func (v *TOCDNFederation) NewReadObj() interface{}
- func (v *TOCDNFederation) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (fed *TOCDNFederation) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (v *TOCDNFederation) SelectMaxLastUpdatedQuery(where, orderBy, pagination, _ string) string
- func (v *TOCDNFederation) SelectQuery() string
- func (fed *TOCDNFederation) SetKeys(keys map[string]interface{})
- func (v *TOCDNFederation) SetLastUpdated(t tc.TimeNoMod)
- func (fed *TOCDNFederation) Update(h http.Header) (error, error, int)
- func (*TOCDNFederation) UpdateQuery() string
- func (fed *TOCDNFederation) Validate() (error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TOCDNFederation ¶
type TOCDNFederation struct { api.APIInfoImpl `json:"-"` tc.CDNFederation TenantID *int `json:"-" db:"tenant_id"` }
we need a type alias to define functions on
func (*TOCDNFederation) CheckIfCDNAndFederationMatch ¶
func (fed *TOCDNFederation) CheckIfCDNAndFederationMatch(cdnName string) (error, error, int)
func (*TOCDNFederation) Create ¶
func (fed *TOCDNFederation) Create() (error, error, int)
fedAPIInfo.Params["name"] is not used on creation, rather the cdn name is connected when the federations/:id/deliveryservice links a federation However, we use fedAPIInfo.Params["name"] to check whether or not another user has a hard lock on the CDN. Note: cdns and deliveryservies have a 1-1 relationship
func (*TOCDNFederation) Delete ¶
func (fed *TOCDNFederation) Delete() (error, error, int)
Delete implements the Deleter interface for TOCDNFederation.
func (*TOCDNFederation) DeleteQuery ¶
func (*TOCDNFederation) DeleteQuery() string
func (TOCDNFederation) GetAuditName ¶
func (fed TOCDNFederation) GetAuditName() string
Fufills `Identifier' interface
func (TOCDNFederation) GetKeyFieldsInfo ¶
func (fed TOCDNFederation) GetKeyFieldsInfo() []api.KeyFieldInfo
Fufills `Identifier' interface
func (TOCDNFederation) GetKeys ¶
func (fed TOCDNFederation) GetKeys() (map[string]interface{}, bool)
Fufills `Identifier' interface
func (*TOCDNFederation) GetLastUpdated ¶
func (v *TOCDNFederation) GetLastUpdated() (*time.Time, bool, error)
func (TOCDNFederation) GetType ¶
func (fed TOCDNFederation) GetType() string
Fufills `Identifier' interface
func (*TOCDNFederation) InsertQuery ¶
func (*TOCDNFederation) InsertQuery() string
func (*TOCDNFederation) NewReadObj ¶
func (v *TOCDNFederation) NewReadObj() interface{}
func (*TOCDNFederation) ParamColumns ¶
func (v *TOCDNFederation) ParamColumns() map[string]dbhelpers.WhereColumnInfo
func (*TOCDNFederation) SelectMaxLastUpdatedQuery ¶
func (v *TOCDNFederation) SelectMaxLastUpdatedQuery(where, orderBy, pagination, _ string) string
func (*TOCDNFederation) SelectQuery ¶
func (v *TOCDNFederation) SelectQuery() string
func (*TOCDNFederation) SetKeys ¶
func (fed *TOCDNFederation) SetKeys(keys map[string]interface{})
Fufills `Create' interface
func (*TOCDNFederation) SetLastUpdated ¶
func (v *TOCDNFederation) SetLastUpdated(t tc.TimeNoMod)
func (*TOCDNFederation) UpdateQuery ¶
func (*TOCDNFederation) UpdateQuery() string
func (*TOCDNFederation) Validate ¶
func (fed *TOCDNFederation) Validate() (error, error)
Fulfills `Validate' interface