cdnfederation

package
v6.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 15 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) 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 (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