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 CreatePvcFailed = errors.New("create PVC failed") + var CronJobDevModeAction = base.DevModeAction + var DaemonSetDevModeAction = base.DevModeAction + var DefaultDevModeAction = base.DevModeAction + var JobDevModeAction = base.DevModeAction + var KruiseCronJobDevModeAction = base.DevModeAction + var PodDevModeAction = base.DevModeAction + var ProfileNotFound = errors.New("Profile Not Found") + func CheckIfResourceTypeIsSupported(svcType base.SvcType) bool + func CleanupAppFilesUnderNs(namespace, nid string) error + func CompactApplicationDb(ns, appName, nid, key string) error + func GetAllKubeconfig() ([]string, error) + func GetApplicationDbSize(ns, appName, nid string) (int, error) + func GetApplicationMeta(appName, namespace, kubeConfig string) (*appmeta.ApplicationMeta, error) + func GetApplicationMetas(namespace, kubeConfig string) (appmeta.ApplicationMetas, error) + func GetDevModeActionBySvcType(svcType base.SvcType) (*base.DevModeAction, error) + func GetKubeConfigFromProfile(ns, app, nid string) (string, error) + func GetLogDir() string + func GetProfileV2(ns, app, nid string) (*profile.AppProfileV2, error) + func GetSyncThingBinDir() string + func Init() error + func IsBuildInGvk(gvk *schema.GroupVersionKind) bool + func IsNocalhostAppDir(dir string) bool + func IsPortForwarding(dir string) bool + func ListAllFromApplicationDb(ns, appName, nid string) (map[string]string, error) + func MigrateNsDirToSupportNidIfNeeded(app, ns, nid string) error + func MoveAppFromNsToNid() error + func SvcTypeOfMutate(svcType string) (base.SvcType, error) + func UnmarshalProfileUnStrict(p []byte) (*profile.AppProfileV2, error) + func UpdateKey(ns, app, nid string, key string, value string) error + func UpdateProfileV2(ns, app, nid string, profileV2 *profile.AppProfileV2) error + type AppInfo struct + Name string + Namespace string + Nid string + func GetNsAndApplicationInfo(portForwardFilter, nidMigrate bool) ([]AppInfo, error)