request

package
v5.1.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssignmentSingleton

func GetAssignmentSingleton() api.CRUDer

func GetStatusSingleton

func GetStatusSingleton() api.CRUDer

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

func (req *TODeliveryServiceRequest) Update(h http.Header) (error, error, int)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL