cdnfederation

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) 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 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. In the perl version, :name is ignored. It is not even verified whether or not :name is a real cdn that exists. This mimicks the perl behavior.

func (*TOCDNFederation) DeleteQuery

func (v *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 (v *TOCDNFederation) InsertQuery() string

func (*TOCDNFederation) NewReadObj

func (v *TOCDNFederation) NewReadObj() interface{}

func (*TOCDNFederation) ParamColumns

func (v *TOCDNFederation) ParamColumns() map[string]dbhelpers.WhereColumnInfo

func (*TOCDNFederation) Read

func (fed *TOCDNFederation) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

func (*TOCDNFederation) SelectMaxLastUpdatedQuery

func (v *TOCDNFederation) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName 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) Update

func (fed *TOCDNFederation) Update(h http.Header) (error, error, int)

func (*TOCDNFederation) UpdateQuery

func (v *TOCDNFederation) UpdateQuery() string

func (*TOCDNFederation) Validate

func (fed *TOCDNFederation) Validate() error

Fulfills `Validate' interface

Jump to

Keyboard shortcuts

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