rest

package
v0.0.0-...-892b39a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerNotLeaderErr      = "Config Operations can be done ONLY on leader"
	ControllerInMaintenanceMode = "GSLB system is in maintenance mode."
	GsGroupNamePrefix           = "amko-gs-group-"
)

Variables

This section is empty.

Functions

func AviRestOperateWrapper

func AviRestOperateWrapper(restOp *RestOperations, aviClient *clients.AviClient, operation *utils.RestOp) error

func GetHMCacheObj

func GetHMCacheObj(gsName string, key avicache.TenantName) avicache.AviHmObj

func GetHMCacheObjFromGSCache

func GetHMCacheObjFromGSCache(gsCacheObj *avicache.AviGSCache) []avicache.AviHmObj

func GetHmMarkers

func GetHmMarkers() []*avimodels.RoleFilterMatchLabel

func RestRespArrToObjByType

func RestRespArrToObjByType(operation *utils.RestOp, objType string, key string) (map[string]interface{}, error)

func SyncFromNodesLayer

func SyncFromNodesLayer(key interface{}, wg *sync.WaitGroup) error

Types

type RestOperations

type RestOperations struct {
	// contains filtered or unexported fields
}

func NewRestOperations

func NewRestOperations(cache *avicache.AviCache, hmCache *avicache.AviHmCache) *RestOperations

func (*RestOperations) AviGSBuild

func (restOp *RestOperations) AviGSBuild(gsMeta *nodes.AviGSObjectGraph, restMethod utils.RestMethod,
	cacheObj *avicache.AviGSCache, key string, hmRequired bool) *utils.RestOp

func (*RestOperations) AviGSCacheAdd

func (restOp *RestOperations) AviGSCacheAdd(operation *utils.RestOp, key string) error

func (*RestOperations) AviGSCacheDel

func (restOp *RestOperations) AviGSCacheDel(gsCache *avicache.AviCache, op *utils.RestOp, key string)

func (*RestOperations) AviGSDel

func (restOp *RestOperations) AviGSDel(uuid string, tenant string, key string, gsName string) *utils.RestOp

func (*RestOperations) AviGSHmCacheAdd

func (restOp *RestOperations) AviGSHmCacheAdd(operation *utils.RestOp, key string) error

func (*RestOperations) AviGSHmCacheDel

func (restOp *RestOperations) AviGSHmCacheDel(hmCache *avicache.AviHmCache, op *utils.RestOp, key string)

func (*RestOperations) AviGsHmBuild

func (restOp *RestOperations) AviGsHmBuild(gsMeta *nodes.AviGSObjectGraph, restMethod utils.RestMethod,
	hmCacheObj *avicache.AviHmObj, key string, pathHm string) *utils.RestOp

func (*RestOperations) AviGsHmDel

func (restOp *RestOperations) AviGsHmDel(uuid string, tenant string, key string, hmName string) *utils.RestOp

func (*RestOperations) DqNodes

func (restOp *RestOperations) DqNodes(key string)

func (*RestOperations) ExecuteRestAndPopulateCache

func (restOp *RestOperations) ExecuteRestAndPopulateCache(operation *utils.RestOp, gsKey, hmKey *avicache.TenantName,
	key string)

func (*RestOperations) GetGSCacheObj

func (restOp *RestOperations) GetGSCacheObj(gsKey avicache.TenantName, key string) *avicache.AviGSCache

func (*RestOperations) PublishKeyToRetryLayer

func (restOp *RestOperations) PublishKeyToRetryLayer(gsKey, hmKey *avicache.TenantName, webApiErr error, key string)

func (*RestOperations) RestOperation

func (restOp *RestOperations) RestOperation(gsName, tenant string, aviGSGraph *nodes.AviGSObjectGraph,
	gsCacheObj *avicache.AviGSCache, key string)

Jump to

Keyboard shortcuts

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