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 + const ConnectMode + const Healthy + const ReverseMode + const UnHealthy + const Unknown + func GetAllApplicationWithDefaultApp(namespace, kubeconfigPath string) []*appmeta.ApplicationMeta + func GetAllValidApplicationWithDefaultApp(ns string, KubeConfigBytes []byte) []*appmeta.ApplicationMeta + func GetDescriptionDaemon(ns, appName string, kubeconfigBytes []byte) *profile.AppProfileV2 + func GetReverseInfo() *sync.Map + func HandleGetResourceInfoRequest(request *command.GetResourceInfoCommand) (interface{}, error) + func HandleKubeconfigOperationRequest(request *command.KubeconfigOperationCommand) error + func HandleSudoVPNOperate(cmd *command.VPNOperateCommand, writer io.WriteCloser) error + func HandleSudoVPNStatus() (interface{}, error) + func HandleVPNOperate(cmd *command.VPNOperateCommand, writer io.WriteCloser) (err error) + func HandleVPNStatus() (interface{}, error) + func InvalidCache(ns, nid, appName string) + func ParseApplicationsResult(namespace string, metas []*appmeta.ApplicationMeta) []*model.Namespace + func ReleaseWatcher(kubeconfigBytes []byte, namespace string) + func SortApplication(metas []*appmeta.ApplicationMeta) + func ToStatus(m map[string]string) *status + type AppNameAndNid struct + Name string + Nid string + type ConfigMapWatcher struct + func GetOrGenerateConfigMapWatcher(kubeconfigBytes []byte, namespace string, getter cache.Getter) *ConfigMapWatcher + func NewConfigMapWatcher(kubeconfigBytes []byte, namespace string, getter cache.Getter) *ConfigMapWatcher + func (w *ConfigMapWatcher) Start() + func (w *ConfigMapWatcher) Stop() + type ConnectInfo struct + func (c *ConnectInfo) GetKubeconfig() string + func (c *ConnectInfo) GetNamespace() string + func (c *ConnectInfo) GetUid() string + func (c *ConnectInfo) IsEmpty() bool + func (c *ConnectInfo) IsSameCluster(kubeconfigBytes []byte) bool + func (c *ConnectInfo) IsSameUid(uid string) bool + func (c ConnectInfo) Status() string + type ConnectTotal struct + func FromStringToConnectInfo(str string) *ConnectTotal + func (c *ConnectTotal) IsConnected() bool + func (c *ConnectTotal) ToString() string + type HealthEnum string + func (e HealthEnum) String() string + type ModeEnum string + func (m ModeEnum) String() string + type ReverseRecord struct + MacAddress string + Resources sets.String + func NewReverseRecord(resourceType, resourceName string) ReverseRecord + func NewReverseRecordWithWorkloads(workloads string) *ReverseRecord + type ReverseTotal struct + func FromStringToReverseTotal(s string) (t *ReverseTotal) + func (t *ReverseTotal) AddRecord(records ...*ReverseRecord) *ReverseTotal + func (t *ReverseTotal) GetBelongToMeResources() Set + func (t *ReverseTotal) LoadAndDeleteBelongToMeResources() Set + func (t *ReverseTotal) RemoveRecord(records ...*ReverseRecord) *ReverseTotal + func (t *ReverseTotal) ReversedResource() sets.String + func (t *ReverseTotal) ToString() string + type Set map[string]*resourceInfo + func NewSet(items ...*resourceInfo) Set + func NewSetByKeys(items ...string) Set + func (s Set) Delete(items ...*resourceInfo) Set + func (s Set) DeleteByKeys(items ...string) Set + func (s Set) ForEach(f func(k string, v *resourceInfo)) + func (s Set) Get(item string) *resourceInfo + func (s Set) Has(item *resourceInfo) bool + func (s Set) HasKey(item string) bool + func (s Set) Insert(items ...*resourceInfo) Set + func (s Set) InsertByKeys(items ...string) Set + func (s Set) KeySet() []string + func (s Set) Len() int + func (s Set) List() []*resourceInfo