Documentation ¶
Index ¶
- Variables
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultDevModeAction = base.DevModeAction{ ScalePatches: []base.PatchItem{{ Patch: `[{"op":"replace","path":"/spec/replicas","value":1}]`, Type: "json", }}, PodTemplatePath: "/spec/template", } PodDevModeAction = base.DevModeAction{} DaemonSetDevModeAction = base.DevModeAction{ ScalePatches: []base.PatchItem{{ Patch: `[{"op":"replace","path": "/spec/template/spec/nodeName", "value": "nocalhost.unreachable"}]`, Type: "json", }}, PodTemplatePath: "/spec/template", Create: true, } JobDevModeAction = base.DevModeAction{ PodTemplatePath: "/spec/template", Create: true, } CronJobDevModeAction = base.DevModeAction{ ScalePatches: []base.PatchItem{{ Patch: `{"spec":{"suspend": true}}`, Type: "strategic", }}, PodTemplatePath: "/spec/jobTemplate/spec/template", Create: true, } KruiseCronJobDevModeAction = base.DevModeAction{ ScalePatches: []base.PatchItem{{ Patch: `[{"op":"replace","path": "/spec/suspend", "value": true}]`, Type: "json", }}, PodTemplatePath: "/spec/template/broadcastJobTemplate/spec/template", Create: true, } )
View Source
var (
CreatePvcFailed = errors.New("create PVC failed")
)
View Source
var ProfileNotFound = errors.New("Profile Not Found")
Functions ¶
func CleanupAppFilesUnderNs ¶
func CompactApplicationDb ¶
func GetAllKubeconfig ¶
func GetApplicationDbSize ¶
func GetApplicationMeta ¶
func GetApplicationMeta(appName, namespace, kubeConfig string) (*appmeta.ApplicationMeta, error)
func GetApplicationMetas ¶
func GetApplicationMetas(namespace, kubeConfig string) (appmeta.ApplicationMetas, error)
func GetDevModeActionBySvcType ¶
func GetDevModeActionBySvcType(svcType base.SvcType) (*base.DevModeAction, error)
func GetProfileV2 ¶
func GetProfileV2(ns, app, nid string) (*profile.AppProfileV2, error)
func GetSyncThingBinDir ¶
func GetSyncThingBinDir() string
func IsBuildInGvk ¶
func IsBuildInGvk(gvk *schema.GroupVersionKind) bool
func IsNocalhostAppDir ¶
IsNocalhostAppDir Check if a dir is a nocalhost dir
func IsPortForwarding ¶
func UnmarshalProfileUnStrict ¶
func UnmarshalProfileUnStrict(p []byte) (*profile.AppProfileV2, error)
func UpdateProfileV2 ¶
func UpdateProfileV2(ns, app, nid string, profileV2 *profile.AppProfileV2) error
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.