Documentation ¶
Index ¶
- func GetAssignmentSingleton() api.CRUDer
- func GetStatusSingleton() api.CRUDer
- type TODeliveryServiceRequest
- func (req TODeliveryServiceRequest) ChangeLogMessage(action string) (string, error)
- func (req *TODeliveryServiceRequest) Create() (error, error, int)
- func (req *TODeliveryServiceRequest) Delete() (error, error, int)
- func (v *TODeliveryServiceRequest) DeleteQuery() string
- func (req TODeliveryServiceRequest) GetAuditName() string
- func (req TODeliveryServiceRequest) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (req TODeliveryServiceRequest) GetKeys() (map[string]interface{}, bool)
- func (v *TODeliveryServiceRequest) GetLastUpdated() (*time.Time, bool, error)
- func (req TODeliveryServiceRequest) GetType() string
- func (v *TODeliveryServiceRequest) InsertQuery() string
- func (req TODeliveryServiceRequest) IsTenantAuthorized(user *auth.CurrentUser) (bool, error)
- func (req *TODeliveryServiceRequest) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (req *TODeliveryServiceRequest) SetKeys(keys map[string]interface{})
- func (v *TODeliveryServiceRequest) SetLastUpdated(t tc.TimeNoMod)
- func (req *TODeliveryServiceRequest) Update(h http.Header) (error, error, int)
- func (v *TODeliveryServiceRequest) UpdateQuery() string
- func (req *TODeliveryServiceRequest) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssignmentSingleton ¶
func GetStatusSingleton ¶
Types ¶
type TODeliveryServiceRequest ¶
type TODeliveryServiceRequest struct { api.APIInfoImpl `json:"-"` tc.DeliveryServiceRequestNullable }
TODeliveryServiceRequest is the type alias to define functions on
func (TODeliveryServiceRequest) ChangeLogMessage ¶
func (req TODeliveryServiceRequest) ChangeLogMessage(action string) (string, error)
ChangeLogMessage implements the api.ChangeLogger interface for a custom log message
func (*TODeliveryServiceRequest) Create ¶
func (req *TODeliveryServiceRequest) Create() (error, error, int)
Creator implements the tc.Creator interface all implementations of Creator should use transactions and return the proper errorType ParsePQUniqueConstraintError is used to determine if a request with conflicting values exists if so, it will return an errorType of DataConflict and the type should be appended to the generic error message returned The insert sql returns the id and lastUpdated values of the newly inserted request and have to be added to the struct
func (*TODeliveryServiceRequest) Delete ¶
func (req *TODeliveryServiceRequest) Delete() (error, error, int)
func (*TODeliveryServiceRequest) DeleteQuery ¶
func (v *TODeliveryServiceRequest) DeleteQuery() string
func (TODeliveryServiceRequest) GetAuditName ¶
func (req TODeliveryServiceRequest) GetAuditName() string
GetAuditName is part of the tc.Identifier interface
func (TODeliveryServiceRequest) GetKeyFieldsInfo ¶
func (req TODeliveryServiceRequest) GetKeyFieldsInfo() []api.KeyFieldInfo
func (TODeliveryServiceRequest) GetKeys ¶
func (req TODeliveryServiceRequest) GetKeys() (map[string]interface{}, bool)
func (*TODeliveryServiceRequest) GetLastUpdated ¶
func (v *TODeliveryServiceRequest) GetLastUpdated() (*time.Time, bool, error)
func (TODeliveryServiceRequest) GetType ¶
func (req TODeliveryServiceRequest) GetType() string
GetType is part of the tc.Identifier interface
func (*TODeliveryServiceRequest) InsertQuery ¶
func (v *TODeliveryServiceRequest) InsertQuery() string
func (TODeliveryServiceRequest) IsTenantAuthorized ¶
func (req TODeliveryServiceRequest) IsTenantAuthorized(user *auth.CurrentUser) (bool, error)
IsTenantAuthorized implements the Tenantable interface to ensure the user is authorized on the deliveryservice tenant
func (*TODeliveryServiceRequest) Read ¶
func (req *TODeliveryServiceRequest) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
Read implements the api.Reader interface
func (*TODeliveryServiceRequest) SetKeys ¶
func (req *TODeliveryServiceRequest) SetKeys(keys map[string]interface{})
func (*TODeliveryServiceRequest) SetLastUpdated ¶
func (v *TODeliveryServiceRequest) SetLastUpdated(t tc.TimeNoMod)
func (*TODeliveryServiceRequest) Update ¶
Update implements the tc.Updater interface. all implementations of Updater should use transactions and return the proper errorType ParsePQUniqueConstraintError is used to determine if a request with conflicting values exists if so, it will return an errorType of DataConflict and the type should be appended to the generic error message returned
func (*TODeliveryServiceRequest) UpdateQuery ¶
func (v *TODeliveryServiceRequest) UpdateQuery() string
func (*TODeliveryServiceRequest) Validate ¶
func (req *TODeliveryServiceRequest) Validate() error
Validate ensures all required fields are present and in correct form. Also checks request JSON is complete and valid