cachegroup

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DSPostHandlerV31

func DSPostHandlerV31(w http.ResponseWriter, r *http.Request)

func DSPostHandlerV40

func DSPostHandlerV40(w http.ResponseWriter, r *http.Request)

func DeleteQuery

func DeleteQuery() string

func GetCacheGroupsByName

func GetCacheGroupsByName(names []string, Tx *sqlx.Tx) (map[string]tc.CacheGroupNullable, error, error, int)

func InsertQuery

func InsertQuery() string

func IsValidCacheGroupName

func IsValidCacheGroupName(str string) bool

IsValidCacheGroupName returns true if the name contains only characters valid for a CacheGroup name

func IsValidParentCachegroupID

func IsValidParentCachegroupID(id *int) bool

func QueueUpdates

func QueueUpdates(w http.ResponseWriter, r *http.Request)

func SelectQuery

func SelectQuery() string

func UpdateQuery

func UpdateQuery() string

Types

type QueueUpdatesResp

type QueueUpdatesResp struct {
	CacheGroupName tc.CacheGroupName `json:"cachegroupName"`
	Action         string            `json:"action"`
	ServerNames    []tc.CacheName    `json:"serverNames"`
	CDN            tc.CDNName        `json:"cdn"`
	CacheGroupID   int               `json:"cachegroupID"`
}

type TOCacheGroup

type TOCacheGroup struct {
	api.APIInfoImpl `json:"-"`
	tc.CacheGroupNullable
}

func (*TOCacheGroup) Create

func (cg *TOCacheGroup) Create() (error, error, int)

The TOCacheGroup implementation of the Creator interface The insert sql returns the id and lastUpdated values of the newly inserted cachegroup and have to be added to the struct

func (*TOCacheGroup) Delete

func (cg *TOCacheGroup) Delete() (error, error, int)

The CacheGroup implementation of the Deleter interface all implementations of Deleter should use transactions and return the proper errorType

func (TOCacheGroup) GetAuditName

func (cg TOCacheGroup) GetAuditName() string

func (TOCacheGroup) GetID

func (cg TOCacheGroup) GetID() (int, bool)

Implementation of the Identifier, Validator interface functions

func (TOCacheGroup) GetKeyFieldsInfo

func (cg TOCacheGroup) GetKeyFieldsInfo() []api.KeyFieldInfo

func (TOCacheGroup) GetKeys

func (cg TOCacheGroup) GetKeys() (map[string]interface{}, bool)

Implementation of the Identifier, Validator interface functions

func (TOCacheGroup) GetType

func (cg TOCacheGroup) GetType() string

func (*TOCacheGroup) Read

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

func (*TOCacheGroup) SetID

func (cg *TOCacheGroup) SetID(i int)

func (*TOCacheGroup) SetKeys

func (cg *TOCacheGroup) SetKeys(keys map[string]interface{})

func (*TOCacheGroup) Update

func (cg *TOCacheGroup) Update(h http.Header) (error, error, int)

The TOCacheGroup implementation of the Updater interface

func (TOCacheGroup) Validate

func (cg TOCacheGroup) Validate() (error, error)

Validate fulfills the api.Validator interface.

TODO: A lot of database operations here either swallow their errors or return them to the client.

func (*TOCacheGroup) ValidateTypeInTopology

func (cg *TOCacheGroup) ValidateTypeInTopology() error

ValidateTypeInTopology validates cachegroup updates to ensure the type of the cachegroup does not change if it is assigned to a topology.

Jump to

Keyboard shortcuts

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