Documentation ¶
Index ¶
- func DSPostHandler(w http.ResponseWriter, r *http.Request)
- func DeleteQuery() string
- func GetCacheGroupsByName(names []string, Tx *sqlx.Tx) (map[string]tc.CacheGroupNullable, error, error, int)
- func GetTrimmed(w http.ResponseWriter, r *http.Request)
- func InsertQuery() string
- func IsValidCacheGroupName(str string) bool
- func IsValidParentCachegroupID(id *int) bool
- func QueueUpdates(w http.ResponseWriter, r *http.Request)
- func SelectQuery() string
- func UpdateQuery() string
- type QueueUpdatesResp
- type TOCacheGroup
- func (cg *TOCacheGroup) Create() (error, error, int)
- func (cg *TOCacheGroup) Delete() (error, error, int)
- func (cg TOCacheGroup) GetAuditName() string
- func (cg TOCacheGroup) GetID() (int, bool)
- func (cg TOCacheGroup) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (cg TOCacheGroup) GetKeys() (map[string]interface{}, bool)
- func (cg TOCacheGroup) GetType() string
- func (cg *TOCacheGroup) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (cg *TOCacheGroup) SetID(i int)
- func (cg *TOCacheGroup) SetKeys(keys map[string]interface{})
- func (cg *TOCacheGroup) Update(h http.Header) (error, error, int)
- func (cg TOCacheGroup) Validate() error
- func (cg *TOCacheGroup) ValidateTypeInTopology() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DSPostHandler ¶
func DSPostHandler(w http.ResponseWriter, r *http.Request)
func GetCacheGroupsByName ¶
func GetTrimmed ¶
func GetTrimmed(w http.ResponseWriter, r *http.Request)
func IsValidCacheGroupName ¶
IsValidCacheGroupName returns true if the name contains only characters valid for a CacheGroup name
func QueueUpdates ¶
func QueueUpdates(w http.ResponseWriter, r *http.Request)
Types ¶
type QueueUpdatesResp ¶
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 (*TOCacheGroup) SetID ¶
func (cg *TOCacheGroup) SetID(i int)
func (*TOCacheGroup) SetKeys ¶
func (cg *TOCacheGroup) SetKeys(keys map[string]interface{})
func (*TOCacheGroup) Update ¶
The TOCacheGroup implementation of the Updater interface
func (TOCacheGroup) Validate ¶
func (cg TOCacheGroup) Validate() error
Validate fulfills the api.Validator interface
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.