Versions in this module Expand all Collapse all v1 v1.0.1 Nov 9, 2023 v1.0.0 Nov 9, 2023 Changes in this version + var DefaultKey = "DefaultKey" + var NO_DEFAULT_PACK = errors.New("Current Svc pack not found ") + func ClearAllData() + func FlushCache() + func Get(fun func(dirMapping *DevDirMapping, pathToPack map[DevPath][]*SvcPack) error) error + func Initial() + func Update(fun func(dirMapping *DevDirMapping, pathToPack map[DevPath][]*SvcPack) error) error + type AllSvcPackAssociateByPath struct + DefaultSvcPackKey SvcPackKey + Kubeconfigs map[SvcPackKey]string + Packs map[SvcPackKey]*SvcPack + ServerMapping map[SvcPackKey]string + type DevDirMapping struct + PackToKubeConfigBytes map[SvcPackKey]string + PackToKubeConfigServer map[SvcPackKey]string + PackToPath map[SvcPackKey]DevPath + PathToDefaultPackKey map[DevPath]SvcPackKey + type DevPath string + func (d DevPath) AlreadyAssociate(specifyPack *SvcPack) bool + func (d DevPath) Associate(specifyPack *SvcPack, kubeconfig string, setAsDefaultSvc bool) error + func (d DevPath) GetAllPacks() *AllSvcPackAssociateByPath + func (d DevPath) GetDefaultPack() (*SvcPack, error) + func (d DevPath) RemovePack(specifyPack *SvcPack) error + func (d DevPath) ToString() string + type SvcPack struct + App string + Container string + Nid string + Ns string + Svc string + SvcType base.SvcType + func NewSvcPack(ns string, nid string, app string, svcType base.SvcType, svc string, ...) *SvcPack + func (svcPack *SvcPack) GetAssociatePath() DevPath + func (svcPack *SvcPack) GetAssociatePathCache() DevPath + func (svcPack *SvcPack) GetKubeConfigBytesAndServer() (string, string) + func (svcPack *SvcPack) UnAssociatePath() + func (svcPack SvcPack) Key() SvcPackKey + func (svcPack SvcPack) KeyWithoutContainer() SvcPackKey + type SvcPackKey string + func (svcPackKey SvcPackKey) WithoutNid() SvcPackKey