{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package waveappstore\n\n## Constants\n\n```go\nconst (\n\tAppNSLocal = \"local\"\n\tAppNSDraft = \"draft\"\n\n\tMaxNamespaceLen = 30\n\tMaxAppNameLen   = 50\n\n\tManifestFileName       = \"manifest.json\"\n\tSecretBindingsFileName = \"secret-bindings.json\"\n)\n```\n\n## Functions\n\n```go\nfunc BuildAppSecretEnv(appId string, manifest *wshrpc.AppManifest, bindings map[string]string) (map[string]string, error)\n```\n\n```go\nfunc DeleteApp(appId string) error\n```\n\n```go\nfunc DeleteAppFile(appId string, fileName string) error\n```\n\n```go\nfunc DraftHasLocalVersion(draftAppId string) (bool, error)\n```\n\n```go\nfunc FormatGoFile(appId string, fileName string) error\n```\n\n```go\nfunc GetAppDir(appId string) (string, error)\n```\n\n```go\nfunc GetAppModTime(appId string) (int64, error)\n```\n\n```go\nfunc ListAllAppFiles(appId string) (*fileutil.ReadDirResult, error)\n```\n\n```go\nfunc ListAllApps() ([]wshrpc.AppInfo, error)\n```\n\n```go\nfunc ListAllEditableApps() ([]wshrpc.AppInfo, error)\n```\n\n```go\nfunc MakeAppId(appNS string, appName string) string\n```\n\n```go\nfunc MakeDraftFromLocal(localAppId string) (string, error)\n```\n\n```go\nfunc ParseAppId(appId string) (appNS string, appName string, err error)\n```\n\n```go\nfunc PublishDraft(draftAppId string) (string, error)\n```\n\n```go\nfunc ReadAppManifest(appId string) (*wshrpc.AppManifest, error)\n```\n\n```go\nfunc ReadAppSecretBindings(appId string) (map[string]string, error)\n```\n\n```go\nfunc RenameAppFile(appId string, fromFileName string, toFileName string) error\n```\n\n```go\nfunc RenameLocalApp(appName string, newAppName string) error\n```\nRenameLocalApp renames a local app by renaming its directories in both the local and draft namespaces. It takes the current app name and the new app name (without namespace prefixes). Both local/\\[appName] and draft/\\[appName] will be renamed if they exist. Returns an error if the app doesn't exist in either namespace, if the new name is invalid, or if the new name conflicts with an existing app.\n\n```go\nfunc ReplaceInAppFile(appId string, fileName string, edits []fileutil.EditSpec) error\n```\n\n```go\nfunc ReplaceInAppFilePartial(appId string, fileName string, edits []fileutil.EditSpec) ([]fileutil.EditResult, error)\n```\n\n```go\nfunc RevertDraft(draftAppId string) error\n```\n\n```go\nfunc ValidateAppId(appId string) error\n```\n\n```go\nfunc WriteAppFile(appId string, fileName string, contents []byte) error\n```\n\n```go\nfunc WriteAppSecretBindings(appId string, bindings map[string]string) error\n```\n\n## Types\n\n```go\ntype FileData struct {\n\tContents []byte\n\tModTs    int64\n}\n```\n\n```go\nfunc ReadAppFile(appId string, fileName string) (*FileData, error)\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/waveappstore","name":"waveappstore","synopsis":"","isRedistributable":true}
